how do I know what version of IIS7 URL Rewrite module is installed

The binary for Url Rewrite is located at: %SystemRoot%\system32\inetsrv\rewrite.dll Url Rewrite 1.1 has a File Version of 7.1.490.43. Url Rewrite 2.0 has a File Version of 7.1.761.0 or 7.1.871.0 (there may be others but these are the two different versions I know of). If you don’t have console access to verify the version number try … Read more

Separate application pools for ASP.net applications in IIS

Reposted from ServerFault, “Why add additional application pools in IIS?” AppPools can run as different identities, so you can restrict permissions this way. You can assign a different identity to each app pool so that when you run task manager, you know which w3wp.exe is which. You can recycle/restart one app pool without affecting the … Read more

Powershell New-WebApplication

I had the exact same problem because I was calling the wrong version of PowerShell from my program. I’m not sure about this but I think when you have a x86 program it calls the x86 version of PowerShell, which fails. To specifically use the 32-bit version, call this one from your program: C:\Windows\SysWoW64\WindowsPowerShell\v1.0\powershell.exe To … Read more

Cache-control: no-store, must-revalidate not sent to client browser in IIS7 + ASP.NET MVC

Through trial and error, I have found that one way to set the headers correctly for IIS7 in ASP.NET MVC is: Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.AppendCacheExtension(“no-store, must-revalidate”); Response.AppendHeader(“Pragma”, “no-cache”); Response.AppendHeader(“Expires”, “0”); The first line sets Cache-control to no-cache, and the second line adds the other attributes no-store, must-revalidate. This may not be the only way, but does provide … Read more

Manually clear ASP.NET server cache for a single application/web site?

Use the following to remove all objects from the cache IDictionaryEnumerator enumerator = HttpContext.Current.Cache.GetEnumerator(); while (enumerator.MoveNext()) { HttpContext.Current.Cache.Remove((string)enumerator.Key); } Also, it is a bit of a sledgehammer option but you can restart the entire application as follows: System.Web.HttpRuntime.UnloadAppDomain();

iis windows authentication is missing at windows 10 (ASP.NET Visual Studio 2015)

Windows 10 Home edition doesn’t include Windows Authentication (and a bunch of other IIS security features). However, the package with these features is sitting right there in your OS and you can manually install it. All you need to do is open an elevated command prompt and run: dism /online /norestart /add-package:%SystemRoot%\servicing\Packages\Microsoft-Windows-IIS-WebServer-AddOn-2-Package~31bf3856ad364e35~amd64~~10.0.16299.15.mum Filename above may … Read more

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