Hi I am getting the following exception when attempting to use the solution task

 

            System.Runtime.Serialization.SerializationException: The type System

.ComponentModel.LicenseException in Assembly System, Version=1.0.5000.0, Culture

=neutral, PublicKeyToken=b77a5c561934e089 is not marked as serializable.

 

Server stack trace:

   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSeriali

ze(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, S

erObjectInfoInit serObjectInfoInit, IFormatterConverter converter)

   at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(O

bject obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerOb

jectInfoInit serObjectInfoInit, IFormatterConverter converter)

   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObj

ectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)

   at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Obje

ct graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)

   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(S

tream serializationStream, Object graph, Header[] headers, Boolean fCheck)

   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessage

Parts(ArrayList argsToSerialize)

   at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage..ctor(IMetho

dReturnMessage mrm)

   at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.SmuggleIfPos

sible(IMessage msg)

   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqS

tmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMessage& smug

gledMrm)

   at System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatch(B

yte[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm, SmuggledMethodReturnMes

sage& smuggledMrm)

 

Exception rethrown at [0]:

   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage req

Msg, IMessage retMsg)

   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgDa

ta, Int32 type)

   at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTas

k, String licenseFile)

   at NAnt.DotNet.Tasks.LicenseTask.ExecuteTask()

   at NAnt.Core.Task.Execute()

   at NAnt.VSNet.Resource.CompileLicx()

   at NAnt.VSNet.Resource.Compile(ConfigurationSettings configurationSettings, B

oolean showCommands)

   at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments,

 String strLogFile, Boolean bVerbose, Boolean bShowCommands)

   at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArgume

nts, String logFile, Boolean verbose, Boolean showCommands)

   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()

   at NAnt.Core.Task.Execute()

   at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc)

   at NAnt.Core.Project.Execute()

   at NAnt.Core.Project.Run()

 

            Please send bug report to [EMAIL PROTECTED].

 

It seems that the license task is failing.. I can manually remove the reference to the licx in the project and build work fine. ( I can’t use the licenced control of course :-) )

 

Any help would be deeply appreciated.

 

Somya

Reply via email to