Asp.net mvc 4 将MVC4应用程序部署到Windows Server 2003和IIS 7(错误0x8007000d)
在任何平台上部署MVC4 web应用程序时,我都会遇到一些问题,需要花很多时间才能让它正常工作。然而,此时,我发现Windows Server中的安装存在其他新问题 我得到的错误是web.config文件不是格式良好的XML文档。和往常一样,微软的网页并没有为其软件的问题提供真正的解决方案。这只表明我没有一个格式良好的XML文档,这是不正确的。该web.config文件与我在开发机器中使用的文件相同 我将应用程序安装在名为C:\folder\Website的文件夹中,该文件夹具有用户IUSR的读取权限 我已经运行了“aspnet\u regais-I”命令 我已使用应用程序池的本地管理员帐户 我用过iisreset 无济于事 你能帮我解决这个问题吗 问候,, 詹姆 编辑: 通过使用IIS 7管理控制台并尝试更改某些配置,会出现相同的错误,请注意,问题出现在web.config的第3行 这是web.config的开始:Asp.net mvc 4 将MVC4应用程序部署到Windows Server 2003和IIS 7(错误0x8007000d),asp.net-mvc-4,deployment,iis-7,Asp.net Mvc 4,Deployment,Iis 7,在任何平台上部署MVC4 web应用程序时,我都会遇到一些问题,需要花很多时间才能让它正常工作。然而,此时,我发现Windows Server中的安装存在其他新问题 我得到的错误是web.config文件不是格式良好的XML文档。和往常一样,微软的网页并没有为其软件的问题提供真正的解决方案。这只表明我没有一个格式良好的XML文档,这是不正确的。该web.config文件与我在开发机器中使用的文件相同 我将应用程序安装在名为C:\folder\Website的文件夹中,该文件夹具有用户IUSR的读
<?xml version="1.0" encoding="utf-8"?>
<!--
Para obtener más información sobre cómo configurar la aplicación de ASP.NET, visite
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
<section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
<section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
<section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
<section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
</sectionGroup>
</configSections>
我必须授予IUSR读写权限。试试看?这是胡说八道。我已经删除了评论,web应用程序正常运行。有人对此有解释吗?我找不到它。