c# - Deploy REST service without access to IIS -


i have developed .net rest web service in c#. while have plenty of c# experience, unfortunately not have understanding in deploying such service in web hosting environment.

due environment, not have access iis.

the advice have been provided support services of hosting provider follows:

  1. create subdomain of main domain achieve dedicated application pool (this requirement of host provider)
  2. create bin folder hold compiled libraries of source code
  3. add following web.config file:
 <system.web>     <httphandlers>         <add type="reportrestwebservice.service, reportrestwebservice" verb="*" path="report" />     </httphandlers> </system.web> <system.webserver>     <handlers>         <add name="report" path="report" verb="*" modules="isapimodule" scriptprocessor="c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll" resourcetype="file" requireaccess="script" precondition="classicmode,runtimeversionv2.0,bitness32" />     </handlers>     <directorybrowse enabled="false" /> </system.webserver> 

the above have effect of creating handler mapping report resource on http verbs , forwarding http traffic on resource reportrestwebservice.dll handling.

the point unclear on whether above satisfactory , how test whether advice given correct. know have site running locally have access iis have control on configuration.

hopefully can help.

thanks

if using wcf rest,then can consider hosting as windows service or self hosted service. windows service http://blogs.msdn.com/b/juveriak/archive/2009/03/15/rest-endpoint-hosted-in-a-wcf-windows-service.aspx

self hosted service http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/self-hosted-wcf-rest-service-or-hosting-wcf-rest-service-in-console-application/


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -