SharePoint Ajax Web 部件 web.config 问题

发布于 2024-07-18 13:19:26 字数 793 浏览 3 评论 0原文

您好,我在我的 Web 部件中使用 AJAX Extensions 1.0。 当我将其添加到 SharePoint 上并且一切运行正常时,效果非常好。 我还有其他应用程序的链接,这些应用程序作为 IFRAME 放在 SharePoint 上。 我遇到了从 SharePoint web.config 继承的应用程序的问题。 我在 IFRAME 中收到此错误:

解析器错误消息:条目“ScriptModule”已添加。

Line 98:        <!-- ASP.NET AJAX -->
Line 99:        <httpModules>
Line 100:           <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 101:       </httpModules>
Line 102:       <compilation debug="true">

我认为这是因为 SharePoint web.config 也包含这一行。 我无法从那里删除它,因为我的 Web 部件需要它。 我想在我的 IFRAME 应用程序中添加 来解决这个问题,但我有很多应用程序,我不确定是否有多个地方需要这样做。 有更好的解决方案吗? 谢谢。

Hi I am using AJAX Extensions 1.0 in my web part. It works great when I add it on SharePoint and everything runs fine. I also have links to other applications which are put onto SharePoint as IFRAME's. I run into a problem with the application inherting from my SharePoint web.config. I get this error in the IFRAME:

Parser Error Message: The entry 'ScriptModule' has already been added.

Line 98:        <!-- ASP.NET AJAX -->
Line 99:        <httpModules>
Line 100:           <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Line 101:       </httpModules>
Line 102:       <compilation debug="true">

I think this is because the SharePoint web.config also contains this line. I cannot remove it from there because I need it for my web part. I thought of adding <clear/> in my IFRAME applications to get around this but I have so many applications and I am not sure if there is more than once place I will need to do this. Is there a better solution? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情泪▽动烟 2024-07-25 13:19:26

您必须修改全局 web.config。 可以通过WebConfigModification来完成(不记得类的全名了,已经有一段时间了)。 我在 CodePlex 上使用了 Ajaxify MOSS 功能,并且运行得很好。 看看那里。
http://ajaxifymoss.codeplex.com/

You have to modify global web.config. It can be done by WebConfigModification (don't remember full name of the class, it's been a while). There is feature Ajaxify MOSS available on CodePlex which I used and it works just fine. Take a look there.
http://ajaxifymoss.codeplex.com/

杀お生予夺 2024-07-25 13:19:26

试试这个


<清除/>

Try this

<httpModules>
<clear />
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文