Link to home
Start Free TrialLog in
Avatar of tonelm54
tonelm54

asked on

Could not load type

I have recentrly purchased an account  from 'hostonce' however every time I try and run an application I het the error message 'Server Error in '/' Application' (can be seen at 'http://www.tonelm2.net/WebApplication3/WebForm1.aspx' the code works fine on my local server running IIS, laptop, and uni servers, however cannot get it running at all on hostonce servers.

I have contacted Hostonce support and they have given me the following information.

the server message is given as...

Parser Error Message: Could not load type 'WebApplication2.WebForm1'

Line 1:  <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication2.WebForm1"%>
Line 2:  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3:  <HTML>
 
This means that your code behind is not located in the htdocs/bin folder.
You need to ensure that you located your code behind at that location so that the server can find it.



As far as I know you distribute the application by copying the solution over to the server, but it seems I have to do more.

If anyone wants a username or password to try anything please let me know and I will provide those details.

ASP.net is enabled on the server, and Im coding using Visual Studdio 2003 in VB, which is also supported by hostonce.
ASKER CERTIFIED SOLUTION
Avatar of Havagan
Havagan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tonelm54
tonelm54

ASKER

I already have the dll installed in the bin folder.
inside the bin folder I have:-
WebApplication3.dll
WebApplication3.pdb

I have tried downloading the most basic of code samples 'Hello World' and it comes up with the same error.

If you would like to have a look, or even have a go at seeing if any of your code would work, I would be happy to provide you with usernames and passwords to the server, and would be extreamly grateful if you could get any aspx code working. If you want me to set up a username and password send me an email at email@tonelm2.net.

Thanks for taking the time to try anyways!
directory must be configered as application, did you do that..?