iis-8

Remove sensitive Headers from Azure PaaS hosted Websites

和自甴很熟 提交于 2019-12-12 03:59:13
问题 If you follow this article Azure Blog, you can remove the Server, X-Powered-By and MVC version which is great. You can also achieve similar with a custom IIS module with the following method: private void OnPreSendRequestHeaders(object sender, EventArgs e) { HttpContext.Current?.Response.Headers.Remove("Server"); HttpContext.Current?.Response.Headers.Remove("X-AspNet-Version"); HttpContext.Current?.Response.Headers.Remove("X-AspNetMvc-Version"); HttpContext.Current?.Response.Headers.Remove("X

Cookie only sets in IE and not firefox/chrome

橙三吉。 提交于 2019-12-12 03:46:03
问题 I have an ASP.NET 2.0 web application. Cookies worked fine on all browsers on windows server 2008 for several years. We upgraded to a new server with windows server 2012(IIS8), the first day during testing cookies were not being set in firefox so we could not login(not sure about chrome). Next day, with no changes, it seemed to all work OK. Fast forward another month or so, firefox and chrome will not set the cookies (looking in chrome dev tools and firebug) but its still working in IE and I

How generate a pdf file with django-wkhtmltopdf on IIS 7.5 - 8

断了今生、忘了曾经 提交于 2019-12-12 02:49:28
问题 I use django-wkhtmltopdf to generate pdfs in my webapp, Works fine using the django integrate server, but when I use IIS 7.5 or 8 gives me this error: WindowsError [Error 6] The handle is invalid Environment: Request Method: GET Request URL: http://127.0.0.1:8006/blabla/pdf/10/ Django Version: 1.8.5 Python Version: 2.7.10 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib

Debugging Classic asp Visual Studio 2008 IIS 8

泄露秘密 提交于 2019-12-12 02:46:49
问题 Things I've done: On both the default website and my virtual folder in IIS Manager -Enabled Parent Paths -Set Enable Server Side Debugging to be True Set Breakpoints in my code by 1) F9 2) Using the Stop command 3) Purposefully put mispelled commands in my VBScript to force the debugger to attach I've then tried starting the website without debugging and attaching to W3wp.exe/ DLLHost.exe Have also tried running the website in visual studio in debug mode Is there something I'm missing or

Creating virtual directory for asp.net web project

泄露秘密 提交于 2019-12-12 02:46:33
问题 I have installed windows 8 on my system and I am using visual studio 2012 and IIS 8 Express. when I try to create a virtual directory for web project the message box shows the error message like "Unable to create virtual Directory. To access Websites on the local IIS Web server, You must run visual studio under an Administrator account" Please help me how to run visual studio under administrator Account, Thank you. 回答1: Right click on the shortcut then "Run as administrator" or create another

MVC 5 application on IIS 8 in Windows Server 2012 (virtual machine) is very slow (not only on initial load)

∥☆過路亽.° 提交于 2019-12-12 02:39:22
问题 The goal is to launch an MVC 5 web app on an IIS 8 within a Windows Server 2012 (Standard edition for evaluation from Microsoft) in a virtual machine (VMware Workstation 12 Player, free version) in order to test the whole system for the release. I managed to run the application, but the problem is, that it´s extremely slow. E.g. the index.html is a static HTML page and needs more than 60 seconds to load. But why? In Visual Studio and IIS Express still everything works perfectly. Futher

Ms deploy from the command line

ⅰ亾dé卋堺 提交于 2019-12-12 02:09:09
问题 Ok built the code and pulled the command details from VS during a verbose build via the publish option on the context menu having cleaned it up, extracted the command I took the command to my build server which just happens to be the same box as my test web box at the moment and changed the paths. MSBuild from Team services is running with the args "/p:DeployOnBuild=true;PublishProfile=Test;DeployTarget=package" so it spits out a package for each web app. This being slightly different to how

IIS rewrite with unusual ~ character in the URL

天涯浪子 提交于 2019-12-11 23:42:13
问题 I have a URL in the format: https://www.example.com/aaa/bbb/product/~productId=abc123 Which I would like to redirect to: https://www.example.com/product/abc123 I have tried a couple of variations on this and just cannot get this to pick it up (despite testing this in the IIS URL rewrite regex tester). <rule name="Custom rule 12" stopProcessing="true"> <match url="aaa/bbb/product/(.*)" /> <conditions> <add input="{HTTP_URL}" pattern="~productId=(.*)$" /> </conditions> <action type="Redirect"

asp.net core deployment persistent ErrorCode = '0x80004005 : 8000808c. on win 2012r2

廉价感情. 提交于 2019-12-11 17:34:03
问题 I am having a persistent problem with ErrorCode = '0x80004005 : 8000808c. on win 2012r2 Deploying an updated app that uses: <PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.8" /> I have installed dotnet-runtime-2.0.7-win-x64.exe AspNetCore.2.0.7.RuntimePackageStore_x64.exe DotNetCore.2.0.7-WindowsHosting.exe and rebooted the machine but the problem persists. I've deployed the same files to IIS (not IIS EXpress) on my windows 10 dev box and it works fine there. Any ideas how

Change maximum allowed configuration file size [IIS Express 10/Windows 10]

血红的双手。 提交于 2019-12-11 13:52:58
问题 After adding multiple entries to a redirect map in a linked config file, I get the following error on IIS Express 10 on Windows 10 (64 bit, but IIS Express is running 32-bit): " Can not read configuration file because it exceed the maximum file size " I've tried adding a Configuration key to the registry, setting a MaxWebConfigFileSizeInKB value of 512 under HKLM/Software/Microsoft/IISExpress/10.0/mimic/Configuration : Any idea on how to enable configuration files larger than 250 KB for IIS