Sunday, September 20, 2009

: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3

Installed Microsoft Framework 3.5 SP1.

Thursday, September 17, 2009

Sequence that events are raised for Pages, UserControls, MasterPages and HttpModules


For solution Click Here

System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\...' is denied

This exception is a very common exception. It usually occurs when we move our application to IIS server.

This exception occurs because IIS uses ASP .Net (IIS_IUser in Vista) user account and ASP .Net is not authorized to access that location.

To give a quick fix to this, follow these steps:-

1-Give read/write rights to ASP.NET user to C:\Inetpub\yourfolder\ folder:-

1- Right Click on Folder and Select Properties
2- Go to Security Tab
3- Click Add, then click Location.
4- Select your pc name, usually first item.
5- Press Ok, then press advance and then Find Now.
6- Select ASP.NET user if not exist then select Authenticated Users.
7- Press Ok. And Select Read/Write/Modify/List Folder Contents

2- Go to IIS->WebSites->DefaultWebSite->YourWebSiteName->Properties, and at Virtual Directory Tab check 'Read' and 'Write' button.

Wednesday, September 16, 2009

Operation must use an updateable query.

Hi one my friend is getting this error "Operation must use an updateable query"


Error Message:
Operation must use an updateable query. /file.asp 12
The most common reason this error is generated is the database or directory containing the database you are trying to access does not have the correct permissions.
Either move the database to the "access_db" directory or add read/write permissions to the directory where the database resides.

Thursday, September 3, 2009

Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.

Error: Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged.

Cause: Either debug is not enabled in your web.config (OR) For some reasons IIS is not considering your web application as a virtual directory. Instead it is considering it to be a normal folder.

Solution 1:

Step 1: Open the web.config
Step 2: If debug is set to "false" change it to "True".

For example: In web.config I have a line like this I would change it to

If at all this doesn't work. Try out the next solution.

Solution 2:

1.From the Start menu, choose Programs, then Administrative Tools, and click Internet Information Services.

2.In the Internet Information Services dialog box, click the tree control for your machine, open the Web Sites folder, and find your web site.

3.Right-click Web Site and choose Properties.

4.In the Web Site Properties window, select the Directory tab.

5.Under Application Settings, look for the Remove or Create button. If the button says Remove, your website is already configured as an application. If the button says Create, click the button to configure your website as an application.

6.Click OK.

If it also doesn't work, try the next solution.

Solution 3:

If you are running Visual Studio 2003 (or ASP.NET v1.1) you should setup IIS to use ASP.NET v1.1 and not ASP.NET v2.0

May be you have installed .NET framework 1.1 as well as 2.0 in your box and trying to run an application via VS.NET 2003. If so, then do the following:

Step 1: Start >> Run >> inetmgr
Step 2: Navigate to the virtual directory of the project which is throwing this error.
Step 3: Right click on the virtual directory and choose "Properties"
Step 4: Choose the tab ASP.NET
Step 5: The first dropdown would read "ASP.NET Version", choose 1.1.4322

Solution 4 :

1. go to the C:\WINNT\Microsoft.NET\Framework\
2. and run aspnet_regiis.exe /i
That's it. Hope this helps.

Error message when you connect to an instance of SQL Server: "Cannot open user default database"

Solution : 1

1- Go to database server -> security->login->username
2- Go to user property page and assign respective database or go to user role tab and give sysadmin permission to the user.


refer -

Shared Button