473,383 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Confi g\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\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: AlbionNet, Version=1.0.2012.26049,
Culture=neutral, PublicKeyToken=5d2d7c74a8180d17


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Nov 19 '05 #1
2 1415
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="System.EnterpriseServices, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Confi g\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\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: AlbionNet, Version=1.0.2012.26049,
Culture=neutral, PublicKeyToken=5d2d7c74a8180d17


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.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.netNoSpamM> wrote
in message news:28**********************************@microsof t.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="System.EnterpriseServices,
Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 197: <add assembly="System.Web.Mobile, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 198: <add assembly="*"/>
Line 199: </assemblies>
Line 200: </compilation>
Source File:
c:\windows\microsoft.net\framework\v1.1.4322\Confi g\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\Microsoft.NET\Framework\v1.1.4322\aspn et.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\confi g\machine.config.
LOG: Post-policy reference: AlbionNet, Version=1.0.2012.26049,
Culture=neutral, PublicKeyToken=5d2d7c74a8180d17


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET
Version:1.1.4322.2032

Nov 19 '05 #3

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

Similar topics

5
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...
0
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...
23
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...
20
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...
4
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...
3
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). ...
6
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...
2
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...
3
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.