Website error: Could Not Load Type

H

Herb

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
 
N

Nathan Sokalski

I'm going to assume that you have compiled and uploaded the *.dll. I would
try deleting the *.dll (from both your local machine and the servers),
recompiling it, and then uploading it again. Your posted code looks correct,
but I'm sure that you know that the line it gives you in the error is not
always the line that needs fixed. I would take a look at your HVOA.master.vb
file and make sure it doesn't have any errors (especially in the class
declaration). Also, take a look at the errors tab in Visual Studio,
sometimes even an error in another page or class can prevent another from
compiling correctly, but still compiles.
 
A

Allen Chen [MSFT]

Hi Herb,

Firstly, please try to use CodeFile instead of CodeBehind to see if it
works. See the following post:
http://forums.asp.net/p/1256324/2345267.aspx


Secondly, if it still doesn't work please contact the GoDaddy's tech
support to get the version of the ASP.NET on server side. Besides, please
ask them to give you a confirmation that your web site has been configured
as an application in IIS.

Please let me know if you made any progress on this issue. I'll follow up.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| Thread-Topic: Website error: Could Not Load Type
| thread-index: Ack2qvNtCVWo2DGhT0ezL6rpATXQrg==
| X-WBNR-Posting-Host: 65.55.12.11
| From: =?Utf-8?B?SGVyYg==?= <[email protected]>
| Subject: Website error: Could Not Load Type
| Date: Sat, 25 Oct 2008 07:07:01 -0700
| Lines: 39
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3168
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.dotnet.languages.vb:52816
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| 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
| --
| stullhe104
|
 
A

Allen Chen [MSFT]

Hi Herb,

Do you have any progress on this issue?

Regards,
Allen Chen
Microsoft Online Support
--------------------
| Thread-Topic: Website error: Could Not Load Type
| thread-index: Ack2qvNtCVWo2DGhT0ezL6rpATXQrg==
| X-WBNR-Posting-Host: 65.55.12.11
| From: =?Utf-8?B?SGVyYg==?= <[email protected]>
| Subject: Website error: Could Not Load Type
| Date: Sat, 25 Oct 2008 07:07:01 -0700
| Lines: 39
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.3168
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl microsoft.public.dotnet.languages.vb:52816
| NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| 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
| --
| stullhe104
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top