Hi, I’m looking a bit of help in trying to troubleshoot a
problem. We are using 0.85 rc-3. I’d like to be able to use regasm from
nantcontrib or call regasm using the exec task. <regasm assembly="${assemfile}" exporttypelib = "true" unregister="true"/> Regardless whether its location is within PATH, I get the
following error message (in debug mode): 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe'
failed to start.: NAnt.Core.BuildException:
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm. exe' failed to start. ---> System.ComponentModel.Win32Exception:
The directory name is invalid If I use the exec task, I get the same error. : <exec program="'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" commandline="/tlb /u ${assemfile}"/> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe'
failed to start.: NAnt.Core.BuildException:
'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm. exe' failed to start. --->
System.ComponentModel.Win32Exception: The directory n ame is invalid at
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startIn fo) at System.Diagnostics.Process.Start() at
NAnt.Core.Tasks.ExternalProgramBase.StartProcess() --- End of inner exception stack trace --- at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() at
NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Contrib.Tasks.RegasmTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.TaskContainer.ExecuteChildTasks() at NAnt.Core.TaskContainer.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Tasks.LoopTask.ExecuteChildTasks() at NAnt.Core.Tasks.LoopTask.DoWork(String[]
propVals) at NAnt.Core.Tasks.LoopTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) at NAnt.Core.Tasks.CallTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Straight from the commandline I can execute RegAsm with or
without the path being specified and I’ve checked to make sure the path(s)
are correct in nant.exe.config. Has anyone run into something like this before?
Thanks! Carl |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users