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:
ExceptionManager.MachineName: PLNXPL11
ExceptionManager.TimeStamp: 12/5/2003 10:12:48 AM
ExceptionManager.FullName:
Microsoft.ApplicationBlocks.ExceptionManagement,
Version=1.0.1434.18346, Culture=neutral, PublicKeyToken=null
ExceptionManager.AppDomainName:
/LM/W3SVC/1/Root/FrameworkAdminWeb-31-127151359460730013
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: PLNXPL11\ASPNET
1) Exception Information
*********************************************
Exception Type: Microsoft.ApplicationBlocks.ExceptionManagement.Ba seApplicationException
MachineName: PLNXPL11
CreatedDateTime: 12/5/2003 10:12:48 AM
AppDomainName: /LM/W3SVC/1/Root/FrameworkAdminWeb-31-127151359460730013
ThreadIdentityName:
WindowsIdentityName: 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.FileNotFoundException
Message: File or assembly name
GrahamMarcus.FrameworkAdminTool.BusinessLogic, or one of its
dependencies, was not found.
FileName: GrahamMarcus.FrameworkAdminTool.BusinessLogic
FusionLog: === Pre-bind state information ===
LOG: DisplayName = GrahamMarcus.FrameworkAdminTool.BusinessLogic
(Partial)
LOG: Appbase = file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin
Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb
LOG: Initial PrivatePath = bin
Calling assembly : GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic ,
Version=1.0.1434.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.FrameworkAdminTool.BusinessLogic
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminweb/f844014c/eed817d7/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminweb/f844014c/eed817d7/
GrahamMarcus.FrameworkAdminTool.BusinessLogic/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/
GrahamMarcus.FrameworkAdminTool.BusinessLogic/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminweb/f844014c/eed817d7/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/frameworkadminweb/f844014c/eed817d7/
GrahamMarcus.FrameworkAdminTool.BusinessLogic/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE.
LOG: Attempting download of new URL
file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App
Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/
GrahamMarcus.FrameworkAdminTool.BusinessLogic/
GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE.
TargetSite: System.Reflection.Assembly
nLoad(System.Reflection.AssemblyName, System.String, Boolean,
System.Security.Policy.Evidence, Boolean, System.Reflection.Assembly,
System.Threading.StackCrawlMark ByRef)
HelpLink: NULL
Source: mscorlib
StackTrace Information
*********************************************
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean
throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyNa me
assemblyRef, Boolean stringized, Evidence assemblySecurity,
StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.Load(String assemblyString)
at GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIControlFactory.ActivateClass(String
strAssembly, String strTypeName, Object[] constructorArgs) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus.applicationblocks.webui \grahammarcus.applicationblocks.webui.businesslogi c\gmwebuicontrolfactory.cs:line
210
at GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIControlFactory.CreateController(GMWebUISta te&
rfTaskState, Object[] constructorArgs) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus.applicationblocks.webui \grahammarcus.applicationblocks.webui.businesslogi c\gmwebuicontrolfactory.cs:line
165
at GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIManager.StartNewTask(String
strGraphName, String strClientName, String strUserClassName, String
strUserName, Boolean bIsMobilePage, NameValueCollection
nvcQueryStringData) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus.applicationblocks.webui \grahammarcus.applicationblocks.webui.businesslogi c\gmwebuimanager.cs:line
136 1 2810
Sounds like you're using an assembly that's coming from the GAC (the
ExceptionApplicationBlock).
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*****@sysmatrix.net> wrote in message
news:2b*************************@posting.google.co m... 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: ExceptionManager.MachineName: PLNXPL11 ExceptionManager.TimeStamp: 12/5/2003 10:12:48 AM ExceptionManager.FullName: Microsoft.ApplicationBlocks.ExceptionManagement, Version=1.0.1434.18346, Culture=neutral, PublicKeyToken=null ExceptionManager.AppDomainName: /LM/W3SVC/1/Root/FrameworkAdminWeb-31-127151359460730013 ExceptionManager.ThreadIdentity: ExceptionManager.WindowsIdentity: PLNXPL11\ASPNET
1) Exception Information ********************************************* Exception Type:
Microsoft.ApplicationBlocks.ExceptionManagement.Ba seApplicationException MachineName: PLNXPL11 CreatedDateTime: 12/5/2003 10:12:48 AM AppDomainName: /LM/W3SVC/1/Root/FrameworkAdminWeb-31-127151359460730013 ThreadIdentityName: WindowsIdentityName: 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.FileNotFoundException Message: File or assembly name GrahamMarcus.FrameworkAdminTool.BusinessLogic, or one of its dependencies, was not found. FileName: GrahamMarcus.FrameworkAdminTool.BusinessLogic FusionLog: === Pre-bind state information === LOG: DisplayName = GrahamMarcus.FrameworkAdminTool.BusinessLogic (Partial) LOG: Appbase = file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb LOG: Initial PrivatePath = bin Calling assembly : GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic , Version=1.0.1434.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.FrameworkAdminTool.BusinessLogic LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/frameworkadminweb/f844014c/eed817d7/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/frameworkadminweb/f844014c/eed817d7/ GrahamMarcus.FrameworkAdminTool.BusinessLogic/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL. LOG: Attempting download of new URL file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL. LOG: Attempting download of new URL file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/ GrahamMarcus.FrameworkAdminTool.BusinessLogic/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.DLL. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/frameworkadminweb/f844014c/eed817d7/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE. LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/frameworkadminweb/f844014c/eed817d7/ GrahamMarcus.FrameworkAdminTool.BusinessLogic/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE. LOG: Attempting download of new URL file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE. LOG: Attempting download of new URL file:///C:/SourceSafeRoot/GrahamMarcus/Framework Admin Tool/Web App Solution/GrahamMarcus.FrameworkAdminTool/FrameworkAdminWeb/bin/ GrahamMarcus.FrameworkAdminTool.BusinessLogic/ GrahamMarcus.FrameworkAdminTool.BusinessLogic.EXE.
TargetSite: System.Reflection.Assembly nLoad(System.Reflection.AssemblyName, System.String, Boolean, System.Security.Policy.Evidence, Boolean, System.Reflection.Assembly, System.Threading.StackCrawlMark ByRef) HelpLink: NULL Source: mscorlib
StackTrace Information ********************************************* at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyNa me assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.Load(String assemblyString) at
GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIControlFactory.Act
ivateClass(String strAssembly, String strTypeName, Object[] constructorArgs) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus
..applicationblocks.webui\grahammarcus.application blocks.webui.businesslogic\
gmwebuicontrolfactory.cs:line 210 at
GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIControlFactory.Cre
ateController(GMWebUIState& rfTaskState, Object[] constructorArgs) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus
..applicationblocks.webui\grahammarcus.application blocks.webui.businesslogic\
gmwebuicontrolfactory.cs:line 165 at
GrahamMarcus.ApplicationBlocks.WebUI.BusinessLogic .GMWebUIManager.StartNewTa
sk(String strGraphName, String strClientName, String strUserClassName, String strUserName, Boolean bIsMobilePage, NameValueCollection nvcQueryStringData) in
c:\sourcesaferoot\grahammarcus\applicationblocks\w ebui\solution\grahammarcus
..applicationblocks.webui\grahammarcus.application blocks.webui.businesslogic\
gmwebuimanager.cs:line 136 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the...
|
by: Carina712 |
last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...
| |