[Mono-list] mono mkbundle + xsp2.exe problem

XU, Jiangyan me at jxu.me
Wed Dec 15 13:49:20 EST 2010


Hi all,

I was trying to create a bundle for my ASP.NET application. I first did a
mkbundle to package xsp with all the dlls
*mkbundle2 -o program.bundle --deps --config-dir . --static -z
/usr/lib/mono/gac/xsp2/2.6.5.0__0738eb9f132ed756/xsp2.exe $dlls*

Then when I ran the bundle:
*program.bundle --root $my_web_root --port 8081 --verbose --nonstop*

Exceptions were thrown:

Handling exception type FileNotFoundException
Message is Could not find file "$my_web_root/xsp2.exe".
IsTerminating is set to True
System.IO.FileNotFoundException: Could not find file
"$my_web_root/xsp2.exe".
File name: '$my_web_root/xsp2.exe'
  at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
FileOptions options) [0x00000] in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync,
Boolean anonymous) [0x00000] in <filename unknown>:0
  at System.IO.FileStream..ctor (System.String path, FileMode mode,
FileAccess access) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess)
  at System.Security.Policy.Hash.GetData () [0x00000] in <filename
unknown>:0
  at System.Security.Policy.Hash.GetObjectData
(System.Runtime.Serialization.SerializationInfo info, StreamingContext
context) [0x00000] in <filename unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData
(System.Object obj,
System.Runtime.Serialization.Formatters.Binary.TypeMetadata& metadata,
System.Object& data) [0x00000] in <filename unknown>:0
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
(System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000] in
<filename unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInstance
(System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject)
[0x00000] in <filename unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects
(System.IO.BinaryWriter writer) [0x00000] in <filename unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph
(System.IO.BinaryWriter writer, System.Object obj,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename
unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph,
System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <filename
unknown>:0
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize
(System.IO.Stream serializationStream, System.Object graph) [0x00000] in
<filename unknown>:0
  at System.Runtime.Remoting.Channels.CADSerializer.SerializeObject
(System.Object obj) [0x00000] in <filename unknown>:0
  at System.Runtime.Remoting.Messaging.CADMethodCallMessage..ctor
(IMethodCallMessage callMsg) [0x00000] in <filename unknown>:0
  at System.Runtime.Remoting.Messaging.CADMethodCallMessage.Create (IMessage
callMsg) [0x00000] in <filename unknown>:0
  at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage
(IMessage msgRequest) [0x00000] in <filename unknown>:0

I have tried to change $my_web_root to other values and it appears that the
program always tries to search for "xsp2.exe" under the path specified by
"--root".

Has anyone made bundle for XSP? Can you help? Many thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20101215/31683939/attachment-0001.html 


More information about the Mono-list mailing list