G
Guest
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 review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: File or assembly name ....., or one of its
dependencies, was not found.
So I obtained the fusion log (I've changed the names to protect the innocent):
*** Assembly Binder Log Entry (6/2/2005 @ 11:42:56 AM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = myDLL
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/myApp
LOG: Initial PrivatePath = bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\myApp\247702f1
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\myApp\247702f1
LOG: AppName = b0b6a047
Calling assembly : (Unknown).
===
LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: myDLL
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL/myDLL.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL/myDLL.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL/myDLL.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL/myDLL.EXE.
LOG: All probing URLs attempted and failed.
The only thing interesting about this is that it *should* say that it
checked the GAC, but it doesn't, why is this? Is my machine lazy? Is it by
design ;-?
If I set CopyLocal to true it works, but of course, this violates that oh so
lovely KB article http://support.microsoft.com/?id=324519, so I can't do that.
I have checked that the versions in the GAC
myDLLSatellite, Version=2.0.0.2, Culture=neutral, PublicKeyToken=xxxx,
Custom=null
myDLL, Version=3.8.1.16824, Culture=neutral, PublicKeyToken=xxxx, Custom=null
match the references in the project.
I've restarted my machine, I've removed and readded to the GAC, I've tried
banging the side of my monitor - but none helps!
Can someone please give me an idea why this wouldn't be working?
Thanks in advance.
Jim
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 review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: File or assembly name ....., or one of its
dependencies, was not found.
So I obtained the fusion log (I've changed the names to protect the innocent):
*** Assembly Binder Log Entry (6/2/2005 @ 11:42:56 AM) ***
The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.
Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll
Running under executable
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_wp.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: DisplayName = myDLL
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/myApp
LOG: Initial PrivatePath = bin
LOG: Dynamic Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\myApp\247702f1
LOG: Cache Base = C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\myApp\247702f1
LOG: AppName = b0b6a047
Calling assembly : (Unknown).
===
LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: myDLL
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL/myDLL.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL/myDLL.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/myApp/247702f1/b0b6a047/myDLL/myDLL.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/myApp/bin/myDLL/myDLL.EXE.
LOG: All probing URLs attempted and failed.
The only thing interesting about this is that it *should* say that it
checked the GAC, but it doesn't, why is this? Is my machine lazy? Is it by
design ;-?
If I set CopyLocal to true it works, but of course, this violates that oh so
lovely KB article http://support.microsoft.com/?id=324519, so I can't do that.
I have checked that the versions in the GAC
myDLLSatellite, Version=2.0.0.2, Culture=neutral, PublicKeyToken=xxxx,
Custom=null
myDLL, Version=3.8.1.16824, Culture=neutral, PublicKeyToken=xxxx, Custom=null
match the references in the project.
I've restarted my machine, I've removed and readded to the GAC, I've tried
banging the side of my monitor - but none helps!
Can someone please give me an idea why this wouldn't be working?
Thanks in advance.
Jim