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

Andrus Moor kobruleht2 at hot.ee
Fri Jun 5 14:27:02 EDT 2009


Thank you.

>> ~/www/htdocs/demo/StockService.asmx
>> ~/www/htdocs/demo/Bin/Myapp.Service.dll
> Try to rename "Bin" to "bin".

Rename does not help.

If assembly is placed to root directory: www/htdocs/Bin/Myapp.Service.dll
exception does not occur. So for strange reason  demo directory tries to
access root bin directory.
However I want to place whole application to demo subtree.

>> 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.

I have VS complied MyApp.Service.dll file , no source code in web server.

> 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

I have no rights to modify apache config in this shared mod_mono hosting.
Which config changes I must order from ISP or is there some other solution ?


More information about the Mono-list mailing list