Is Enabling Double Escaping Dangerous?

Edit: Added emphasis to relevant sections. Basically: IIS is being excessively paranoid. You can safely disable this check if you’re not doing anything particularly unwise with the uri decoded data (such as generating local filesystem URI’s via string concatenation). To disable the check do the following (from here): (see my comment below for what double … Read more

IIS7: HTTP->HTTPS Cleanly

I think the cleanest way is as described here on IIS-aid.com. It’s web.config only and so if you change server you don’t have to remember all the steps you went through with the 403.4 custom error page or other special permissions, it just works. <configuration> <system.webServer> <rewrite> <rules> <rule name=”HTTP to HTTPS redirect” stopProcessing=”true”> <match … Read more

How to configure static content cache per folder and extension in IIS7?

You can set specific cache-headers for a whole folder in either your root web.config: <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <!– Note the use of the ‘location’ tag to specify which folder this applies to–> <location path=”images”> <system.webServer> <staticContent> <clientCache cacheControlMode=”UseMaxAge” cacheControlMaxAge=”00:00:15″ /> </staticContent> </system.webServer> </location> </configuration> Or you can specify these in a web.config file in … Read more

“405 method not allowed” in IIS7.5 for “PUT” method

Often this error is caused by the WebDAV module that try to handle this kind of requests. An easy solution is to remove it from modules and from handlers of the system.webServer section just inside your web.config file. Here a configuration example: <system.webServer> <modules> <remove name=”WebDAVModule” /> </modules> <handlers> <remove name=”WebDAV” /> </handlers> </system.webServer>

How to disable the application pool idle time-out in IIS7?

Yes, setting the idle timeout value to zero will disable idle timeouts. Oddly this isn’t documented in the MS docs but my evidence for this arises from: IIS Settings Schema If you have a look at the IIS settings schema in: C:\Windows\System32\inetsrv\config\schema\IIS_schema.xml The schema definition for idleTimeout under <sectionSchema name=”system.applicationHost/applicationPools”> it looks like: <attribute name=”idleTimeout” … Read more

Turn off Visual Studio Attach security warning when debugging IIS

Also found in the article mentioned by Tzury, but to sum up the answers in this thread: Make sure Visual Studio is not running when changing the registry key or it will be overwritten on exit with the old value Visual Studio 2022: Follow these instructions, then reboot. Visual Studio 2019: Follow these instructions, then … Read more

Avoid web.config inheritance in child web application using inheritInChildApplications

As the commenters for the previous answer mentioned, you cannot simply add the line… <location path=”.” inheritInChildApplications=”false”> …just below <configuration>. Instead, you need to wrap the individual web.config sections for which you want to disable inheritance. For example: <!– disable inheritance for the connectionStrings section –> <location path=”.” inheritInChildApplications=”false”> <connectionStrings> </connectionStrings> </location> <!– leave inheritance … Read more

How to increase request timeout in IIS?

Add this to your Web Config <system.web> <httpRuntime executionTimeout=”180″ /> </system.web> https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx Optional TimeSpan attribute. Specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET. This time-out applies only if the debug attribute in the compilation element is False. To help to prevent shutting down … Read more

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