473,769 Members | 5,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Earlier debugging / more detailed dependency error info.

I'm trying to load an assembly of mine from a C# webforms page, but IIS
fails to load the page because of failed dependencies. My problem is that I
cannot for the life of me discover the dependency that is causing the
failure. I have verified that the assembly in question is loadable by a
small test EXE. Is there any way that I can debug the process at an earlier
stage, or retrieve more helpful error information that simple "The assembly
could not be loaded..."? Any help would be appreciated.. I'm really at a
dead end here.

Thanks,
Ben

This is the output:

Server Error in '/test1' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name AlbionNet, or one of its
dependencies, was not found.

Source Error:
Line 196: <add assembly="Syste m.EnterpriseSer vices, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\machine. config Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'AlbionNet' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = AlbionNet
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/test1
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: AlbionNet
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/test1/bin/AlbionNet.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet.config) .
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config\machine. config.
LOG: Post-policy reference: AlbionNet, Version=1.0.201 2.26049,
Culture=neutral , PublicKeyToken= 5d2d7c74a8180d1 7


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032
Nov 19 '05 #1
2 1437
Look at dependencies for the assembly in question and not the assembly
itself. Also, look at the permissions on the ASP.NET temporary directory.
Make sure that IUSR (WIndows XP -) or Network Service (Windows 2003) has
access.

A Visual Studio command prompt run of

aspnet_regiis /i

may help, but check perms as well.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Ben Harper" wrote:
I'm trying to load an assembly of mine from a C# webforms page, but IIS
fails to load the page because of failed dependencies. My problem is that I
cannot for the life of me discover the dependency that is causing the
failure. I have verified that the assembly in question is loadable by a
small test EXE. Is there any way that I can debug the process at an earlier
stage, or retrieve more helpful error information that simple "The assembly
could not be loaded..."? Any help would be appreciated.. I'm really at a
dead end here.

Thanks,
Ben

This is the output:

Server Error in '/test1' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name AlbionNet, or one of its
dependencies, was not found.

Source Error:
Line 196: <add assembly="Syste m.EnterpriseSer vices, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\machine. config Line:
198

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'AlbionNet' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = AlbionNet
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/test1
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: AlbionNet
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/test1/bin/AlbionNet.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet.config) .
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config\machine. config.
LOG: Post-policy reference: AlbionNet, Version=1.0.201 2.26049,
Culture=neutral , PublicKeyToken= 5d2d7c74a8180d1 7


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET
Version:1.1.432 2.2032

Nov 19 '05 #2
Thanks. I've checked what you mentioned, but to no avail. Like I said- a
standalone app which uses the assembly runs fine. It's very odd-- if I
create a mixed-mode dll with a custom entry point, then I get the same
thing. That same mixed-mode dll with the default entry point works ok.
"Cowboy (Gregory A. Beamer) - MVP" <No************ @comcast.netNoS pamM> wrote
in message news:28******** *************** ***********@mic rosoft.com...
Look at dependencies for the assembly in question and not the assembly
itself. Also, look at the permissions on the ASP.NET temporary directory.
Make sure that IUSR (WIndows XP -) or Network Service (Windows 2003) has
access.

A Visual Studio command prompt run of

aspnet_regiis /i

may help, but check perms as well.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** ************
Think Outside the Box!
*************** ************
"Ben Harper" wrote:
I'm trying to load an assembly of mine from a C# webforms page, but IIS
fails to load the page because of failed dependencies. My problem is that
I
cannot for the life of me discover the dependency that is causing the
failure. I have verified that the assembly in question is loadable by a
small test EXE. Is there any way that I can debug the process at an
earlier
stage, or retrieve more helpful error information that simple "The
assembly
could not be loaded..."? Any help would be appreciated.. I'm really at a
dead end here.

Thanks,
Ben

This is the output:

Server Error in '/test1' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration
file
required to service this request. Please review the specific error
details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name AlbionNet, or one of its
dependencies, was not found.

Source Error:
Line 196: <add assembly="Syste m.EnterpriseSer vices,
Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 197: <add assembly="Syste m.Web.Mobile, Version=1.0.500 0.0,
Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\micr osoft.net\frame work\v1.1.4322\ Config\machine. config
Line:
198

Assembly Load Trace: The following information can be helpful to
determine
why the assembly 'AlbionNet' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = AlbionNet
(Partial)
LOG: Appbase = file:///C:/Inetpub/wwwroot/test1
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: AlbionNet
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/test1/ae111b22/94469ec7/AlbionNet/AlbionNet.DLL.
LOG: Attempting download of new URL
file:///C:/Inetpub/wwwroot/test1/bin/AlbionNet.DLL.
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \aspnet.config) .
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322\ config\machine. config.
LOG: Post-policy reference: AlbionNet, Version=1.0.201 2.26049,
Culture=neutral , PublicKeyToken= 5d2d7c74a8180d1 7


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET
Version:1.1.432 2.2032

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2069
by: Don Hans | last post by:
Gents, Have .Net2003 Enterprise architect installed on a Win2k Server with IIS. Even logged in as administrator, I cannot run any ASP.NET app with debugging. I always get the error "Unable to start debugger on the web server: Access is Denied" when attempting to start the app with debugging. Now, I have already spent 3 days going through every Knowledge base article and all the included help with .net, have tried about 50 different...
0
3227
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
23
3206
by: keyser_Soze | last post by:
I have MS Visual Studio 2003 on Windows XP Pro. I have IIS running on this machine and I am trying to debug some existing code which has both ASP and ASP.NET components. When I try and launch the debugger from VS, I am told it can't because the project is of output type class library. The error indicates I should set the start action to start external program or start URL. I tried both of these and cannot seem to get the debugger to...
20
4496
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am not seeing my exception details. The web.config file being used has the setting <customErrors mode="Off"/>. This should allow me to see the detailed exception info. On a different computer - same code - same web config - the exception details...
4
3862
by: Darren Mar-Elia \(MVP\) | last post by:
So, I have my little .Net 2.0 C# utilities out in the wild and occasionally they have bugs(!). Often the bugs are easy to troubleshoot remotely but occasionally I would like to write detailed trace info to a simple text file that I could use to further track down the bugs. Additionally, somewhat related, it would be useful to be able to get the line number where an exception was thrown, which is slightly different than a debug log, but...
3
7059
by: donnyma | last post by:
I have a problem that looks like it has not been discussed before in these groups. I have a simple SQLAgent job that runs sp_who (could be anything, but let's just say sp_who for this example). I have set the jobstep to write to an output file "T:\out.txt". If the job is owned by an admin, it runs fine and writes the output file. If it is owned by a non-admin user, it gets the following error msg: Warning: cannot write logfile...
6
1803
by: asadikhan | last post by:
Hello, I have a bit of a design issue around this application I am developing, and I just want to run it through some of the brains out here. So I have a table called ErrorCheck which contains fields ErrorID (PK) and ErrorName. There is another table called Client which contains fields ClientID (PK) and ClientName. Then there is a relationship table called ClientErrorCheck which contains foreign keys ErrorID and
2
20850
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use some of the tools provided on the command-line. If you hate the command line tools, get over it since you’re bound to be using them at some point in your career. All commands in Linux ARE case sensitive so capital letters are different from lowercase...
3
6628
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I installed on the server I want to debug, the remote debugger tools from the VS 2005 CD. I just install the windows application. I tried from there to debug, without succes. I could connect to the remote machine only when the msvsmon.exe is in the...
0
10222
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10050
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9999
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.