PC Review


Reply
Thread Tools Rate Thread

Could not load type

 
 
=?Utf-8?B?Q2hyaXNz?=
Guest
Posts: n/a
 
      17th Aug 2005
I receive "could not load type" error message when trying to load aspx page.
The DLL is built and is located in the correct bin directory. The type name
in the "inherits" attribute matches the type name in the DLL. The
permissions on the bin drectory look okay.

In fact, the problem only occurs on a few machines. I have been
unable to find any differences between the good and bad machines as far as
software versions and configuration.

It shouldn't make any difference but the .aspx files are located in a
subdirectory below the application root. The error message goes away if I
place the .aspx files in a different application root without the
subdirectory.

Any ideas?

 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      17th Aug 2005
Hi Chriss,

Welcome to ASP.NET newsgroup.
As for the "Could not load type" error, I also think it's an assembly
loading problem. Based on my experience, it's likely caused by your
application's virtual dir's configuration. As you mentioned that the
problem occurs when the pages(cause the errror) are put in a sub dir under
the Application's root dir, then, have you checked whether the sub dir has
been configured as "Application" in the IIS? If the sub dir is also
configured as "Application", this is just the cause of the problem since
each virtual dir configured as "Application" is considered a separate
application and the pages in it and its sub dirs will try locating type
from assemblies under that dir(configured as application)'s private bin
dir. You can check it on the problem server. Also, the .NET's Fusion Log
Viewer tool (fuslogvw.exe) can help us confirm whether the runtime has
incorrectly locate assembly in the wrong path.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)





--------------------
| Thread-Topic: Could not load type
| thread-index: AcWizCvbKdaadaSXRWa8aoC2J3XteA==
| X-WBNR-Posting-Host: 64.169.85.157
| From: =?Utf-8?B?Q2hyaXNz?= <(E-Mail Removed)>
| Subject: Could not load type
| Date: Tue, 16 Aug 2005 18:37:04 -0700
| Lines: 16
| Message-ID: <C31E238F-8ED9-4560-9F40-(E-Mail Removed)>
| 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.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118475
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I receive "could not load type" error message when trying to load aspx
page.
| The DLL is built and is located in the correct bin directory. The type
name
| in the "inherits" attribute matches the type name in the DLL. The
| permissions on the bin drectory look okay.
|
| In fact, the problem only occurs on a few machines. I have been
| unable to find any differences between the good and bad machines as far
as
| software versions and configuration.
|
| It shouldn't make any difference but the .aspx files are located in a
| subdirectory below the application root. The error message goes away if
I
| place the .aspx files in a different application root without the
| subdirectory.
|
| Any ideas?
|
|

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not load type Thom Little Microsoft ASP .NET 1 21st Jun 2006 01:39 AM
Could not load type Thom Little Microsoft Dot NET Framework 1 16th Jun 2006 01:27 PM
Could not load type asp.net =?Utf-8?B?c2VndWU=?= Microsoft ASP .NET 2 1st Aug 2005 06:51 PM
could load type JD Microsoft ASP .NET 1 28th Jun 2005 06:18 PM
Could not load type Kevin Quigley Microsoft ASP .NET 3 17th Oct 2003 04:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:59 AM.