Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parser Error Message: Could not load type

Tags:

c#

.net

asp.net

We are working on a Web Application.We are using ASP.net with c# (3.5 framework). We are Continue getting this error on a specific page

 Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'Page Name'.

Each time we build the solution & upload the file,it will work and then suddenly after 2 to 3 days same problem again.Please help me resolve the issue.Thanks in Advance.

like image 247
PrateekSaluja Avatar asked Dec 19 '11 05:12

PrateekSaluja


2 Answers

We found 2 things,may be that will help in future who will face an issue.

a)The file in which we have changed it was not updated properly,so that's why It was causing an error,so project .dll has updated but that page was not updated properly.

b)That page Excluded from the project.

so Please keep these thing in your mind.Most of the cases files was not updated.

Thanks.

like image 143
PrateekSaluja Avatar answered Oct 12 '22 23:10

PrateekSaluja


This happened to me after creating a new page. It turns out I was running under x86 CPU instead of Any CPU mode under the Configuration Manager. When testing in debug mode the application was running against the local bin, but the file was actually being placed in the bin/x86 directory until I reconfigured it.

like image 21
Off The Gold Avatar answered Oct 12 '22 23:10

Off The Gold