[Mono-list] Web service cannot find assembly when placed to subfolder

Robert Jordan robertj at gmx.net
Fri Jun 5 14:01:55 EDT 2009


Andrus Moor wrote:
> I have the following files hosted in apache + Mono 2.4 +  Debian :
> 
> ~/www/htdocs/demo/StockService.asmx
> ~/www/htdocs/demo/Bin/Myapp.Service.dll

Try to rename "Bin" to "bin".

> StockService.asmx contains:
> 
> <%@ WebService Language="C#" Debug="True" CodeBehind="MyApp.Service.dll"
> Class="MyApp.Service.StockService" %>

CodeBehind is usually specifying the *.cs with the implementation.
But this is probably not the issue.

> If those files are placed directly to htdocs folder, all is OK.
> I need to host multiple mono web applications.
> How to place service to subfolder ?

If renaming "Bin" didn't help, try to turn off autohosting [1]
and declare your apps as described here [2].

[1] http://mono-project.com/AutoHosting
[2] http://mono-project.com/Mod_mono

Robert



More information about the Mono-list mailing list