We help IT Professionals succeed at work.

Need help with Parser Error Message: Could not load type <name>

I'm a .Net newbie and just uploaded my first vb.net application to my web host's server. I am getting this error at my web host. The application runs fine on my local system - Vista, IIS7, .Net 3.5 framework. Could the framework version difference be the problem? They support 3.5 but obviously it's not on my web server.

Who can solve this, me or my web host?

Thank you!
Tim

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type 'vehicleDetails'.

Source Error:

Line 1: <%@ Import Namespace="System.Data" %>
Line 2: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="vehicleDetails.aspx.vb" Inherits="vehicleDetails" %>
Line 3:
Line 4:

Source File: D:\Domains\zanalysts.com\wwwroot\projects\cargo\vehicleDetails.aspx Line: 2

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407
Comment
Watch Question

Senior Consultant - Deloitte
BRONZE EXPERT
Commented:
It could not find vehicleDetails clas declared in the code behind.

Pelase check that you code complied successfully and the class name is same.

Commented:
Uhm, do they have 3.5 or not? You could target your site for framework 2 if youre not sure, just to test. (if you'r not using stuff that needs 3.5)

Also, (sorry for asking), but have you uploaded the vehicleDetails.aspx.vb file aswell?
Commented:
Ah, now - yes, "Version Information: Microsoft .NET Framework Version:1.1.4322.2407", you will need to ask them to let you run fw 3.5. (Might be possible using a controlpanel)

Author

Commented:
I always appreciate prompt responses so THANK YOU both! I confirmed a clean compile and upgraded the fw version to 3.5 but still have the same problem. I think I simply have to take time out to understand the requirements for setting up a .Net application on my hosted site. I thought it would be as simple as uploading files but obviously not.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.