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 '' 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. is enabled on the server, and Im coding using Visual Studdio 2003 in VB, which is also supported by hostonce.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Usually the code-behind isn't in the /bin folder, it's the compiled DLL. Build your solution and upload the DLL from your local inetpub/wwwroot/projectname/bin folder to the hostonce servers.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tonelm54Author Commented:
I already have the dll installed in the bin folder.
inside the bin folder I have:-

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

Thanks for taking the time to try anyways!
directory must be configered as application, did you do that..?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.