Getting 404.0 error for ASP.NET MVC 3 app on IIS 7.0 / Windows Server 2008

You actually just reminded me that I needed to fix this issue in an enviroment here. If your situation is the same as mine then it’s a simple fix. Just add the following to your web config: <system.webServer> <modules runAllManagedModulesForAllRequests=”true” /> Edit: To provide further explanation on the issue at hand. In my case what … Read more

How to get current user who’s accessing an ASP.NET application?

The quick answer is User = System.Web.HttpContext.Current.User Ensure your web.config has the following authentication element. <configuration> <system.web> <authentication mode=”Windows” /> <authorization> <deny users=”?”/> </authorization> </system.web> </configuration> Further Reading: Recipe: Enabling Windows Authentication within an Intranet ASP.NET Web application

Accessing Windows Credential Manager from PowerShell

In powershell5 type: Install-Module CredentialManager -force Then New-StoredCredential -Target $url -Username $ENV:Username -Pass …. and later Get-StoredCredential -Target …. Source code for the module is https://github.com/davotronic5000/PowerShell_Credential_Manager == EDIT 2023 == Original is archived, install newer fork with: Install-Module -Name TUN.CredentialManager Check out Github repository for more details.

Turn IIS7 HTTP Error Handling Off?

After some more extensive searching, I found the answer here: http://blogs.msdn.com/webdevelopertips/archive/2009/08/24/tip-93-did-you-know-php-and-custom-error-pages-configuration.aspx The solution is to manually edit your web.config file with this custom “httpErrors” entry: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <httpErrors existingResponse=”PassThrough” /> </system.webServer> </configuration> However, due to IIS 7.0 “lockdown” feature you might get a “This configuration section cannot be used at this path. … Read more

How to stop/start IIS 7 application through command line?

http://www.windowsnetworking.com/articles_tutorials/Configuring-IIS-7-command-line-Appcmdexe-Part1.html Put this into a file with .bat extension. @echo off appcmd start sites “site1” appcmd stop sites “site2” Update Just ensure that appcmd is available anywhere by adding %windir%\system32\inetsrv\ to the PATH environment variable of your system. Alternatively, you can use the full path to appcmd.exe in the batch file.

Is there any way for a win2k8 scheduled task to have normal priority IO?

Create the task Right click on the task and “export” it Edit the task.xml file that you just exported You will find a line similar to <Priority>7</Priority> Change the value to a normal priority (between 4-6). A table of the potential values: TaskSettings.Priority property A value of 4 will have the same I/O and memory … Read more

tech