关于AspNetPager启用UrlPaging后iis7.5的程序池模式设置问题
原本网站运行在windows 2003服务器服务器环境asp.net 2.0
iis 6.0
一切运行正常.
这几天转移网站到windows 2008 R2服务器,iis 7.5 后
发现凡是有AspNetPager控件而且UrlPaging设置为"true"的页面全部运行错误.
几经周折发现是应用程序池的问题,默认发布iis7.5后程序池是"集成"模式,
把程序池模式设置为"经典"后一切运行正常.
请问有没有办法既可以使用 程序池为"集成"模式 又可以正常使用AspNetPager UrlPaging="true"的?
等回复.
非常感谢! AspNetPager UrlPaging iis7.5 windows 2008 --------------------编程问答-------------------- 这个问题最好联系这个控件的作者,给他留言。http://www.webdiyer.com/messages/ --------------------编程问答-------------------- 可能是web.config的问题。
<!--适用于IIS6/经典模式的配置-->
<system.web>
<!--适用于IIS7的配置(集成模式)-->
<system.webServer>
到 <system.webServer>下面找找是否有分页控件的定义,如果有就复制到<system.web> --------------------编程问答-------------------- 配置文件没有关于这个控件的属性配置,所以应该不是这个问题. 其他朋友有遇到过这个问题么? --------------------编程问答-------------------- 应该是url监听问题,iis7+需要多配置一项
<system.webServer>
如
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="FineUIScriptModule" type="FineUI.ScriptModule, FineUI"/>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add type="Discuz.Forum.HttpModule, Discuz.Forum" name="DNHttpModule" />
</modules>
<handlers>
<add name="FineUIResourceHandler" verb="GET" path="res.axd" type="FineUI.ResourceHandler, FineUI" validate="false"/>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>
--------------------编程问答-------------------- 联系过作者,也说不存在这个问题,但是我确实有这个问题.
这是错误的截图,http://74.82.169.107/20131105221858.jpg
目前我们只找到2个方法去解决这个问题, 第一把UrlPaging="True"去掉即可正常显示,或者把iis7的应用程序池模式设置成"经典".
等答复. 谢谢 --------------------编程问答--------------------
aspx(html 强制不验证试试) --------------------编程问答-------------------- 哦不对啊 , 明显缺少东西啊。 你部署开发环境IIS没有问题吧。 --------------------编程问答--------------------
除了这个问题以外其他运行都没问题呀.所以部署的环境应该没有问题的 --------------------编程问答-------------------- 确实没见过这种问题,我的个人主页 http://www.webdiyer.com就部署在IIS7上,应用程序池使用的是默认的集成模式,没有任何问题,也没做过任何特别设置,楼主可以试试直接把AspNetPager的源代码包含在你的项目中,设为调试模式后在服务器上运行看具体显示什么样的详细信息。
补充:.NET技术 , ASP.NET