You may receive the following error when browsing an asp.net application. Parser Error Message: Could not load type 'WebApplication1.Global'. Source Error: Line 1: This error occurs when you create a new web application in asp.net using visual studio.net and
without compiling the application, you try to browse a page in the application. This occurs because of the Application DLL not having been formed. asp.net will look in the Global Assembly Cache, and then in the application's local bin directory. If it can't
find the class with the name you specified then it won't load. When you do a codebehind file in Visual studio, you are writing a base class for your aspx file to inherit from - the HTML template you write in the aspx is inlined into the dynamically generated
subclass's Render method. Even if you don't put any code in your page, you still need to compile it as long as you put the Inherts Webappname.Global in your Page directive. To resolve this, Built the application using Ctrl + Shift + B or use F5 to build the
application and then try to browse the application. The error will be resolved. This is applicable to .NET 1.0, 1.1 versions - Visual Studio.NET
Though, I built the solution , same problem occurs when i am viewing the page in web matrix but in VS.NET, it works very well. I am even about to host in IIS.
Sorry wrong statement Though, I built the solution in VS.NET and able to host in IIS,I am NOT able to run the same project in web matrix due to parse error . Please help me.
Hi, You will not be able to run an applicaiton developed using Visual Studio.NET from Webmatrix. If you want, you may need to do a lot of changes. Just out of curiosity, if you have VS.NET, then why worry about Webmatrix? Thanks.
ranganh
Star
12085 Points
2435 Posts
Microsoft
You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'." w...
Dec 11, 2004 05:36 AM|LINK
Harish
http://geekswithblogs.net/ranganh
keerthi1219
Member
20 Points
4 Posts
Re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'...
Mar 23, 2005 07:59 PM|LINK
keerthi1219
Member
20 Points
4 Posts
Re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'...
Mar 23, 2005 09:19 PM|LINK
ranganh
Star
12085 Points
2435 Posts
Microsoft
Re: You may receive the error "Parser Error Message: Could not load type 'WebApplication1.Global'...
Mar 24, 2005 11:11 AM|LINK
Harish
http://geekswithblogs.net/ranganh