asp.Net 2005 "Could not load type"

Posted by Melody Friedenthal on Stack Overflow See other posts from Stack Overflow or by Melody Friedenthal
Published on 2010-05-05T13:42:49Z Indexed on 2010/05/06 13:18 UTC
Read the original article Hit count: 416

Filed under:
|
|

Although I have seen dozens of forum questions relating to "Could not load type", none of the advice in them seemed to apply to my situation.

I wrote a new web application using aspx.net VB 2005. It is tiny, with just 2 pages, 1 of which has no code-behind. It runs aok in the IDE but when I installed it on my pc (and also when installed on the production server), and tried to run it this error came up:

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 'EMTTrainingDatabase.pageMain'.

Source Error: 


Line 1:  <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="pageMain.aspx.vb" Inherits="EMTTrainingDatabase.pageMain" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Source File: /EMTTrainingDatabase/pageMain.aspx    Line: 1 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3082 

I checked the web site properties in IIS and the correct ASP.net version is specified: 2.0.50727.

I checked the virtual path and it looks correct too: /EMTTrainingDatabase

pageMain source code header looks like:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="pageMain.aspx.vb" Inherits="EMTTrainingDatabase.pageMain" %>

Some posters suggest that the bin is in the wrong folder or the bin doesn't contain the rigt contents. I don't have enough knowledge to evaulate this.

Can someone help?

Thank you.

© Stack Overflow or respective owner

Related posts about aspx

Related posts about load