K
Karl Hungus
A cs file I compiled into an assembly dll is in my bin directory. In the cs
file I have a using statement for System.Xml
I compiled it using this command: csc /out:XmlContent.dll /t:library
XmlContent.cs
When I run my aspx page, which has a codebehind that instantiates the object
from in my assembly, I get the following error, anyone know why?
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:/html/users/testorg/html
LOG: Initial PrivatePath = bin
Calling assembly : XmlContent, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\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:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml/System.Xml.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml/System.Xml.EXE.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml.EXE.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml/System.Xml.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name System.Xml, or one of its
dependencies, was not found.]
Test.XmlContent..ctor(String xmlFile) +0
MyCodeBehind.Page_Load(Object Src, EventArgs E) +27
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
file I have a using statement for System.Xml
I compiled it using this command: csc /out:XmlContent.dll /t:library
XmlContent.cs
When I run my aspx page, which has a codebehind that instantiates the object
from in my assembly, I get the following error, anyone know why?
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:/html/users/testorg/html
LOG: Initial PrivatePath = bin
Calling assembly : XmlContent, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\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:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml.DLL.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml/System.Xml.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET
Files/root/d1dc28bf/188ad8f0/System.Xml/System.Xml.EXE.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml.EXE.
LOG: Attempting download of new URL
file:///D:/html/users/testorg/html/bin/System.Xml/System.Xml.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name System.Xml, or one of its
dependencies, was not found.]
Test.XmlContent..ctor(String xmlFile) +0
MyCodeBehind.Page_Load(Object Src, EventArgs E) +27
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724