Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I build my application, I get an error message:

The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?) D:\Verification Import\VerificationImport\VerificationImport\Default.aspx.designer.cs

For this, I am trying to add a reference of System.Web.extensions to my project....however it is disabled....So what I need to do to add/enable the reference of System.Web.extensions?

Thanks in advance... :)
Posted
Updated 23-Aug-10 7:42am
v2
Comments
Sandeep Mewara 23-Aug-10 7:26am    
What is disabled? What's stopping you in adding the reference?
Sandesh M Patil 23-Aug-10 7:28am    
Web reference System.Web.extensions to the project. It is seen in the add reference pop up window but but when i select it the ok button is not enabled.

1 solution

So far as I know, some items in the Add reference list may be disabled or gray if your project is of an older version of .NET framework. The disabled or grayed items may not be compatible with the version of the .NET framework of your project and hence, VS is not letting you to add those.

Check your Web site's (Or, web application's) .NET framework version (By clicking on property pages of the web site/project in the VS). If it is of older version (Say, 1.1), or, 2.0 without the Ajax extensions, upgrade the .NET framework version for the web site/project.

Hopefully, you will be able to fix the issue.
 
Share this answer
 
Comments
Sandesh M Patil 23-Aug-10 11:59am    
I check the properties of the web site and in Application tab find Target framework where i try to change the version of the prj from 2.0 to 3.5.

But it doesnot allow me displaying message unable to save changes to web.config. Can you please give me the steps..It ll be helpful.

Thanks for your reply
Sandesh M Patil 23-Aug-10 12:02pm    
Reason for my vote of 5
helpful
Al-Farooque Shubho 23-Aug-10 12:13pm    
It seems that your web site/web project may have some other problems. If it does not let you save the changes any way (You can check if some other process or application is using the web.config), you can create a new web site/project, set version and then add contents from the existing web site/project to see whether that works.
Sandesh M Patil 24-Aug-10 7:18am    
Thanks Farrooque It was really helful, Happy Ramadan

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900