Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Could Not Load Type...

Status
Not open for further replies.

AWehrstedt

Programmer
Jul 16, 2001
21
CA
When I add a new webform.aspx to my solution and try to load the page in IE I get the following 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 'CTIS.login_template'.

Source Error:

Line 1: <%@ Page Language=&quot;vb&quot; AutoEventWireup=&quot;false&quot; codebehind=&quot;login_template.aspx.vb&quot; inherits=&quot;CTIS.login_template&quot;%>
Line 2: <%@ Register TagPrefix=&quot;CTISFooter&quot; tagname=&quot;footer&quot; src=&quot;../include/footer.ascx&quot; %>
Line 3: <%@ Register TagPrefix=&quot;CTISHeader&quot; tagname=&quot;header&quot; src=&quot;../include/main_header.ascx&quot; %

I did a little research for Visual Studio.Net and found out that you have to go to &quot;Build&quot; and &quot;Build Solution&quot;. The build result says &quot;Build: 1 succeeded, 0 failed, 0 skipped&quot;.

After building the solution I still get the same message. If I take out the &quot;Inherits&quot; it works fine, but then I have to embed my VB with the HTML (which I don't want to do).

Any thoughts?
 
In your login_template.aspx.vb file, the name of the class must be &quot;login_template&quot; If is something like &quot;class1&quot; then this is the source of your problem
Mark [openup]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top