473,725 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading a deployed Assembly - System.IO.FileN otFoundExceptio n

I've looked through the previous posts on this one and have verified
permissions and location of my Dlls, but I am still getting an
exception when I try to Load an assembly.

The directory where my Dlls are located give the ASPNET user full
control, and all Dlls used by the Assembly in question are in the
local folder with the rest of the web application Dlls.

Could someone take a look at my error and shed some light on this?

I am passing an assembly name and class type to my "activator" method,
and when I do an Assembly.Load, I get the following exception:
General Information
*************** *************** ***************
Additional Info:
ExceptionManage r.MachineName: PLNXPL11
ExceptionManage r.TimeStamp: 12/5/2003 10:12:48 AM
ExceptionManage r.FullName:
Microsoft.Appli cationBlocks.Ex ceptionManageme nt,
Version=1.0.143 4.18346, Culture=neutral , PublicKeyToken= null
ExceptionManage r.AppDomainName :
/LM/W3SVC/1/Root/FrameworkAdminW eb-31-127151359460730 013
ExceptionManage r.ThreadIdentit y:
ExceptionManage r.WindowsIdenti ty: PLNXPL11\ASPNET

1) Exception Information
*************** *************** ***************
Exception Type: Microsoft.Appli cationBlocks.Ex ceptionManageme nt.BaseApplicat ionException
MachineName: PLNXPL11
CreatedDateTime : 12/5/2003 10:12:48 AM
AppDomainName: /LM/W3SVC/1/Root/FrameworkAdminW eb-31-127151359460730 013
ThreadIdentityN ame:
WindowsIdentity Name: PLNXPL11\ASPNET
Message: The Web UI Manager could not start the desired task for the
graph "FrameworkAdmin _MainMenu", client "", user class "", mobile =
False
TargetSite: NULL
HelpLink: NULL
Source: NULL

2) Exception Information
*************** *************** ***************
Exception Type: System.IO.FileN otFoundExceptio n
Message: File or assembly name
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic , or one of its
dependencies, was not found.
FileName: GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
FusionLog: === Pre-bind state information ===
LOG: DisplayName = GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
(Partial)
LOG: Appbase = file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin
Tool/Web App Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb
LOG: Initial PrivatePath = bin
Calling assembly : GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic,
Version=1.0.143 4.18348, Culture=neutral , PublicKeyToken= null.
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference:
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.

TargetSite: System.Reflecti on.Assembly
nLoad(System.Re flection.Assemb lyName, System.String, Boolean,
System.Security .Policy.Evidenc e, Boolean, System.Reflecti on.Assembly,
System.Threadin g.StackCrawlMar k ByRef)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*************** *************** ***************
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName
assemblyRef, Boolean stringized, Evidence assemblySecurit y,
StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString,
Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(String assemblyString)
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUICo ntrolFactory.Ac tivateClass(Str ing
strAssembly, String strTypeName, Object[] constructorArgs ) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s.applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\gmwebuicontro lfactory.cs:lin e
210
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUICo ntrolFactory.Cr eateController( GMWebUIState&
rfTaskState, Object[] constructorArgs ) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s.applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\gmwebuicontro lfactory.cs:lin e
165
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUIMa nager.StartNewT ask(String
strGraphName, String strClientName, String strUserClassNam e, String
strUserName, Boolean bIsMobilePage, NameValueCollec tion
nvcQueryStringD ata) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s.applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\gmwebuimanage r.cs:line
136
Nov 18 '05 #1
1 2926
Sounds like you're using an assembly that's coming from the GAC (the
ExceptionApplic ationBlock).

ASP.Net ASPX Pages don't see assemblies from the GAC unless they are
registered in the Compilation portion of the web.config file. If I recall
right even explicitly loading the assembly with an IMPORT doesn't work - it
needs the entry in the Config file.

No such problem exists with locally deployed assemblies as long as they are
in teh BIN directory...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"Brian" <bk*****@sysmat rix.net> wrote in message
news:2b******** *************** **@posting.goog le.com...
I've looked through the previous posts on this one and have verified
permissions and location of my Dlls, but I am still getting an
exception when I try to Load an assembly.

The directory where my Dlls are located give the ASPNET user full
control, and all Dlls used by the Assembly in question are in the
local folder with the rest of the web application Dlls.

Could someone take a look at my error and shed some light on this?

I am passing an assembly name and class type to my "activator" method,
and when I do an Assembly.Load, I get the following exception:
General Information
*************** *************** ***************
Additional Info:
ExceptionManage r.MachineName: PLNXPL11
ExceptionManage r.TimeStamp: 12/5/2003 10:12:48 AM
ExceptionManage r.FullName:
Microsoft.Appli cationBlocks.Ex ceptionManageme nt,
Version=1.0.143 4.18346, Culture=neutral , PublicKeyToken= null
ExceptionManage r.AppDomainName :
/LM/W3SVC/1/Root/FrameworkAdminW eb-31-127151359460730 013
ExceptionManage r.ThreadIdentit y:
ExceptionManage r.WindowsIdenti ty: PLNXPL11\ASPNET

1) Exception Information
*************** *************** ***************
Exception Type: Microsoft.Appli cationBlocks.Ex ceptionManageme nt.BaseApplicat ionException MachineName: PLNXPL11
CreatedDateTime : 12/5/2003 10:12:48 AM
AppDomainName: /LM/W3SVC/1/Root/FrameworkAdminW eb-31-127151359460730 013
ThreadIdentityN ame:
WindowsIdentity Name: PLNXPL11\ASPNET
Message: The Web UI Manager could not start the desired task for the
graph "FrameworkAdmin _MainMenu", client "", user class "", mobile =
False
TargetSite: NULL
HelpLink: NULL
Source: NULL

2) Exception Information
*************** *************** ***************
Exception Type: System.IO.FileN otFoundExceptio n
Message: File or assembly name
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic , or one of its
dependencies, was not found.
FileName: GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
FusionLog: === Pre-bind state information ===
LOG: DisplayName = GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
(Partial)
LOG: Appbase = file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin
Tool/Web App Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb
LOG: Initial PrivatePath = bin
Calling assembly : GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic,
Version=1.0.143 4.18348, Culture=neutral , PublicKeyToken= null.
===

LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Post-policy reference:
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminw eb/f844014c/eed817d7/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.Fr ameworkAdminToo l/FrameworkAdminW eb/bin/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic/
GrahamMarcus.Fr ameworkAdminToo l.BusinessLogic .EXE.

TargetSite: System.Reflecti on.Assembly
nLoad(System.Re flection.Assemb lyName, System.String, Boolean,
System.Security .Policy.Evidenc e, Boolean, System.Reflecti on.Assembly,
System.Threadin g.StackCrawlMar k ByRef)
HelpLink: NULL
Source: mscorlib

StackTrace Information
*************** *************** ***************
at System.Reflecti on.Assembly.nLo ad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurit y, Boolean
throwOnFileNotF ound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Assem blyName
assemblyRef, Boolean stringized, Evidence assemblySecurit y,
StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Int ernalLoad(Strin g assemblyString,
Evidence assemblySecurit y, StackCrawlMark& stackMark)
at System.Reflecti on.Assembly.Loa d(String assemblyString)
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUICo ntrolFactory.Ac t
ivateClass(Stri ng strAssembly, String strTypeName, Object[] constructorArgs ) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s
..applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\
gmwebuicontrolf actory.cs:line 210
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUICo ntrolFactory.Cr e
ateController(G MWebUIState& rfTaskState, Object[] constructorArgs ) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s
..applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\
gmwebuicontrolf actory.cs:line 165
at GrahamMarcus.Ap plicationBlocks .WebUI.Business Logic.GMWebUIMa nager.StartNewT a
sk(String strGraphName, String strClientName, String strUserClassNam e, String
strUserName, Boolean bIsMobilePage, NameValueCollec tion
nvcQueryStringD ata) in
c:\sourcesafero ot\grahammarcus \applicationblo cks\webui\solut ion\grahammarcu s
..applicationbl ocks.webui\grah ammarcus.applic ationblocks.web ui.businesslogi c\
gmwebuimanager. cs:line 136

Nov 18 '05 #2

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

Similar topics

11
10910
by: Neo | last post by:
Does anyone know how to get a list of the types in an Assembly without actually loading the Assembly into your app domain?
2
2429
by: David | last post by:
Hi, I'm working on a client\server project and I would like the client to be able to check the server to see if it requires a new dll (all of the dlls are based on a single interface).. if so it should download it and load it.. Is there any way of loading an assembly that is not in the GAC, or is there a way for the client to programatically register the assembly in the GAC?
7
3044
by: Ollie Riches | last post by:
I am trying to dynamically load an assembly that has a reference to 'Interop.WMEncoderLib.dll' which is a PIA to the windows media player DRM components. When I run the code from a console application it works perfectly fine, but when the assembly containing the reference is load from a windows service an exception is thrown with the following message: "File or assembly name Interop.WMEncoderLib, or one of its dependencies, was not...
3
2163
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a deployment scenario, it is possible that B is not installed, in which case, the dependencies for its assembly won't be there. When I try to load that assembly (which is copied) regardless, my application crashes saying that its dependencies cannot...
2
10648
by: Rabbit | last post by:
dear all, I was ok to use Visual Studio 2005 built-in Web Server to develop my web application. When I deploy it onto IIS, the compliation prompts following: >>>>>>>>>>>>>>>>>>> Error 1 Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. >>>>>>>>>>>>>>>>>>>
3
22147
by: Frank Uray | last post by:
Hi all I have a problem with loading a assembly ... I am trying to do the following: - I have a directory with a dll (assembly) in it (not the currect dir.) - I am trying to load this assembly, run a method in it, and than close it. The question would be: How is the right way to do it ????
2
151655
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web application, which contains a button and a label. When the button is clicked, some message is shown on the label. That's it. The AJAX works great on my development machine, but on the production server, I got the typical error as follows:
4
13081
by: Dariusz Tomon | last post by:
Hello I upgraded my project from Visual Studio 2003 to 2005. The upgrade was performed with no errors but now when I try to build my project (now it's in ..NET 2.0 not .NET 1.1 as was previously) I always get the following error: Error 1 The type 'System.Xml.Serialization.IXmlSerializable' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xml, Version=2.0.0.0, Culture=neutral,...
1
8338
by: Steve Wofford | last post by:
I am recieving the following. This happens when I moved it from my development system to our production SBS 2003 w/ latest .net frameworks and service packs . I developed under XPSP2 and VS2008. The error is pointing to the Web.Config of my application. System.Data.Entity was missing from the server, but was on the dev system. I tried to add, but didnt help: C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5
0
8882
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
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
9098
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
8080
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
6699
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
6007
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();...
0
4777
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3216
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
2627
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.