iis-8

IIS8 Win8 and runAllManagedModulesForAllRequests=“true”

别来无恙 提交于 2019-12-04 09:50:13
问题 I am attempting to run an application in IIS8 that has the following in the config: <modules runAllManagedModulesForAllRequests="true" /> IIS8 is giving me an error that says... This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false". I'm guessing by the error and a quick SO search

Visual Studio 2013 gives “Cannot add duplicate collection entry of type ‘mimeMap’”

倾然丶 夕夏残阳落幕 提交于 2019-12-04 09:04:14
问题 I have a site that was built using Visual Studio 2010. When I upgraded to Visual Studio 2013, on some pages I would get an error that said: Cannot add duplicate collection entry of type 'mimeMap' with unique key attribute 'fileExtension' set to '.mp4'. After some searching, I found a helpful post on a blog, but since the issue was a little different and I didn't find it on stackoverflow, I thought I'd post the question and answer here. 回答1: The issue was that when I switched to Visual Studio

Azure 4 min timeout in web app

和自甴很熟 提交于 2019-12-04 07:39:37
My project is an ASP.NET MVC 4 project. While in localhost it works fine when I host it in Azure I get a timeout in ajax calls that take more than 4 minutes. I am sure that the problem is with azure because it doesn't matter what I'm doing in the server. even just set Thread.sleep(300000) I get a timeout. I read in: https://azure.microsoft.com/en-us/blog/new-configurable-idle-timeout-for-azure-load-balancer/ That a common practice to keep the connection active for a longer period is to use TCP Keep-alive and there is no other option for web apps. So I guess that what I need is help to keep

Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed

本小妞迷上赌 提交于 2019-12-04 04:08:27
I am creating application which stop the IIS Default Web Site. I used a PowerShell script to stop website because that script is executed form my website. This is my script: Import-Module C:\Windows\System32\WindowsPowerShell\v1.0\Modules\WebAdministration Stop-Website 'Default Web Site' my copy code Start-Website 'Default Web Site' And this is my C# code: PowerShell _PowerShell = PowerShell.Create(); Runspace rs = RunspaceFactory.CreateRunspace(); rs.Open(); _PowerShell.Runspace = rs; _PowerShell.AddScript(@"Set-ExecutionPolicy RemoteSigned -scope LocalMachine").Invoke(); _PowerShell

Programmatically add binding on IIS 8 with SNI option

我与影子孤独终老i 提交于 2019-12-04 03:56:51
问题 I'm trying to create bindings for IIS 8 that have the flag SNI checked (Server Name Indication) using Microsoft.Web.Administration library (.NET Framework). This is necessary to me because I want to get multiple SSL bindings for the same website under IIS, all using just one IP address. This is one of the main new features of IIS 8. I've been looking into the Binding class and I can't find any flag or option to indicate it. Is it possible with current Microsoft.Web.Administration v 7.0.0.0?

Assign IIS SSL Certificate to Binding with Host Header using PowerShell

邮差的信 提交于 2019-12-04 03:54:26
I'm trying to assign a certificate to a HTTPS binding. Unfortunately, I get this error from PowerShell: new-item : Cannot create a file when that file already exists At line:3 char:56 + get-item -Path "cert:\localmachine\my\$cert" | new-item -path IIS:\SslBi ... + ~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommand My PowerShell which I execute is: New-WebBinding -name $Name -Protocol https -HostHeader "$Name.domain.com" -Port 443 -SslFlags 1 $cert =

HTTP Error 500.19 in IIS 8 when system.web configuration is present in apphost config

依然范特西╮ 提交于 2019-12-04 03:01:44
We have a utility that automatically sets up ASP.NET web applications upon install on customer servers. This utility traditionally adds a number of configurations to the Location path for the new app in applicationHost.config. We do this programmatically using the Microsoft.Web.Administration configuration classes. This works fine in IIS 7.0 and IIS 7.5, but when we try to install the identical configuration in IIS 8 (Server 2012), we start getting 500.19 server errors for everything hosted on the server because of a supposedly malformed XML element (HRESULT 0x8007000d). I systematically went

NetworkService under IIS has empty AppData path

时光毁灭记忆、已成空白 提交于 2019-12-03 16:20:45
Using IIS 8 on Windows 8, I've set up an application pool which runs with an identity of Network Service . In the code for a page, I make calls to: Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) Both calls return null. I've tried combinations <identity impersonate="true|false"/> as well as setting the Load User Profile setting to true|false in the application pool setting, but I always get a null result. I would expect to get one of: C:\Windows\ServiceProfiles\NetworkService\AppData\Local C:\Windows

RequestAcquireState Hanging on .NET 4.5.1 IIS8

家住魔仙堡 提交于 2019-12-03 14:45:27
Under heavy load or when using jQuery's ajax abort function, we see requests build up in IIS to the point where no-one can connect and the entire site hangs, forcing a recycle. A similar post from 3 years ago had a similar issue with .NET 4.5 and IIS 7.5 but Microsoft have stated this was fixed in 4.5.1 and released a patch for 4.5. This problem on Windows Server 2012R2 using IIS 8 when trying to use State Server and even more so when using State Server on development machines running Windows 10 and IIS10. The patch cannot be installed on any of these machines as the installer is blocked by

Infinite redirect loop for Basic or Windows authentication?

依然范特西╮ 提交于 2019-12-03 05:57:29
问题 I am working on a new ASP.NET application. On IIS8, if I disable Anonymous access and enable Basic or Windows authentication, it goes into an infinite redirect loop and lands at the following URL after the browser breaks the loop: https://XXXXXX.com/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FReturnUrl%3D%252FAccount%252FLogin%253FReturnUrl%253D%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAccount%252525252FLogin