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

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

How can I create a self-signed cert for localhost?

Since this question is tagged with IIS and I can’t find a good answer on how to get a trusted certificate I will give my 2 cents about it: First use the command from @AuriRahimzadeh in PowerShell as administrator: New-SelfSignedCertificate -DnsName “localhost” -CertStoreLocation “cert:\LocalMachine\My” This is good but the certificate is not trusted and will … Read more

HTTP Error 403.14 – Forbidden – The Web server is configured to not list the contents of this directory

keep this into your web config file then rename the add value=”yourwebformname.aspx” <system.webServer> <defaultDocument> <files> <add value=”insertion.aspx” /> </files> </defaultDocument> <directoryBrowse enabled=”false” /> </system.webServer> else <system.webServer> <directoryBrowse enabled=”true” /> </system.webServer>

Publish to IIS, setting Environment Variable

This answer was originally written for ASP.NET Core RC1. In RC2 ASP.NET Core moved from generic httpPlafrom handler to aspnetCore specific one. Note that step 3 depends on what version of ASP.NET Core you are using. Turns out environment variables for ASP.NET Core projects can be set without having to set environment variables for user … Read more

HTTP Error 503. The service is unavailable. App pool stops on accessing website

One possible reason this might happen is that the Application Pool in IIS is configured to run under some custom account and this account either doesn’t exist or a wrong password has been provided, or the password has been changed. Look at the advanced properties of the Application Pool in IIS for which account it … Read more

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