Bug 986 - asp.net hosted svc service does not load referenced files in bin directory.
Summary: asp.net hosted svc service does not load referenced files in bin directory.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-09-22 06:06 UTC by DesDesDes
Modified: 2011-09-22 06:06 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Replay source (16.47 KB, application/zip)
2011-09-22 06:06 UTC, DesDesDes

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 986 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description DesDesDes 2011-09-22 06:06:47 UTC
Created attachment 467 [details]
Replay source

If your asp.net hosted svc file contains a reference to a service implemented in a dll in the bin directory you get an error accessing the service.

The error is included below. If the service implementation is in the main dll it does work. I've attached a repro with source for this error.

If you open it on mono develop on mac osx lion with mono 2.10.5 and debug it. After the browser launches access default.aspx. You can see the referenced all is in the bin directory and the assembly qualified name is printed.

Access server.svc from the browser. You get the error below. Finally access service1.svc. You can see if the implementation is in the website project is self it does work.

I've also tested the same code on windows with ms.net 4.0 and there it does work without changes.

In the stack trace it looks like she server is trying to load the all from the bin file but can't find it. But I can't seem to find out why (especially  because aspx can find the dll.)


Bart Vries

----- ERROR -----

Server Error in '/' Application

Type Shared.OneWayService not found.

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.HttpException: Type Shared.OneWayService not found.
  at System.ServiceModel.Channels.SvcHttpHandlerFactory.GetTypeFromBinAndConfig (System.String typeName) [0x000e9] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SvcHttpHandlerFactory.cs:156 
  at System.ServiceModel.Channels.SvcHttpHandlerFactory.LoadTypeFromSvc (System.String path, System.String url, System.Web.HttpContext context) [0x0002c] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SvcHttpHandlerFactory.cs:91 
  at System.ServiceModel.Channels.SvcHttpHandlerFactory.GetHandler (System.Web.HttpContext context, System.String requestType, System.String url, System.String pathTranslated) [0x00031] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.ServiceModel/System.ServiceModel.Channels/SvcHttpHandlerFactory.cs:62 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url, Boolean ignoreContextHandler) [0x00055] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.Web/System.Web/HttpApplication.cs:1633 
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, System.String url) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.Web/System.Web/HttpApplication.cs:1614 
  at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x007f4] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/System.Web/System.Web/HttpApplication.cs:1276 

Version information: Mono Runtime Version: 2.10.5 (tarball Mon Aug 22 20:38:08 EDT 2011); ASP.NET Version: 4.0.30319.1