Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Could not load type

Posted on 2005-03-27
Medium Priority
Last Modified: 2008-01-09
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.
Question by:tonelm54

Accepted Solution

Havagan earned 1500 total points
ID: 13640195
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.


Author Comment

ID: 13640634
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 email@tonelm2.net.

Thanks for taking the time to try anyways!
LVL 13

Expert Comment

ID: 13641913
directory must be configered as application, did you do that..?

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question