Vince Chan wrote:


I had used the 0.84 version before. After getting your email, I thought I would try the latest nightly build before waiting for the next one just to see what happens. I got the following error message instead which is much more helpful.
I put the interop in the nant\bin directory which resolves my issue. (I had put the interop for the custom dll in the project root directory). Thank you for your help.


Thanks Vince. That tells me that the error you got *is* the one that I committed the fix for. The next build should allow you to put referenced assemblies in external directories. Please post here if you have issues with it.

Ian

Vince.

--- Error Message:  ---
INTERNAL ERROR

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.Fi
leNotFoundException: File or assembly name Interop.M4Lib, or one of its dependencies, was not found.
File name: "Interop.M4Lib"
at MainClass.ScriptMain(Project project)


=== Pre-bind state information ===
LOG: DisplayName = Interop.M4Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = d:\nantnb\bin\
LOG: Initial PrivatePath = lib;lib\net\1.1;lib\net
Calling assembly : (Unknown).
===


LOG: Private path hint found in configuration file: lib.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: Interop.M4Lib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
LOG: Attempting download of new URL file:///d:/nantnb/bin/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/Interop.M4Lib/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/Interop.M4Lib/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/1.1/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/1.1/Interop.M4Lib/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/Interop.M4Lib/Interop.M4Lib.DLL.
LOG: Attempting download of new URL file:///d:/nantnb/bin/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/Interop.M4Lib/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/Interop.M4Lib/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/1.1/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/1.1/Interop.M4Lib/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/Interop.M4Lib.EXE.
LOG: Attempting download of new URL file:///d:/nantnb/bin/lib/net/Interop.M4Lib/Interop.M4Lib.EXE.


--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] pa
rameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] pa
rameters, CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters
, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at NAnt.Core.Tasks.ScriptTask.ExecuteTask() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp29C4.tmp\src
\NAnt.MSNet\Tasks\ScriptTask.cs:line 347
at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp29C4.tmp\src\NAnt.Core\Task.
cs:line 177
at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp29C4.tmp\src\NAnt.Core\Tar
get.cs:line 249
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\Documents and Settings\drieseng\Loca
l Settings\Temp\tmp29C4.tmp\src\NAnt.Core\Project.cs:line 876
at NAnt.Core.Project.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp29C4.tmp\src\NAnt.Core\Pr
oject.cs:line 833
at NAnt.Core.Project.Run() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp29C4.tmp\src\NAnt.Core\Projec
t.cs:line 903


Please send bug report to [EMAIL PROTECTED]

Total time: 0.7 seconds.


Ian MacLean wrote:

Hi Vince,

Does script task support calling customer component?

I am trying to call a customer component from a script task and it generates the following error message:

script exception:
File or assembly name Interop.MyCom, or one of its dependencies, was not found.


An interop has been created using tlbimp and included as references.

could you post a copy of your build script ( or a modified version if it contains proprietry information ) to this list. That will give us more to work from.

I've just committed a fix for a bug with external references and the script task. It might be the same one you are experiencing. You could try grabbing the latest cvs or the next nightly build.

Ian

Any help will be appreciated.
Thank you.


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users







--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to