parser error

G

Guest

How can i find where this 'parser error' is coming from. It works find in
prodution and but now fail in test. I've done this many many times, but have
not seem this.

System.Web.HttpParseException: Parser Error: Could not load type
'myApp.pcReport'. ---> System.Web.HttpException: Could not load type
'myApp.pcReport'.
at System.Web.UI.TemplateParser.GetType(String typeName, Boolean
ignoreCase)
at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary
mainDirective)
at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary
mainDirective)
at System.Web.UI.PageParser.ProcessMainDirective(IDictionary mainDirective)
at System.Web.UI.TemplateParser.ProcessDirective(String directiveName,
IDictionary directive)
at System.Web.UI.TemplateControlParser.ProcessDirective(String
directiveName, IDictionary directive)
at System.Web.UI.TemplateParser.ParseStringInternal(String text)
at System.Web.UI.TemplateParser.ParseString(String text, String
virtualPath, String basePhysicalDir)
--- End of inner exception stack trace ---
at System.Web.UI.TemplateParser.ParseString(String text, String
virtualPath, String basePhysicalDir)
at System.Web.UI.TemplateParser.ParseFile(String filename, String
virtualPath)
at System.Web.UI.TemplateParser.Parse()
at System.Web.UI.TemplateParser.GetParserCacheItemThroughCompilation()
at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound)
at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath()
at System.Web.UI.TemplateParser.GetParserCacheItem()
at
System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.TemplateControlParser.GetCompiledInstance(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageParser.GetCompiledPageInstanceInternal(String
virtualPath, String inputFile, HttpContext context)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context,
String requestType, String url, String path)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig)
at
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously)

I've tried deleting the dll and re-building.
THanks for any assistance.
 
C

CMA

Hi Richard,

this is only a guess since you didn't provide much information on the
controls or pages.
Mostly this will get from rendering user controls. I hope that the
'myApp.pcReport' is an user control. open the html of the page where you
included this user control and check for the directives in the top of the
page. there should be a directive for the control you are using in the page.

normally when you drag the control to a page the designer will generate this
code automatically.

if not solve the problem, send some code fragments of the pages.

hope this helps,
regards,
CMA.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top