Monday, August 25, 2014

How to fix File or directory not found Error MVC Web Api Deployment

I get very strange error when i deployed a MCV web Api application to the remote host server.

the app is working fine in my local environment, However when i deploy it to the remote host sever

i keep getting the following error.

"

404 - File or directory not found.

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

"



the fix is very easy and quick, I just add the following configuration to the web.config file

 <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
  </system.webServer>

No comments:

Post a Comment