Last post Nov 22, 2005 09:39 PM by Roy Ng
Nov 20, 2005 08:34 PM|Roy Ng|LINK
When I create new project, the project have been successfully loaded and also WebForm1 loaded.
And then there is a error prompt telling me the codebehind file could not be loaded.
The error message shown as below:
The class file 'WebForm1.aspx.vb' specified as the codebehind for 'WebForm1.aspx' could not be
loaded. Make sure that the codebehind attribute in the page or control directive properly references
as existing code behind file.
The 1st line of code for WebForm1.aspx:
<%@Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb"
<form id=Form1 method=post runat="server"></form> <form id=Form1 method=post runat="server"></form> <form id=Form1 method=post runat="server"></form> <form id=Form1 method=post runat="server"></form>I would like to ask what wrong with the above situation?
Could anyone help me solve. Thank you very much!!
Nov 21, 2005 09:56 AM|pkw_rob|LINK
Is the code behind file created? Open the aspx page and hit f7 this will show you the code behind, or will create it for you. You also need to build the application each time you add a webform. Otherwise the aspx page will call the application dll and there
will not be an entry for the code behind in the dll unless you build the dll again.
Nov 22, 2005 09:39 PM|Roy Ng|LINK
I have created the web application and also I have tried using F7 but it does not effect.
Would anyone have any suggestion or reference for the above problems
Thank you for kind attention.