Hi Alex,

The <solution> definitely does not require Visual Studio .NET to be
installed.

What version of NAnt are you using ?  Using the latest nightly build, and
exception in GacResolver.IsAssemblyInGAC should never propogate to the
caller as we just return false if an assembly cannot be loaded.

However, I have no clue why you'd get a RemotingException.  Did it perhaps
take a long time for the operation to complete ?

Can you try adding this to the GacResolver class in
src/NAnt.VSNet/ReferenceGacCache.cs :

   #region Override implementation of MarshalByRefObject

   /// <summary>
   /// Obtains a lifetime service object to control the lifetime
   /// policy for this instance.
   /// </summary>
   /// <returns>
   /// <c>null</c> to indicate that this instance should live
   /// forever.
   /// </returns>
   public override object InitializeLifetimeService() {
    return null;
   }

   #endregion Override implementation of MarshalByRefObject

and rebuild NAnt ?

Thanks,

Gert

----- Original Message -----
From: "Osbun, Alex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 14, 2004 4:50 PM
Subject: [Nant-users] Solution task prerequisites


Does Visual Studio .Net need to be part of the build environment in order to
use the Solution task?  On an environment that has VS.Net installed the
solution task works, but I get the following error on an environment that
doesn't have VS.Net installed.

BUILD FAILED

INTERNAL ERROR

System.Runtime.Remoting.RemotingException: Object
</80d69086_d670_4ed2_8de0_953b152a1823/I9f789nIXCMiqIgYtFK4cWGN_3.rem> has
been disconnected or does not exist at the server.

Server stack trace:
   at
System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWe
llKnownObject(IMessage msg)
   at
System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessag
e msg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
   at NAnt.VSNet.GacResolver.IsAssemblyInGAC(String assemblyFile) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ReferenceGacCach
e.cs:line 133
   at NAnt.VSNet.ReferenceGacCache.IsAssemblyInGac(String assemblyFile) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ReferenceGacCach
e.cs:line 93
   at NAnt.VSNet.Reference.ResolveFromPath(String path) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 617
   at NAnt.VSNet.Reference.ResolveFromFolderList(StringCollection
folderList, String fileName) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 505
   at NAnt.VSNet.Reference.ResolveFromAssemblyFolders(XmlElement
referenceElement) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 597
   at NAnt.VSNet.Reference.ResolveAssemblyReference(XmlElement
referenceElement) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 478
   at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps,
XmlElement elemReference, ReferenceGacCache gacCache, SolutionTask
solutionTask, DirectoryInfo outputDir) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Reference.cs:lin
e 126
   at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Project.cs:line
174
   at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask
slnTask, TempFileCollection tfc, ReferenceGacCache gacCache, DirectoryInfo
outputDir, String path) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\ProjectFactory.c
s:line 70
   at NAnt.VSNet.Solution.LoadProjects(ReferenceGacCache gacCache) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Solution.cs:line
491
   at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList
additionalProjects, ArrayList referenceProjects, TempFileCollection tfc,
SolutionTask solutionTask, WebMapCollection webMaps, FileSet
excludesProjects, DirectoryInfo outputDir, ReferenceGacCache gacCache) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Solution.cs:line
127
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.VSNet\Tasks\SolutionTa
sk.cs:line 364
   at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Task.cs:line 151
   at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Target.cs:line
252
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
878
   at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
835
   at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp75.tmp\src\NAnt.Core\Project.cs:line
903

Thanks in advance!

Alex


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=ick
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to