Are you placing the associated .dll file in the bin directory of the
application that WebForm1.aspx resides in?
Upload both:
-----------------------------
[AppRoot]
bin\Staff_Application.dll
WebForm1.aspx
-----------------------------
Or, if you are not using CodeBehind, use JIT compilation by changing the
CodeBehind attribute of your Page directive to a Src attribute:
-----------------------------
<%@ Page Language="vb" AutoEventWireup="false" Src="Application.aspx.vb"
Inherits="Staff_Application.WebForm1"%>
-----------------------------
Then, upload both files to the Application root
-----------------------------
[AppRoot]
WebForm1.aspx
WebForm1.aspx.vb
-----------------------------
Grant
"John" <Jo**@nospam.infovis.co.uk> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hi
I have a perfectly fine running webform on the local server. When I upload
the webform to a remote shared server I get the below error. Any idea what
is causing this?
Thanks
Regards
Parser Error Message: Could not load type 'Staff_Application.WebForm1'.
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Application.aspx.vb" Inherits="Staff_Application.WebForm1"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: D:\Webs\...\Staff_Application\Application.aspx Line: 1