The working IDE is Visual studio 2010 and the target Framework of the project is .NET4
I get the error Type 'System.Web.UI.ScriptManager' is not defined
after adding the ScriptManager component and building the project.
Actually i get the same error type after adding an UpdatePanel too.
The project has a reference to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Web.dll
Could you please tell me what is going on here?
As far as i saw, after creating a new new dummy web-project, i got no error after adding the script manager object on that. (So now i am 100% sure that the error has something to do with the configuration into my project).
By the way if try to add a reference to the System.Web.Extensions the IDE crashes!
You get the error
Type 'System.Web.UI.ScriptManager' is not definedbecause you actually need a Reference to theSystem.Web.Extensionslibrary, but you probably figured this out already. It seems strange though that your reference toSystem.Webseems to come from your Program Files instead of the GAC. This might be related to the crash you are getting.Please try this:
NotePad++)
Reference Include="System.Web"Reference Include="System.Web.Extensions"