File or assembly name System.Xml, or one of its dependencies, was not found?

From: Olav Tollefsen (x_at_y.com)
Date: 02/19/05


Date: Sat, 19 Feb 2005 12:38:28 +0100

I get the included error message when trying to run my ASP.NET application
under Windows Server 2003 (with all updates installed).

How can I troubleshoot this?

Olav

File or assembly name System.Xml, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: File or assembly name
System.Xml, or one of its dependencies, was not found.

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System.Xml' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = System.Xml, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
 (Fully-specified)
LOG: Appbase = file:///D:/wwwroot/Mapaid/Flyfoto
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(c:\windows\microsoft.net\framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: System.Xml, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
LOG: Attempting download of new URL
file:///D:/wwwroot/Mapaid/Flyfoto/bin/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/wwwroot/Mapaid/Flyfoto/bin/System.Xml/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/wwwroot/Mapaid/Flyfoto/bin/System.Xml.EXE.
LOG: Attempting download of new URL
file:///D:/wwwroot/Mapaid/Flyfoto/bin/System.Xml/System.Xml.EXE.

Stack Trace:

[FileNotFoundException: File or assembly name System.Xml, or one of its
dependencies, was not found.]
   System.Web.Configuration.HttpConfigurationRecord..ctor(String filename,
HttpConfigurationRecord parent, Boolean inheritable, String path, String
mappedPhysicalPath) +0
   System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String
reqPath, IHttpMapPath configmap) +691
   System.Web.HttpContext.GetCompleteConfigRecord(String reqpath,
IHttpMapPath configmap) +434
   System.Web.HttpContext.GetCompleteConfig(String path) +88
   System.Web.HttpContext.GetAppLKGConfig(String name) +92

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



Relevant Pages

  • RE: File or assembly name System.Xml, or one of its dependencies, was
    ... > An unhandled exception was generated during the execution of the current web ... > be identified using the exception stack trace below. ... No redirect found in host configuration file ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PLEASE HELP - Access is denied: Microsoft.Office.Interop.Owc.
    ... >> includes the OWC both on server and client. ... An unhandled exception occurred during the ... >> using the exception stack trace below. ... Attempting download of new URL ...
    (microsoft.public.office.developer.web.components)
  • dll reference to web service - problems
    ... File or assembly name MyName, or one of its dependencies, was not found. ... Please review the stack trace for more information about ... Exception Details: System.IO.FileNotFoundException: File or assembly name ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.webservices)
  • updated Error R2
    ... I have tried to uninstall and reinstall R2 but showing this error. ... Please review the stack trace for more information about ... Exception Details: System.IO.FileNotFoundException: File or assembly name ... Attempting download of new URL ...
    (microsoft.public.windows.server.sbs)
  • Re: updated Error R2
    ... I have tried to uninstall and reinstall R2 but showing this error. ... An unhandled exception occurred during the execution of the current web request. ... Information regarding the origin and location of the exception can be identified using the exception stack trace below. ... Attempting download of new URL ...
    (microsoft.public.windows.server.sbs)