O
Olivier Matrot
Hello,
I have a .NET application that is called from within an installer custom
action.
The custom action is written in c# and called from a web site setup project.
The application is installed in the web site's bin directory.
It depends on libraries that are installed in the GAC.
The call to the application in the custom action is done through
Process.Start (not using shell execute).
Here is the fusion log :
________________________________________________
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087' or one of its dependencies. Le fichier
sp,cifi, est introuvable.
File name: 'FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087'
at RTEFAXExpressCustomer.Program.Main(String[] args)
=== Pre-bind state information ===
LOG: User = RTENETWORK\olivier.matrot
LOG: DisplayName = FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087
(Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/NAWEB3/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : RTEFAXExpressCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\inetpub\wwwroot\NAWEB3\bin\RTEFAXExpressCustomer.exe.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: FaxBoxCustomer, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=cb1c7cff7286f087
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer.DLL.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer/FaxBoxCustomer.DLL.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer.EXE.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer/FaxBoxCustomer.EXE.
___________________________________________________
The problem is that 'FaxBoxCustomer' library is located in the GAC, and
that the application is working fine when launched from the command line !
In both case the user is the same.
Previously the libraries were located alongside the application.
TIA.
I have a .NET application that is called from within an installer custom
action.
The custom action is written in c# and called from a web site setup project.
The application is installed in the web site's bin directory.
It depends on libraries that are installed in the GAC.
The call to the application in the custom action is done through
Process.Start (not using shell execute).
Here is the fusion log :
________________________________________________
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087' or one of its dependencies. Le fichier
sp,cifi, est introuvable.
File name: 'FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087'
at RTEFAXExpressCustomer.Program.Main(String[] args)
=== Pre-bind state information ===
LOG: User = RTENETWORK\olivier.matrot
LOG: DisplayName = FaxBoxCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087
(Fully-specified)
LOG: Appbase = file:///C:/inetpub/wwwroot/NAWEB3/bin/
LOG: Initial PrivatePath = NULL
Calling assembly : RTEFAXExpressCustomer, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb1c7cff7286f087.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file:
C:\inetpub\wwwroot\NAWEB3\bin\RTEFAXExpressCustomer.exe.config
LOG: Using machine configuration file from
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: FaxBoxCustomer, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=cb1c7cff7286f087
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer.DLL.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer/FaxBoxCustomer.DLL.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer.EXE.
LOG: Attempting download of new URL
file:///C:/inetpub/wwwroot/NAWEB3/bin/FaxBoxCustomer/FaxBoxCustomer.EXE.
___________________________________________________
The problem is that 'FaxBoxCustomer' library is located in the GAC, and
that the application is working fine when launched from the command line !
In both case the user is the same.
Previously the libraries were located alongside the application.
TIA.