IISEx $ P $ 7.5 PSS具有内部服务器错误,而IIS 7.5的作品 [英] IISExpress 7.5 has Internal Server Error, whereas IIS 7.5 works

查看:119
本文介绍了IISEx $ P $ 7.5 PSS具有内部服务器错误,而IIS 7.5的作品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有如下的<处理器/> 部分在我的web.config中注册的的ActiveReports 6 各种文件扩展名的处理程序:

I have the following <handlers /> section in my web.config to register ActiveReports 6 handlers for various file extensions:

<handlers accessPolicy="Read, Execute, Script">

  <add name="ActiveReportsRpxHandler" path="*.rpx" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
  <add name="ActiveReportsWebCacheHandler" path="*.ArCacheItem" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
  <add name="ActiveReportsCompiledReportHandler" path="*.ActiveReport" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />

</handlers>

这IIS 7.5下正常工作在Windows Server当应用程序池配置中的综合管线模式下使用.NET 4.0 2008 R2。

This works fine under IIS 7.5 under Windows Server 2008 R2 when the Application Pool is configured to use .NET 4.0 in the Integrated Pipeline mode.

如果我尝试下运行这个确切的web.config中的同一个应用程序的 IIS防爆$ P $ 7.5 PSS 后,我收到以下令人困惑的错误消息:

If I try to run the same application with this exact web.config under IIS Express 7.5, I receive the following confusing error message:

**HTTP Error 500.19 - Internal Server Error**

**Config Error**    Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'ActiveReportsRpxHandler'

此错误消息没有太大的意义,特别是如果我改变了独特的名属性为别的东西和错误信息进行相应调整。 (这是不可能的 ActiveReportsRpxHandler6161616161 是重复别的地方)

This error message doesn't make much sense especially if I change the unique "name" property to something else and the error message adapts accordingly. (it's unlikely that ActiveReportsRpxHandler6161616161 is duplicated some place else)

这IISEx preSS实例遵循以下对ApplicationHost.config:

This IISExpress instance follows the following applicationhost.config:

<site name="xxxxxxx" id="2">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\Users\xxxxxxx\Documents\Visual Studio 2010\Projects\xxxxxxx\xxxxxxx" />
    </application>
    <application path="/AIMS" applicationPool="Clr4IntegratedAppPool">
        <virtualDirectory path="/" physicalPath="C:\Users\xxxxxxx\Documents\Visual Studio 2010\Projects\xxxxxxx\xxxxxxx" />
    </application>
    <bindings>
        <binding protocol="http" bindingInformation="*:32150:localhost" />
    </bindings>
</site>

任何线索与IIS防爆$ P $ 7.5 PSS了?或我在做一些愚蠢的事吗?

Any clue what's up with IIS Express 7.5? Or am I doing something stupid here?

推荐答案

也许处理器被注册的地方了在配置文件链。请参阅有关的细节在 http://msdn.microsoft .COM / EN-US /库/ ms178685(v = VS.100)的.aspx 。另外,您也可以尝试

Maybe the handler is registered somewhere up in the config file chain. See details about it at http://msdn.microsoft.com/en-us/library/ms178685(v=vs.100).aspx. Alternatively, you can try

<handlers accessPolicy="Read, Execute, Script">
  <remove name="ActiveReportsRpxHandler"/> 
  <add name="ActiveReportsRpxHandler" path="*.rpx" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.RpxHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
  <add name="ActiveReportsWebCacheHandler" path="*.ArCacheItem" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.WebCacheAccessHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />
  <add name="ActiveReportsCompiledReportHandler" path="*.ActiveReport" verb="*" type="DataDynamics.ActiveReports.Web.Handlers.CompiledReportHandler, ActiveReports.Web, Version=6.0.1797.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff" />

</handlers>

这篇关于IISEx $ P $ 7.5 PSS具有内部服务器错误,而IIS 7.5的作品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆