?
Solved

Could not load type

Posted on 2005-03-27
3
Medium Priority
?
649 Views
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.
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
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.

Hav
0
 

Author Comment

by:tonelm54
ID: 13640634
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!
0
 
LVL 13

Expert Comment

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

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month14 days, 20 hours left to enroll

770 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