Enable authentication for IIS app in Powershell

I had the issue of dealing with locked sections and the accepted answer proposes opening up a GUI to solve it, which I am trying to avoid with PowerShell in first place. Short Answer Enable Windows Authentication and Disable Anonymous Authentication $iisSiteName = “Default Web Site” $iisAppName = “MyApp” Write-Host Disable anonymous authentication Set-WebConfigurationProperty -Filter … Read more

Angular 2 Hosted on IIS: HTTP Error 404

We have to make IIS fall back to index.html by adding a rewrite rule. Step 1: Install IIS URL Rewrite Module Step 2: Add a rewrite rule to web.config <?xml version=”1.0″ encoding=”utf-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”AngularJS Routes” stopProcessing=”true”> <match url=”.*” /> <conditions logicalGrouping=”MatchAll”> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> … Read more

Relationship between Webapi, Webhost and Owin

Your understanding is generally correct, but the role of OWIN seems misunderstood. A more complete timeline would be: OWIN Standard developed to describe generic .NET web interface, a la WSGI/Rake/Connect (first commit in 2010). ASP.NET WebAPI is developed host-independent, but released with https://www.nuget.org/packages/Microsoft.AspNet.WebApi.WebHost/. Katana Project implements several OWIN hosts: https://www.nuget.org/packages/Microsoft.Owin.SelfHost/ https://www.nuget.org/packages/Microsoft.Owin.Host.HttpListener/ https://www.nuget.org/packages/Microsoft.Owin.Host.IIS/ https://www.nuget.org/packages/Microsoft.Owin.Host.SystemWeb/ ASP.NET WebAPI … Read more

What does the “time” field in the log indicate, exactly?

On this page: http://blogs.msdn.com/b/mike/archive/2008/11/13/time-vs-time-taken-fields-in-iis-logging.aspx it says: The Time field is quite straightforward: it specifies when the log entry was created. Note that this is not always the same as when the log entry actually gets written to the log, as buffering can occur for some request/response scenarios. Therefore, you are correct in thinking that the … Read more

How can I use existingResponse=”Auto” successfully?

However, the documentation says “SetStatus” flag must be set, but I have no idea how to do such a thing It’s actually talking about the fTrySkipCustomErrors flag/argument to the IHttpResponse::SetStatus method in the IIS C++ SDK (see note I added to bottom of documentation here). But in ASP.NET the flag is exposed as Response.TrySkipIisCustomErrors. So … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)