Skip to main content

Posts

Showing posts from July, 2011

Error 3154: The backup set holds a backup of a database other than the existing database.

I was trying to restore a database from the windows server 2008 database backup in my local. I was doing through object explorer and was getting "Error 3154: The backup set holds a backup of a database other than the existing database." To fix the issue I tried it with below SQL statements from Query Analyzer. After executing the below commands I was able to restore successfully. RESTORE DATABASE DataBaseName FROM DISK = 'C:\DataBaseName.bak' WITH REPLACE 

FubuMVC

FubuMVC is a .NET open-source front-controller MVC web framework. Fubu (which stands for "for us, by us") focuses on rapid development, pluggability, and convention-based configuration. It tries to focus on SOLID principles, composability, separation of concerns, DRY, and other critical concepts of rapid, frictionless and pain-free web development. There are several differentiating features from ASP.NET MVC, such as behavior chains, packaging, routing conventions, HTML conventions, and much more.

The symptoms of poor software design

The symptoms of poor software design: Rigidity - The design is difficult to change Fragility - The design is easy to break Immobility - The design is difficult to reuse Viscosity - It is difficult to do the right thinng Needless Complexity - Overdesign Needless Repetition - Mouse absue(Cut and Paste) Opacity - Disorganized expression(Code to be difficult to understand)

ISAPI & CGI Restriction configuration missing in IIS

In windows 7 by default ISAPI & CGI Restrictions are not configured. To enable ISAPI & CGI restrictions, GoTo -> Control Panel -> Programs -> Click on "Windows features on or off -> Expand Internet Information Services - >Expand World Wide Web Services ->Select CGI and ISAPI extensions and Click OK. After enabling, Check in IIS, Open your IIS and the feature will be available. What is ISAPI and CGI restrictions : ISAPI and CGI restrictions are request handlers that allow dynamic content to execute on a server. These restrictions are either CGI files (.exe) or ISAPI extensions (.dll). You can add custom ISAPI or CGI restrictions if the IIS configuration system allows this.

HTTP could not register URL

I was recently debugging a WCF self host service in Windows 7 and I got the below exception. "HTTP could not register URL http://+8732/service. Your process does not have access rights to this namespace." After seeing this exception I found that I need to configure namespace reservations. I opened the VS 2010 command prompt in Administration mode and I ran the below command. Netsh http add urlacl=http://+:8732/service user=\Everyone This command adds an URL reservation for the specified URL namespace for the users. After configuring namespace reservation, my self host WCF service got worked. The other alternative to use Netsh http command is to run the VS 2010 in administrative mode. What is Namespace Reservations? Namespace reservation assigns the rights for a portion of the HTTP URL namespace to a particular group of users. A reservation gives those users the right to create services that listen on that portion of the namespace. Reservations are URL prefixes.