Sharepoint 2007 和 ASP.NET 4.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须重新配置 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.
虽然它没有得到官方支持,但我相信这种情况与在早期版本的 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.
@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.