[Mono-list] Assembly not being loaded from mkbundle'd executable

cocowalla colin.anderson333 at gmail.com
Fri Apr 25 09:41:41 UTC 2014


I'm mkbundling a bunch of assemblies, including ServiceStack.Text. When
running mkbundle, it tells me it's being embedded:

"embedding: /home/user/Verisys/build/ServiceStack.Text.dll"

However, when I try to run the resulting executable, I get this:

Unhandled exception
System.ApplicationException: RootDir
'/opt/mono32/lib/mono/gac/ServiceStack.Text/4.0.0.0__e06fbc6124f57c43' for
virtual path does not exist
  at ServiceStack.VirtualPath.FileSystemVirtualPathProvider.Initialize ()
[0x00000] in <filename unknown>:0 
  at ServiceStack.VirtualPath.FileSystemVirtualPathProvider..ctor (IAppHost
appHost, System.IO.DirectoryInfo rootDirInfo) [0x00000] in <filename
unknown>:0 
  at ServiceStack.VirtualPath.FileSystemVirtualPathProvider..ctor (IAppHost
appHost, System.String rootDirectoryPath) [0x00000] in <filename unknown>:0 
  at ServiceStack.ServiceStackHost.Init () [0x00000] in <filename unknown>:0 
  at MyExe.OnStart (System.String[] args) [0x00000] in <filename unknown>:0 

Any idea why it is attempting to load this assembly from the GAC, instead of
using the embedded one?



--
View this message in context: http://mono.1490590.n4.nabble.com/Assembly-not-being-loaded-from-mkbundle-d-executable-tp4662615.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list