Kevin,
 
Apparently you had localized resources (for the "en" culture) for which NAnt automatically created a satellite assembly (check ${builddir}/en/ErrorLog.resources).
 
You should also install that satellite assembly in the GAC.
 
Hope this helps,
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Burton, Kevin
Sent: dinsdag 18 januari 2005 3:46
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Resources

I am compiling an assembly using the following task:

 

                <csc target="library" output="${build.dir}/ErrorLog.dll" debug="true">

                    <arg value="/define:USEKEYCONTAINER" />

                    <arg value="/define:DEBUG" />

                    <arg value="/define:TRACE" />

                    <sources>

                        <include name="*.cs"/>

                    </sources>

                    <resources dynamicprefix="true" prefix="ErrorLog">

                        <include name="*.resx" />

                    </resources>

                    <references basedir="${build.dir}" />

                </csc>

 

The problem is that when I make a remoting call to the service that supports the remoting object I get the error below. The error indicates that it is looking for ErrorLog.resources which I was assuming was in ErrorLog.dll which is in the GAC. How do I make sure that the resources are embedded in the assembly?

 

Thank you.

 

Kevin

 

*** Assembly Binder Log Entry  (1/17/2005 @ 1:42:30 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:\Program Files\Visa\ApplicationServer\ApplicationServer.exe
--- A detailed error log follows. 
 
=== Pre-bind state information ===
LOG: DisplayName = ErrorLog.resources, Version=2.7.2.0, Culture=en, PublicKeyToken=53d3d319953ae13c
 (Fully-specified)
LOG: Appbase = C:\Program Files\Visa\ApplicationServer\
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = NULL
Calling assembly : ErrorLog, Version=2.7.2.0, Culture=neutral, PublicKeyToken=53d3d319953ae13c.
===
 
LOG: Processing DEVPATH.
LOG: DEVPATH is not set. Falling through to regular bind.
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: ErrorLog.resources, Version=2.7.2.0, Culture=en, PublicKeyToken=53d3d319953ae13c
LOG: Cache Lookup was unsuccessful.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources/ErrorLog.resources.DLL.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources.EXE.
LOG: Attempting download of new URL file:///C:/Program Files/Visa/ApplicationServer/en/ErrorLog.resources/ErrorLog.resources.EXE.
LOG: All probing URLs attempted and failed.

 

Reply via email to