我正尝试在Win7 / 64上运行的IIS7上重新安装ASP.NET,这样突然间就停止了工作。
当我运行aspnet_regiis -i ,我得到一个错误消息说
Finished installing ASP.NET (4.0.30319). Setup has detected some errors during the operation. For details, please read the setup log file C:\Users\username\AppData\Local\Temp\ASPNETSetup_00031.log
看日志,它报告
Failure Changing IIS ApplicationHost.config: IIS7Register failed with HRESULT 800700b7: 'Cannot create a file when that file already exists. '
尝试从该服务器访问ASP.NET网页时出现真正的问题:
HTTP Error 500.21 - Internal Server Error Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
和
Most likely causes: Managed handler is used; however, ASP.NET is not installed or is not installed completely. There is a typographical error in the configuration for the handler module list.
所以看来ASP.NET没有被正确地重新安装。 现在,我意识到了所谓的唯一的补救措施,在整个Web上重复,并在这里举例说明:
http://blogs.msdn.com/b/dougste/archive/2010/09/06/errors-installing-asp-net-4-0.aspx
除了build议的解决scheme不适合我。 我已经在.NET 4.0的isapiCgiRestriction部分中扩展了%windir%macros – 而aspnet_regiis对我来说仍然失败。
任何其他的想法?
我应该提到,一旦我安装RTM版本的Visual Studio 2012,问题就消失了。与user110684一样,我最初安装了当时称为VS11的预览版,可能是我们两个都在做的。无论如何,在安装VS2012的最终版本之后,随着.NET 4.5的发布,我不再看到这个问题。
我们最近遇到了相同的logging错误, 'Cannot create a file when that file already exists.' ,在Windows 7上尝试使用“打开或closuresWindowsfunction”将function添加到IIS。 解决scheme是:
aspnet_regiis -i 。 试试这个,按照优先次序:
我不认为这个错误意味着什么,我在进行HTTP调用时遇到了VB6中的同样的错误,根本问题是我设置了一个头两次(奇数)。 也许这对某人有帮助
请将您的应用程序从集成设置为经典。 请让我知道它是如何工作的。 祝你好运