Posts

Showing posts from 2012

Create Connection String Through Notepad

Image
For communicate with database, the most importing thing required is connection string . Here I will tell you simply way to create your connection string. Following is steps to generate your Connection String: Open your Notepad and create an empty text file, then click File -> click Save -> and  save it with the File name: " TestConnection . udl " to your desktop. ( as shown in following screen) Go to your desktop and double-click on the TestConnection . udl file you just created and the Data Link Properties box will pop up.  Select  Provider tab and Find the provider that you want to connect with and click Next . ( as shown in follwoing scrren ) Now from the Connection tab , select or enter your source/ server name -> then enter information to log on to server -> and select the database on the server. Click Test Connection and click OK to save the file. Note: If errors occur during testing of your connect...

Error when you browse your ASP site from IIS

When you take a copy of your project from TFS, and you run the project it will create virtual directory in IIS (Internet Information Service), after running (or pressing F5) it will encounter an error like Server Error in '/' Application. Or It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error will occur because you virtual directory is not act as Application. For converting your virtual directory in an Application follows following steps: For windows XP: Start -->  control panel --> Administrative tools --> Internet Information Service (IIS) Right click on website folder and select properties. Select the directory tab and click the create button in the Application Settings section. Now you can see the application name field enabled and your website converted into an application. Then click OK. Now browse your application, it will run without any error. For W...