[Mono-aspnet-list] NullReferenceException running svc web service

Andrus kobruleht2 at hot.ee
Thu Feb 24 14:40:03 EST 2011


I tried to run svc web service by using 
https://mysite.com/Mydir/Myservice.svc in 2.10 but got exception below. How 
to fix or find reason of this exception ?

Andrus.

Object reference not set to an instance of an object
Description: HTTP 500. Error processing request.

Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an 
object
  at System.ServiceModel.Channels.CachingCompiler.Compile (System.String 
language, System.String key, System.String source, System.String filename, 
System.Collections.ArrayList assemblies) [0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.CachingCompiler.CompileAndGetType 
(System.ServiceModel.Channels.ServiceHostParser parser, System.String key, 
System.Web.Caching.CacheItemRemovedCallback removed_callback) [0x00000] in 
<filename unknown>:0
  at System.ServiceModel.Channels.SvcHttpHandlerFactory.LoadTypeFromSvc 
(System.String path, System.String url, System.Web.HttpContext context) 
[0x00000] in <filename unknown>:0
  at System.ServiceModel.Channels.SvcHttpHandlerFactory.GetHandler 
(System.Web.HttpContext context, System.String requestType, System.String 
url, System.String pathTranslated) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, 
System.String url, Boolean ignoreContextHandler) [0x00000] in <filename 
unknown>:0
  at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context, 
System.String url) [0x00000] in <filename unknown>:0
  at System.Web.HttpApplication+<Pipeline>c__Iterator6.MoveNext () [0x00000] 
in <filename unknown>:0

--------------------------------------------------------------------------------
Version information: Mono Runtime Version: 2.10 (tarball Tue Feb 15 04:38:31 
UTC 2011); ASP.NET Version: 2.0.50727.1433 



More information about the Mono-aspnet-list mailing list