Pb with the GAC

N

nrolland

Hello,


I am trying to load a call to a signed dotnet assembly from Excel.
It works on my dev machine, not on deployment machine.

I created a MSI project to include the output files of my library.
After installing the MSI, I verified the library was in the GAC with
gacutils


Here are the logs of fuslogw.
What really bugs me is there are no calls to the GAC !!
On my dev machine, i have a line saying "LOG: GAC Lookup was
unsuccessful." wich is normal since it is not gaced there, but at least
the binder is trying to look it up : not on my deployment machine.


Is there any additional steps to do ?
Thanks for your help.



*** Assembly Binder Log Entry (10/24/2006 @ 8:56:21 PM) ***

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:\PROGRA~1\MICROS~2\Office10\EXCEL.EXE
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: DisplayName = SGTradingAnalytics, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=096a6f137bc03141
(Fully-specified)
LOG: Appbase = C:\PROGRA~1\MICROS~2\Office10\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : (Unknown).
===

LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
LOG: Attempting application configuration file download.
LOG: Download of application configuration file was attempted from
file:///C:/PROGRA~1/MICROS~2/Office10/EXCEL.EXE.config.
LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: SGTradingAnalytics, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=096a6f137bc03141
LOG: Cache Lookup was unsuccessful.
LOG: Attempting download of new URL
file:///C:/PROGRA~1/MICROS~2/Office10/SGTradingAnalytics.DLL.
LOG: Attempting download of new URL
file:///C:/PROGRA~1/MICROS~2/Office10/SGTradingAnalytics/SGTradingAnalytics.DLL.
LOG: Attempting download of new URL
file:///C:/PROGRA~1/MICROS~2/Office10/SGTradingAnalytics.EXE.
LOG: Attempting download of new URL
file:///C:/PROGRA~1/MICROS~2/Office10/SGTradingAnalytics/SGTradingAnalytics.EXE.
LOG: All probing URLs attempted and failed.
LOG: Attempting to install assembly using Windows Installer.
 
G

Guest

Need to Check

1. Make sure that the Strong name which you have created is proper.
2. Check the Assemblyinfo.cs file
3.In MSI Include the Assemply which u want to register and set the proprty
yo that assemply yo registeritself that will automatically registered and
placed in the GAC.
"OR" Use Gacutil.exe to register the Assembly

Regards
Prabakar
 
N

nrolland

Hi,

The assembly is in the GAC (verified with gautils /l ), but excel is
NOT looking for it there, as shown in the Log.

Any idea of what decides the GAC lookup or not ?

N
 
D

David Levine

nrolland said:
Hi,

The assembly is in the GAC (verified with gautils /l ), but excel is
NOT looking for it there, as shown in the Log.

Any idea of what decides the GAC lookup or not ?

It is looking in the gac but not finding it for some reason - it's supposed
to look there 1st. It looked in the GAC for a publisher policy but did not
find that either, as indicated by the line:
The version of the machine uses runtime version 1.1.
( from >> > Assembly manager loaded from:
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\fusion.dll )

v1.1 behaves differently then version 2.0 wrt how assemblies are located.
Try upgrading to 2.0 and see if that solves your problem.
 
N

nrolland

Thank you very much for the hint.
This must be a pb of framework as my dll is framework 2.0, and I dont
see reason for the assembly manager to be 1.1
Also, when looking at the 2.0 GAC my dll is present, while it is absent
from 1.1 GAC
(list of assemblies obtained through control panel -> administrator
tools-> and
-Configuration Microsoft Dotnet framework 2.0
-Microsoft .Net configuration)


I wonder where is Excel deciding which framework version to use.
 
N

nrolland

Under my XP account, the correct (2.0) binding manager is loaded.
Under my colleague XP account, the wrong (1.1) fusion is called for the
same library.


Would anyone know where Excel knows which framework to use when making
a COM call to a managed library ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top