ASP.NET Core deployment to IIS error: Development environment should not be enabled in deployed applications

First, check the value of ASPNETCORE_ENVIRONMENT variable. You will have to set this environment variable to “Production” (or other environment than Development) Otherwise, you can update web.config like this- <configuration> <!– Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380 –> <system.webServer> <handlers> <add name=”aspNetCore” path=”*” verb=”*” modules=”AspNetCoreModule” resourceType=”Unspecified” /> </handlers> <aspNetCore processPath=”.\Application.exe” arguments=”” … Read more

How do I enable upload of large files in classic ASP on IIS 7?

The maxAllowedContentLength controls how much data is allowed to be sent in a response. However you want to control how much can be accepted in a request. This is handled by the maxRequestEntityAllowed attribute of the limits element in the asp section of the config file. An example might look like:- <system.webServer> <asp> <cache diskTemplateCacheDirectory=”%SystemDrive%\inetpub\temp\ASP … Read more

Using makecert for Development SSL

Here are my scripts for doing this: Create Certificate Authority Create a self-signed certificate (-r), with an exportable private key (-pe), using SHA1 (-r), for signing (-sky signature). The private key is written to a file (-sv). makecert -r -pe -n “CN=My Root Authority” -ss CA -sr CurrentUser ^ -a sha1 -sky signature -cy authority … 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>