问题标签 [iis-8]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
1791 浏览

asp.net-mvc-4 - 在 IIS8 下部署 MVC 4 应用程序:HTTP 错误 404.0 - 未找到

我正在使用 IIS8 运行 Windows Server 2012。

我只是尝试使用 Visual Studio 2012 添加新创建的 MVC4 应用程序作为 IIS 8 中的虚拟目录,然后将其转换为应用程序。首先我得到这个错误:

我搜索了解决方案,发现我必须授予对 IIS_IUSRS 应用程序文件夹的读取权限

我做的 !然后我现在有这个错误:

怎么了 ??

谢谢 !

0 投票
1 回答
5585 浏览

c# - 使用命令行参数安装 IIS8

通过使用以下参数从 C# 调用 pkgmgr.exe,我能够在应用程序开发部分启用 IIS 7 功能 ASP.NET 和 .NET 可扩展性。

/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;...... /norestart /quiet

对于 IIS8,它不再工作,因为应用程序开发功能下没有 ASP.NET 选项。取而代之的是 ASP.NET 3.5 和 ASP.NET 4.5(.NET Extensibility 3.5 和 .NET Extensibility 4.5)。

如何使用 pkgmgr.exe 启用它们?

0 投票
1 回答
1646 浏览

iis - IIS 8 中的 Windows 身份验证

我正在尝试在我的新 Windows 8 开发机器上设置 RavenDB。我已在该特定站点上启用 Windows 身份验证并禁用匿名身份验证。我以本地用户帐户登录,该帐户也是管理员的成员。这通常在我以前的 Windows 7 开发机器上运行良好。在这个我不断被要求登录。我尝试使用我登录的帐户,但我一直被要求登录。我只是想使用 RavenDB Studio。

我已经在 Chrome 和 IE 上尝试过这个 - 可能缺少一些明显/基本的东西,但想不出什么。请问有什么想法吗?谢谢。

0 投票
1 回答
2055 浏览

wif - 替换独立 FedUtil 以更新 system.IdentityModel

我正在寻找 WIF SDK 中 Microsoft Federation Utility (FedUtil) 的替代品,它允许我自动更新(尤其是)web.config 中的trustedIssuers 列表。旧的 FedUtil 可以使用 /m /u 作为参数。

现在该工具包含在 VisualStudio 和 MS 声明中,FedUtil 没有独立替代品(请参阅:http: //msdn.microsoft.com/en-us/library/jj157089.aspx)。

我的问题是:我现在是否必须手动进行更新,或者是否有一些命令或工具可以自动更新 System.IdentityModel 受信任的颁发者?

0 投票
1 回答
6088 浏览

iis - 启用 IIS 8.0 (windows 8 pro) 动态压缩

我在 IIS 8(Windows 8 Pro)下遇到压缩问题。

它在 IIS 7.5 下的 Windows 7 中运行良好,但在 Windows 8 Pro 中它不起作用。

在深入研究之后,我比较了 applicationHost 配置文件(Windows 7 和 Windows 8),我发现了一些有趣的东西......

  1. 在 Windows 7 中,我在 globalModules 下的 applicationHost 中有标签<add name="DynamicCompressionModule" image="%windir%\System32\inetsrv\compdyn.dll" />,我在 System32\inetsrv 中找到了文件 compdyn.dll

  2. 在 Windows 8 中,我在 globalModules 下的 applicationHost 文件中没有该行,并且在 System32\inetsrv 中缺少 compdyn.dll

所以实际上我确定这个问题,任何人都知道为什么 Windows 8 Pro (IIS 8) 没有附带那个 dll 吗?

有什么我必须做的吗?

非常感谢,希望有人能帮助我。

固定的

简单的解决方案:必须为 IIS 安装动态内容模块,仅此而已。

0 投票
2 回答
949 浏览

web-services - 通过 SSL 域名调用 Web 服务

嘿,我似乎在通过 SSL 调用我的 Web 服务时遇到了问题。从非 SSL URL 调用它就可以了。

当尝试连接到 VB.net 中的 Web 服务时,它给了我这个:

ws

所以我继续选择第一个选项(10/7/2012 到 10/7/2013。

但是,当我这样做时,我在网络浏览器中收到此错误:

在此处输入图像描述

访问我的 SSL 网站 ( https://www.xxxxxxx.com ) 会询问相同的问题(选择证书),然后显示与 VB.net 中相同的浏览器错误。

我需要在 web.config 文件中包含什么内容吗?

我创建的 IIS 证书如下所示:

在此处输入图像描述

访问我的正常网站 ( http://www.xxxxxxx.com ) 就可以了。

为了让它在 SSL 上工作,我忘了做什么?

0 投票
1 回答
435 浏览

asp.net-mvc - 尝试将 JSON.stringify 对象发布到 aspnet mvc 控制器 - 错误请求

我正在尝试发布存储在隐藏字段中的 JS 对象:

在本地它工作正常,但在生产服务器(带有 IIS 8 的 Windows 2012 服务器)中,它返回错误请求错误。使用 Firebug,我检查了我的隐藏值是这样的:

这个问题基本上是%性格。我怎样才能让我的服务器接受这个字符?

0 投票
1 回答
4802 浏览

asp.net-mvc-3 - IIS 8 服务器错误 500 日志

所以我们决定尝试新的 Windows Server 8 / IIS 8。在 VS-Dev 服务器上运行我只需在 Global.asx 的 Application_Error() 中捕获所有服务器错误,并使用 log4net 记录这些错误。

现在我有两个问题,首先是我们的开发服务器上的 Application_Error() 似乎没有捕获异常(因为服务器向浏览器返回状态码 500)。其次是我的 log4net 没有从 Web 应用程序中记录任何内容。

它是一个使用 razor 视图的 mvc 3.0 asp.net 应用程序。我的本地机器正在运行 Windows 7 / VSUltimate 2012。

信任级别设置为 Full 并且 IIS_IUSRS 用户组对我尝试写入日志文件的文件夹具有完全访问权限。

我真正想要的只是在某处记录异常,所以如果在 IIS 8 中有内置的方法,请告诉我。(也许重定向到一些将异常作为参数的错误控制器?)

干杯托马斯

0 投票
2 回答
1073 浏览

visual-studio-2010 - Visual Studio 2012 - Web.config 在 IIS Express 8 中无效

为了支持在 IIS 7 上安装,我在 web.config 中添加了以下内容:

这在 IIS7(和 express)中运行良好,因为默认情况下不包含 .mp4。现在我正在尝试使用 IIS8 Express 在 VS2012 下运行解决方案,没有提供静态内容,而是出现一个错误,即<staticContent>.mp4 已经有一个 mimeMap 无效。

如何在仍然保留 IIS7 安装的映射的同时更正此问题?如果我能提供帮助,我宁愿不需要新的项目配置。

编辑:这实际上是现在 VS2010 中的一个问题,因为它看起来像 IIS8 Express 完全取代了 IIS7 Express。

0 投票
1 回答
8049 浏览

application-pool - 'DefaultAppPool' is being automatically disabled due to a series of failures

Having a tough time with this issue. Not sure how but my ApplicationPoolIdentity is broken.

Currently I'm running IIS 8 on Windows 8 with Visual Studio 2012. When trying to debug an application from Visual Studio, or just navigating to the site in a browser I get the following error logged and a 503 error.

If I check out the Application error logs, I find the following error from the User Profile Service.

Upon looking into the details I find that the User Profile Service is trying to load up a profile with the Id

S-1-5-82-3006700770-424185619-1745488364-794895919-4004696415

Now I opened up the registry to try and find the profile with that UserId. However there's nothing in the Profile list that helps.

No profile with the ID here

So digging around a little more I've found that this issue can be resolved by either

A) Set the Load User Profile of the Application Pool to false.

B) Use a different account for the application pool.

C) Fix the account.

Seeing how this is the built in account, I'd prefer to fix the issue rather than fix the sympton.

What I have tried

  • aspnet_regiis -i
  • Removing IIS from windows and reinstalling.
  • Attempted to follow the guide here but I don't know the account password :P

My hunch

Somehow the ApplicationPoolIdentity got messed up. Is there any physical folders for the built-in accounts? I know that the Network and Local service profiles physical directories exist at C:\Windows\ServiceProfiles\. It is possible to recreate the ApplicationPoolIdentity profile? Or am I way off on what the real issue is?