PDA

View Full Version : ASP.net 1.1 'Cannot load type ...' error


mjlorbet
04-30-2008, 08:05 AM
Hello all,

i've encountered a problem here, i've got an existing asp.net 1.1 app that i've tried to copy from one server to another (domain transition) and out of box it doesn't work. all the references have been updated and so forth, the web application has been re-built in visual studio 2003, and the dll for all the code files resides within the bin directory. i've also set the permissions on the bin directory for reading, script + executable execution, and set anonymous access with an account that should have more than enough permissions for this purpose (permissions both on the directory hosting the application, yes, it's set as an application, and on the bin directory). even after all that (and reading a couple hundred posts about this on other forums) i keep getting the same message:


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 'HcNetQuickEnroll.enroll'.

Source Error:

Line 1: <%@ Page language="C#" AutoEventWireup="false" Inherits="HcNetQuickEnroll.enroll" %>Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >Line 3: <HTML>
Source File: \\herz-bb-file\bb_content\vi\bb_bb60\plugins\herz-herzenroll\webapp\HcNetQuickEnroll\enroll.aspx Line: 1


on accessing this file (however it occurs on every file)

<%@ Page language="C#" AutoEventWireup="false" Inherits="HcNetQuickEnroll.enroll" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>enroll</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<!--code here, nothing of consequence-->
</body>
</HTML>


any help would be greatly appreciated, i need to get this all figured out by tomorrow afternoon :eek: or i'm in for a world of hurt, thanks in advance

mjlorbet
04-30-2008, 08:45 AM
ah, well, i got it.
if anyone else gets this error after doing all the troubleshooting you'll find elsewhere, create a new app pool and set your web app to reference it.

p.s. should be a button for me to be able to thank me for solving my problem ;)