Wednesday, June 22, 2016

Azure Web Site Deployment Slots

All you need to know about Deployment Slot
https://azure.microsoft.com/en-us/documentation/articles/web-sites-staged-publishing/

And in order to prevent the access of your staging site to only white listed ips use following URL Rewrite rule.

<rule name="Block unauthorized traffic to staging sites" stopProcessing="true">
<match url=".*" />
<conditions>
<!-- Enter your staging site host name here as the pattern-->
<add input="{HTTP_HOST}" pattern="^ruslany\-staging\." />
<!-- Enter your white listed IP addresses -->
<add input="{REMOTE_ADDR}" pattern="123\.123\.123\.1" negate="true"/>
<!-- Add the white listed IP addresses with a new condition as seen below -->
<!-- <add input="{REMOTE_ADDR}" pattern="123\.123\.123\.2" negate="true"/> -->
</conditions>
<action type="CustomResponse" statusCode="403" statusReason="Forbidden"
statusDescription="Site is not accessible" />
</rule>




Wednesday, June 1, 2016

Could not load type ‘System.ServiceModel.Activation.HttpModule

http://www.codeproject.com/Articles/613812/Solve-IIS-8-Error-Could-not-load-type-System-Servi

IE keep prompting for the password while browsing site on SSL on the same machine

It will keep prompting you from the browser if you browse any site hosted with live certificate and browsed on the same machine as iis server.