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 (show other bugs)
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-09-22 06:06 UTC by DesDesDes
Modified: 2011-09-22 06:06 UTC (History)
1 user (show)

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


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

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

TIA,

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

Note You need to log in before you can comment on or make changes to this bug.