Azure ASP.NET location element in web.config

Does web.config run for an ASP.NET project differently when run in an Azure emulator?

By default, azure allows you to serve the My Images folder with a previous login, even with the following in my web.config file:

<authentication mode="Forms">
  <forms loginUrl="~/login.aspx"
         name=".ASPXFORMSAUTH"
         cookieless="UseCookies"
         timeout="30"
         path="/"
         slidingExpiration="true"/>
</authentication>
<authorization>
  <allow users="?"/>    
</authorization>

There is no <location tag in my web.config. When I run an ASP project alone, nothing is served in IIS, but when run under an Azure emulator, they are still served.

+3
source share
2 answers

Have you forced to refresh your browser ( ctrl+ F5) or try different browsers? Browsers like to cache images so that they still cannot be sent to the emulator - they are most likely cached versions.

, Fiddler, , .

0

. , -.

Azure .

Windows Azure . , :

<authorization>
  <deny users="?"/>    
</authorization>

, .

,

Ming Xu.

0

All Articles