I have a problem with a Web Application project which I have created. Originally I developed it in .net 3.5 and everything was okay. I have since been told that it needs to be in .net 2.0 (sigh) which has not only caused problems with the LINQ stuff I had written but has now also created a weird JScript error. The error occurs whenever I click a button within an UpdatePanel. The error is in one of the ScriptResource.axd files. The error is:
Microsoft JScript runtime error: Unable to get value of the property 'PRM_ParserErrorDetails': object is null or undefined
and occurs at line
this._endPostBack(this._createPageRequestManagerParserError(String.format(Sys.WebForms.Res.PRM_ParserErrorDetails,parserErrorDetails)),sender);
The Pages are created using a MasterPage which is the Page that contains the UpdatePanel, along with an UpdateProgress control. Since changing to .net 2.0 this error has occured. When I changed it I added the System.Web.Extensions assembly to the web.config and also registered the controls from the same assembly. I have researched online and can’t seem to find anybody with a solution or similar problem. Any suggestions or answers?
Okay as per usual I solved the problem almost instantly after posting. It seems the problem was that I was missing some sections from my web.config file. I had registered the controls using
and also the assemblies using
inside the system.web section but I was also missing:
inside the configSections part in Configuration and also
in system.web.