Solved

Website error: Could Not Load Type

Posted on 2008-10-25
2
391 Views
Last Modified: 2012-06-27
I've developed an ASP.NET website that runs fine on my local WinXP IIS and on my server's IIS, both are IIS6.0

The site uses a master page that has the following declaration:
<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="HVOA.master.vb" Inherits="HVOAWebsite.HVOA" %>

The site will actually be hosted at an external hosting site, specifically GoDaddy.Com. So I moved the files to their site under a new virtual directory that, from what I can tell, has been defined as an application.

But when I try to run the site I get the following error:

Server Error in '/HVOAWebsite' 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 'HVOAWebsite.HVOA'.
Source Error:
Line 1:  <%@ Master Language="VB" AutoEventWireup="false" CodeBehind="HVOA.master.vb" Inherits="HVOAWebsite.HVOA" %>
Line 2:  
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Source File: /HVOAWebsite/HVOA.master    Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Can anyone tell me why this is happening. I've contacted GoDaddy's tech support and all they can tell me is that their hosting site is working fine so it must be a scripting error.

Thanks, Herb
0
Comment
Question by:stullhe104
2 Comments
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22803501
the error that you have posted does not help muh
can you please tell us from scratch how did you built and published your web sites
permissions on the folders etc etc...
0
 

Accepted Solution

by:
stullhe104 earned 0 total points
ID: 22803828
I figured this one out. It was user error! My error.
Turns out that I neglected to upload the BIN directory to the hosting site. That's why it couldn't find the namespace defined in the master page declaration.

What a dumb ass!

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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