473,848 Members | 1,562 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 2936
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
10928
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
2435
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
3047
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
2170
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
10657
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
22157
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
151664
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
13086
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
8367
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
9737
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11000
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
10663
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
10722
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,...
1
7893
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
5734
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4544
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
4136
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3174
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.