Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : The resource you are looking for has been removed, had its name changed, or is temporarily unavailable

Offlate almost every website/api service/mobile service I deploy, When I hit any route apart from default one, I get the following error 'The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.'

For testing I created a simple ASP.Net WebAPI app and ASP.Net MVC Website and deployed to Azure. It gets deployed and default pages come up. For any link after that, I get that error.

Below is the mobile service.. created and uploaded without modification and configured facebook authentication on portal.azure.com https://wayweb.azurewebsites.net/.auth/login/facebook/callback

Copy of code is at https://1drv.ms/u/s!AkQ9G9AdaYOPgaZ-vXUdlSW9RuQzOQ

Any idea, what am I doing wrong?

like image 798
Pooran Avatar asked Jun 24 '16 18:06

Pooran


1 Answers

Add web.config file to your azure directory. Add the code below into it.

<configuration> <system.webServer>     <rewrite>       <rules>         <rule name="Main Rule" stopProcessing="true">                 <match url=".*" />                 <conditions logicalGrouping="MatchAll">                     <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />                     <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />                 </conditions>                 <action type="Rewrite" url="/" />             </rule>         </rules>     </rewrite> </system.webServer> </configuration> 
like image 90
Ifesinachi Bryan Avatar answered Sep 22 '22 06:09

Ifesinachi Bryan