Hi all,
I am getting a SerializationException when attempting to build a web project
with a 3rd party licensed component.  Am using the latest nightly build (I
believe), with .Net 1.1.4322 on Windows XP sp1:

NAnt 0.85 (Build 0.85.1495.0; net-1.0.win32; nightly; 04/02/2004)

Target is:
<solution configuration="${build.configuration}"
    solutionfile="${src.solutiondir}\${src.solutionfile}"
    outputdir="${build.output}\${web.root}\bin">
    <webmap>
        <map url="http://localhost/${web.root}/${src.projfile}";
path="${src.projdir}\${src.projfile}" />
    </webmap>
</solution>

Exception is:

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.InitSerialize
(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInitserObjectInfoInit, IFormatterConverter converter)
        at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Obj
ect obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter)
        at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjec
tInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
        at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
        at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Str
eam serializationStream, Object graph, Header[] headers, Boolean fCheck)
        at
System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeMessagePa
rts(ArrayList argsToSerialize)
        at
System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage..ctor(IMethodR
eturnMessage mrm)
        at
System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.SmuggleIfPossi
ble(IMessage msg)
        at
System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[]
reqStmBuff, SmuggledMethodCallMessage smuggledMcm,
SmuggledMethodReturnMessage& smuggledMrm)
at
System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatch(Byt
e[] reqStmBuff, SmuggledMethodCallMessage smuggledMcm,
SmuggledMethodReturnMessage& smuggledMrm)

        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.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask
licenseTask, String licenseFile) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.DotNet\Tasks\LicenseT
ask.cs:line 210
        at NAnt.DotNet.Tasks.LicenseTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.DotNet\Tasks\LicenseT
ask.cs:line 191
        at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Task.cs:line 151
        at NAnt.VSNet.Resource.CompileLicx() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.VSNet\Resource.cs:lin
e 165
        at NAnt.VSNet.Resource.Compile(ConfigurationSettings
configurationSettings, Boolean showCommands) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.VSNet\Resource.cs:lin
e 73
        at NAnt.VSNet.Project.Compile(String configuration, ArrayList
alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.VSNet\Project.cs:line
355
        at NAnt.VSNet.Solution.Compile(String configuration, ArrayList
compilerArguments, String logFile, Boolean verbose, Boolean showCommands) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.VSNet\Solution.cs:lin
e 279
        at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.VSNet\Tasks\SolutionT
ask.cs:line 335
        at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Task.cs:line 151
        at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Target.cs:line
217
        at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Project.cs:line
772
        at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Project.cs:line
734
        at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp11C.tmp\src\NAnt.Core\Project.cs:line
797

        Please send bug report to [EMAIL PROTECTED]

Any help would be appreciated...  (if extra info is needed, then please let
me know...)

Pete



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to