Sharepoint 2007 和 ASP.NET 4.0

发布于 2024-08-26 00:44:43 字数 68 浏览 2 评论 0原文

是否可以在 Sharepoint 2007(WSS 或 MOSS)中创建 ASP.NET 4.0“_layouts”页面?

Is it possible to create ASP.NET 4.0 "_layouts" pages in Sharepoint 2007 (WSS or MOSS)?

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

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

发布评论

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

评论(3

乖乖兔^ω^ 2024-09-02 00:44:43

您必须重新配置 Web 应用程序的应用程序池才能使用 .NET 4,但这不受支持。甚至 SharePoint 2010 也基于 .NET 3.5。

You'd have to reconfigure the application pool of your Web app to use .NET 4, but this is not supported. Even SharePoint 2010 is on .NET 3.5.

公布 2024-09-02 00:44:43

虽然它没有得到官方支持,但我相信这种情况与在早期版本的 SharePoint 2007 上使用 .net 3.5 类似 - 它适用于对 web.config 的大量更改,因为所有较新版本的 .net 支持运行 2.0 代码。

尽管如此,在做出任何承诺之前,您应该使用一个简单的页面进行测试,如果您需要通过公司基础设施人员的测试,那么您就不走运了。

Although it's not officially supported, I believe the situation is similar to using .net 3.5 on the earlier versions of SharePoint 2007 - it works with a bunch of changes to web.config, as all newer versions of .net support running 2.0 code.

That said though, you should test with a simple page before you commit to anything, and you're out of luck if you need to get it past corporate infrastructure people.

情仇皆在手 2024-09-02 00:44:43

@Tom Clarkson

虽然您确实可以对 MOSS 站点进行 web.config 更改以使其与 ASP.NET 3.5 一起使用,但我不确定 .NET 4 是否也是如此。ASP.NET

4.0 使用新版本的 CLR,与版本 2.0 不同 -> 3.5. 3.5 实际上只是一个营销术语,可能应该命名为 2.x。

@Tom Clarkson

Although it is true that you can make web.config changes to a MOSS site in order to get it to work with ASP.NET 3.5, I am not sure that is the case with .NET 4.

ASP.NET 4.0 uses a new version of the CLR, unlike versions 2.0 -> 3.5. 3.5 is really just a marketing term and should probably have been named 2.x.

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