[Mono-dev] can not find assembly...

Brian Chan bchanb at gmail.com
Tue Jul 10 13:42:06 EDT 2007


Hi all,
 
I've been trying to get a sample application up using the Castle framework
and Mono.  However, I've run into a problem.  I've narrowed it down to the
Castle.Services.Transaction assembly from Castle.
 
I created an empy console app in vs2005 with a reference to the
Castle.Services.Transaction assembly and this code:
 
   IActivityManager am;
   am = new CallContextActivityManager();
   if (am.CurrentActivity == null) am = null;
   am = new TLSActivityManager();
   if (am.CurrentActivity == null) am = null;
 
It works fine in the console app running under mono, as in it does not give
me any errors or throw an exception.
 
But if I do the same in an empty asp.net app it throws this exception:
 
root at ndev-linux /home/users/bchan/Project3# MONO_OPTIONS=--debug xsp2
xsp2
Listening on port: 8080 (non-secure)
Listening on address: 0.0.0.0
Root directory: /home/users/bchan/Project3
Hit Return to stop the server.
Internal error: OutputPage threw an exception
System.IO.FileNotFoundException: Could not load file or assembly
'Castle.Services.Transaction, Version=0.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system
cannot find the file specified.
File name: 'Castle.Services.Transaction, Version=0.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc'
  at (wrapper xdomain-invoke) Mono.WebServer.XSPRequestBroker:Close
(int,bool)
  at (wrapper remoting-invoke-with-check)
Mono.WebServer.XSPRequestBroker:Close (int,bool)
  at Mono.WebServer.XSPWorkerRequest.CloseConnection () [0x0000c] in
/home/users/bchan/mono-trunk/xsp/src/Mono.WebServer/XSPWorkerRequest.cs:307
  at System.Web.HttpResponse.Close () [0x00018] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpResponse.cs
:555
  at System.Web.HttpApplication.FinalErrorWrite (System.Web.HttpResponse
response, System.String error) [0x00014] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpApplication
.cs:774
  at System.Web.HttpApplication.OutputPage () [0x000ef] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpApplication
.cs:821
  at System.Web.HttpApplication.PipelineDone () [0x0002e] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpApplication
.cs:840
Tick caught an exception that has not been propagated:
System.IO.FileNotFoundException: Could not load file or assembly
'Castle.Services.Transaction, Version=0.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system
cannot find the file specified.
File name: 'Castle.Services.Transaction, Version=0.1.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc'
  at (wrapper xdomain-invoke)
Mono.WebServer.BaseRequestBroker:UnregisterRequest (int)
  at (wrapper remoting-invoke-with-check)
Mono.WebServer.BaseRequestBroker:UnregisterRequest (int)
  at Mono.WebServer.BaseApplicationHost.EndOfRequest
(Mono.WebServer.MonoWorkerRequest mwr) [0x00024] in
/home/users/bchan/mono-trunk/xsp/src/Mono.WebServer/BaseApplicationHost.cs:1
23
  at Mono.WebServer.MonoWorkerRequest.EndOfRequest () [0x0000b] in
/home/users/bchan/mono-trunk/xsp/src/Mono.WebServer/MonoWorkerRequest.cs:682
  at System.Web.HttpApplication.PipelineDone () [0x0004f] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpApplication
.cs:844
  at System.Web.HttpApplication.Tick () [0x00026] in
/home/users/bchan/mono-trunk/mcs/class/System.Web/System.Web/HttpApplication
.cs:655
root at ndev-linux /home/users/bchan/Project3#

 
The referenced assembly is in the bin folder so it should see it.  Does
anyone know why I am getting this error?
 
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070710/a9be1775/attachment.html 


More information about the Mono-devel-list mailing list