Hi All,
I recently moved our assembly which stores our 'common' code into the
GAC. I then moved all copies of this assembly out of the /bin folders,
restarted IIS. I get the error below.
This is the first time I have put something into the GAC, from what I
read, the GAC is probed first, before looking to application folders,
so surely my code should load from the GAC, if its not in the app
folders? Or, is the error due to the way we have referenced the
libraries when building (Referenced by project).
Any help/advice on this will be appreciated.
Thanks,
Simon.
Server Error in '/netapps' Application.
--------------------------------------------------------------------------------
File or assembly name OldInfra, 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.FileN otFoundExceptio n: File or assembly
name OldInfra, 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 'OldInfra' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = OldInfra, Version=1.0.205 6.26999, Culture=neutral ,
PublicKeyToken= null
(Fully-specified)
LOG: Appbase = file:///D:/Introot/netapps
LOG: Initial PrivatePath = bin
Calling assembly : EmpPhotos, Version=1.0.205 6.26999, 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: OldInfra, Version=1.0.205 6.26999,
Culture=neutral , PublicKeyToken= null
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/netapps/54285709/c2671f29/OldInfra.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/netapps/54285709/c2671f29/OldInfra/OldInfra.DLL.
LOG: Attempting download of new URL
file:///D:/Introot/netapps/bin/OldInfra.DLL.
LOG: Attempting download of new URL
file:///D:/Introot/netapps/bin/OldInfra/OldInfra.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/netapps/54285709/c2671f29/OldInfra.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/netapps/54285709/c2671f29/OldInfra/OldInfra.EXE.
LOG: Attempting download of new URL
file:///D:/Introot/netapps/bin/OldInfra.EXE.
LOG: Attempting download of new URL
file:///D:/Introot/netapps/bin/OldInfra/OldInfra.EXE.
Stack Trace:
[FileNotFoundExc eption: File or assembly name OldInfra, or one of its
dependencies, was not found.]
EmpPhotos.stats .Page_Load(Obje ct sender, EventArgs e) +0
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +750
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.2032;
ASP.NET Version:1.1.432 2.2032 3 1814
Hey,
Is your DLL dependent on another assemly (not in the GAC)?
Dennis Hi All,
I recently moved our assembly which stores our 'common' code into the GAC. I then moved all copies of this assembly out of the /bin folders, restarted IIS. I get the error below.
This is the first time I have put something into the GAC, from what I read, the GAC is probed first, before looking to application folders, so surely my code should load from the GAC, if its not in the app folders? Or, is the error due to the way we have referenced the libraries when building (Referenced by project).
Any help/advice on this will be appreciated.
Thanks,
Simon.
Server Error in '/netapps' Application. ---------------------------------------------------------------------- ---------- File or assembly name OldInfra, 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.FileN otFoundExceptio n: File or assembly name OldInfra, 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 'OldInfra' could not be loaded.
=== Pre-bind state information === LOG: DisplayName = OldInfra, Version=1.0.205 6.26999, Culture=neutral , PublicKeyToken= null (Fully-specified) LOG: Appbase = file:///D:/Introot/netapps LOG: Initial PrivatePath = bin Calling assembly : EmpPhotos, Version=1.0.205 6.26999, 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: OldInfra, Version=1.0.205 6.26999, Culture=neutral , PublicKeyToken= null LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra.DLL. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra/OldInfra.DLL. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra.DLL. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra/OldInfra.DLL. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra.EXE. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra/OldInfra.EXE. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra.EXE. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra/OldInfra.EXE. Stack Trace:
[FileNotFoundExc eption: File or assembly name OldInfra, or one of its dependencies, was not found.] EmpPhotos.stats .Page_Load(Obje ct sender, EventArgs e) +0 System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67 System.Web.UI.C ontrol.LoadRecu rsive() +35 System.Web.UI.P age.ProcessRequ estMain() +750 ---------------------------------------------------------------------- ---------- Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET Version:1.1.432 2.2032
You need to tell ASP.NET explicitly to look for assemblies in the GAC.
Unlike WinForms application which automatically look in the GAC, ASP.NET
applications do not.
You can do this by adding something like this:
<compilation defaultLanguage ="c#" debug="true">
<assemblies>
<add assembly="MyAss embly.MyClass, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a"/>
</assemblies>
</compilation>
to web.config. You need to use the strong name for the assembly.
Hope this helps,
+++ Rick ---
--
Rick Strahl
West Wind Technologies www.west-wind.com www.west-wind.com/weblog
"Web Team @ Borough of Poole" <we*********@po ole.gov.uk> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . Hi All,
I recently moved our assembly which stores our 'common' code into the GAC. I then moved all copies of this assembly out of the /bin folders, restarted IIS. I get the error below.
This is the first time I have put something into the GAC, from what I read, the GAC is probed first, before looking to application folders, so surely my code should load from the GAC, if its not in the app folders? Or, is the error due to the way we have referenced the libraries when building (Referenced by project).
Any help/advice on this will be appreciated.
Thanks,
Simon. Server Error in '/netapps' Application. --------------------------------------------------------------------------------
File or assembly name OldInfra, 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.FileN otFoundExceptio n: File or assembly name OldInfra, 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 'OldInfra' could not be loaded.
=== Pre-bind state information === LOG: DisplayName = OldInfra, Version=1.0.205 6.26999, Culture=neutral , PublicKeyToken= null (Fully-specified) LOG: Appbase = file:///D:/Introot/netapps LOG: Initial PrivatePath = bin Calling assembly : EmpPhotos, Version=1.0.205 6.26999, 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: OldInfra, Version=1.0.205 6.26999, Culture=neutral , PublicKeyToken= null LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra.DLL. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra/OldInfra.DLL. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra.DLL. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra/OldInfra.DLL. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra.EXE. LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/netapps/54285709/c2671f29/OldInfra/OldInfra.EXE. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra.EXE. LOG: Attempting download of new URL file:///D:/Introot/netapps/bin/OldInfra/OldInfra.EXE. Stack Trace:
[FileNotFoundExc eption: File or assembly name OldInfra, or one of its dependencies, was not found.] EmpPhotos.stats .Page_Load(Obje ct sender, EventArgs e) +0 System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67 System.Web.UI.C ontrol.LoadRecu rsive() +35 System.Web.UI.P age.ProcessRequ estMain() +750
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.432 2.2032; ASP.NET Version:1.1.432 2.2032
Hi Rick,
Thanks for your reply. Couple of questions if you don't mind...
- Do I do this in the web.config for each application?
- I take it I would then have to rebuild all my apps?
- Where do I get the value for the PublicKeyToken attribute?
Cheers!
Simon.
Rick Strahl [MVP] wrote: You need to tell ASP.NET explicitly to look for assemblies in the GAC. Unlike WinForms application which automatically look in the GAC, ASP.NET applications do not.
You can do this by adding something like this:
<compilation defaultLanguage ="c#" debug="true">
<assemblies>
<add assembly="MyAss embly.MyClass, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a"/>
</assemblies>
</compilation>
to web.config. You need to use the strong name for the assembly.
Hope this helps,
+++ Rick ---
--
Rick Strahl West Wind Technologies www.west-wind.com www.west-wind.com/weblog This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Edward Diener |
last post by:
This has occurred in MC++, but since there is very little response on that
NG, I am also reporting it here in the hope that someone can find me a
workaround, and report it to MS.
If a __value class with an event is put into an assembly and a __gc class in
another assembly, which has an instance of the __value class as a data
member,...
|
by: Karl Hungus |
last post by:
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...
|
by: Praveen Ramesh |
last post by:
Hi,
Is there any way to add the @Assembly reference to the aspx files
programmatically from inside a custom control (when it gets dropped on to
the page from the toolbox)?
I have a custom control - MyControl that implements an interface in another
custom assembly - InterfaceAssembly. When MyControl gets dropped on to the
page and run, it...
|
by: Jim |
last post by:
Hi, I have an assembly and it's satellite in my GAC.
I have referenced the DLLs in my project (from the same location where I
added it to the GAC). CopyLocal is set false.
When I run the project I get our old friend:
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please...
|
by: Andrew Jocelyn |
last post by:
Hi
I get this error when I change something in the web.config file. When I
build the VS projects and load the first web page the application runs fine.
If I then make a save the web.config file I then get this error when I
refresh the browser. I have to restart IIS to fix the problem.
I've included the error info but it all looks very...
| |
by: Richard Lewis Haggard |
last post by:
We are having a lot of trouble with problems relating to failures relating
to 'The located assembly's manifest definition with name 'xxx' does not
match the assembly reference" but none of us here really understand how this
could be an issue. The assemblies that the system is complaining about are
ones that we build here and we're not changing...
|
by: jason_cuteboy |
last post by:
Hi all,
Completely new to Vb.net and trying to create a simple VB Office Excel
application/spreadsheet. When I built the project, and excel opens up
an error comes up.... Customization assembly could not be found or
loaded?
File or assembly name
Microsoft.VisualStudio.Tools.Applications.Runtime, or one of its
dependencies, was not found.
|
by: =?Utf-8?B?SmFu?= |
last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll.
The application generates a plugin-dll which is then loaded in a separate
AppDomain (along with a second instance of my application dll).
It's been working for months and now the it's not working from my
application exe anymore but still working from NUnit when...
|
by: Monty |
last post by:
Hello,
I have created a solution which has both a web UI and a winform UI, the
latter is just for administrators. The Web UI (a Web Application Project)
and the winform project both reference the same BLL in a separate assembly,
and I have all three projects in a single solution file for development,
with the two UI's each having a...
|
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...
|
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. ...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |