Last post Mar 09, 2016 05:00 AM by Yohann Lu
Mar 08, 2016 06:56 PM|muazmicro|LINK
i am using web api for httpget method in my project. i run my application in my pc and a test server. everything is working fine there. but when i deploy it in fresh pc having windows server 2008 r2 and tried to access the page that is calling a httpget
method, it throws an error that the resource not found/removed. and specifically the method (with name and parameter) not found.
please tell me what can be the reason of this. i have iis fully installed, have given rights to the web folder where the web application is deployed. [same setting as i did in test server and the web site was working]. one thing is the database is present
in a separate server but web page is working with this scenario, only a web page having web api method is giving error.
help me please
Mar 09, 2016 05:00 AM|Yohann Lu|LINK
From your description, I think this is an IIS error, not an ASP.NET error. I suggest you can try the following method to solve it.
The runAllManagedModulesForAllRequests attribute flag on the modules key in web.config and set it to true.
1.In the Web.Config
<modules runAllManagedModulesForAllRequests="true" />
2.Make sure the following are available in the bin folder on the server where the Web API is deployed
More information about ASP.NET Routing not working on IIS 7.0 for your reference: