lmkadrive.blogg.se

Teamviewer install host module not working
Teamviewer install host module not working





teamviewer install host module not working

Public class RestaurantController : ApiController Public static void Register(HttpConfiguration config)Ĭonfig.EnableCors() //add this**************************ĭefaults: new ģ.Add bellow code into namespace of the controller include get,post,delete,put or any http method Įx: using //add this****************************** After hours of frustration, I changed the web.config to add these handlers to system.webserver to get it to work: ġ.Add CORS nuget package Install-Package Ģ.in the WebApiConfig.cs file to Register method add bellow code : config.EnableCors() As of today, changing the %userprofile%\documents\iisexpress\config\nfig does NOT work any longer (this was working fine until now, not sure if this is due to a Windows update). Just a quick update for anyone else who might run into this issue. Replace your system.webserver tag with this below code

teamviewer install host module not working

This works in all browser.Īdd the following code inside the System.web tag It will act like charm.Īfter adding, your Web.Config will look like below

teamviewer install host module not working

For example if you're sending an HTTP delete request your method, by default, should be named Delete.Ĭhange Your Web.Config file as below. Īlso be aware that the default Web API convention is that your method name should be the same as the invoked HTTP verb. This can be done by commenting out the following lines from nfig. In addition to the above you should ensure WebDAV is not interfering with your requests. To use the PUT and DELETE verbs with the Web API you need to edit %userprofile%\documents\iisexpress\config\nfig and add the verbs to the ExtensionlessUrl handler as follows: In fact if you install the release candidate of VS 2012 and create a new WEB API project you'll find that the sample PUT and DELETE methods return 404 errors out of the box. You need to jump through some hoops to get the PUT and DELETE verbs working correctly with IIS8.







Teamviewer install host module not working