Allow loading of JSON files in Visual Studio Express 2013 for Web

After some more googling, and experimenting I found out, that you have to define IIS settings in the Web.config. After adding the following configuration: <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> </staticContent> </system.webServer> it works like a charm. Full setup file example: <?xml version=”1.0″?> <configuration> <system.web> <compilation debug=”true” targetFramework=”4.0″/> </system.web> <system.webServer> <staticContent> <mimeMap fileExtension=”.json” mimeType=”application/json” /> … Read more

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

Recreate the default website in IIS

Other answers are basically right, thanks to them I was able to restore my default web site, they’re just missing some more or less important details. This was the complete process to restore the Default Web Site in my case (IIS 7 on Windows 7 64bit): open IIS Manager right click Sites node under your … Read more

I have already enabled classic asp support on IIS for windows 7, and configured IIS web for classic asp,Yet .asp page is not being displayed? [closed]

It possible that you haven’t got Classic ASP support installed in IIS. To do this in Windows 7 follow the steps below; How to enable Classic ASP support on IIS for Windows 7 Installing Classic ASP support Goto Control Panel -> Programs and Features Select from the left navigation bar From the Windows Features dialog … Read more

How do you call msdeploy from powershell when the parameters have spaces?

Using the technique from Keith’s answer to How to run exe in powershell with parameters with spaces and quotes question you linked to, running echoargs -verb:dump -source:appHostConfig=$sitename -verbose gave me this output: Arg 0 is <-verb:dump> Arg 1 is <-source:appHostConfig=default> Arg 2 is <web> Arg 3 is <site> Arg 4 is <-verbose> This would explain … Read more

Add custom header based on file type

You can use the IIS UrlRewrite module and add a custom outbound rule to configure the custom header. Here is a sample rule you may want to use: <system.webServer> <rewrite> <outboundRules> <rule name=”Set custom HTTP response header”> <match serverVariable=”RESPONSE_X_Robots_Tag” pattern=”.*” /> <conditions> <add input=”{REQUEST_URI}” pattern=”\.xml\.gz$” /> </conditions> <action type=”Rewrite” value=”The value you need for this … Read more

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