ServiceStack example on Mono -
working on getting servicestack.net helloworld example , going on mono. stuck @ error:
system.web.httpexception failed load httphandler type `servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack' description: http 500.error processing request. details: error processing request. exception stack trace: @ system.web.configuration.httphandleraction.loadtype (system.string type_name) [0x00053] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandleraction.cs:170 @ system.web.configuration.httphandleraction.gethandlerinstance () [0x00039] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandleraction.cs:296 @ system.web.configuration.httphandlerssection.locatehandler (system.string verb, system.string filepath, system.boolean& allowcache) [0x0004b] in /root/mono-2.11.4/mcs/class/system.web/system.web.configuration_2.0/httphandlerssection.cs:80 @ system.web.httpapplication.locatehandler (system.web.httprequest req, system.string verb, system.string url) [0x0003b] in /root/mono-2.11.4/mcs/class/system.web/system.web/httpapplication.cs:1603 @ system.web.httpapplication.gethandler (system.web.httpcontext context, system.string url, boolean ignorecontexthandler) [0x00028] in /root/mono-2.11.4/mcs/class/system.web/system.web/httpapplication.cs:1627 @ system.web.httpapplication.gethandler (system.web.httpcontext context, system.string url) [0x00000] in /root/mono-2.11.4/mcs/class/system.web/system.web/httpapplication.cs:1614 @ system.web.httpapplication+<pipeline>c__iterator3.movenext () [0x00866] in /root/mono-2.11.4/mcs/class/system.web/system.web/httpapplication.cs:1276
here's web.config -- think must wrong it:
<?xml version="1.0"?> <configuration> <!-- servicestack: required host at: /servicestack --> <location path="servicestack"> <system.web> <httphandlers> <add path="servicestack*" type="servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack" verb="*"/> </httphandlers> </system.web> <!-- required iis7 --> <system.webserver> <modules runallmanagedmodulesforallrequests="true"/> <validation validateintegratedmodeconfiguration="false" /> <handlers> <add path="servicestack*" name="servicestack.factory" type="servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack" verb="*" precondition="integratedmode" resourcetype="unspecified" allowpathinfo="true" /> </handlers> </system.webserver> </location> <!-- required mono --> <system.web> <customerrors mode="off"/> <httphandlers> <add path="servicestack*" type="servicestack.webhost.endpoints.servicestackhttphandlerfactory, servicestack" verb="*"/> </httphandlers> </system.web> <!-- required iis7 --> <system.webserver> <!-- servicestack: required --> <validation validateintegratedmodeconfiguration="false"/> </system.webserver> </configuration>
a configuration error in apache virtual host setup app. applications path not correctly specified in monoapplications directive in apache configuration file. correcting error resolved issue.
Comments
Post a Comment