Could not load type

G

Guest

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?
 
S

Steven Cheng[MSFT]

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?= <[email protected]>
| Subject: Could not load type
| Date: Tue, 16 Aug 2005 18:37:04 -0700
| Lines: 16
| 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.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?
|
|
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top