gpt4 book ai didi

asp.net - 命名空间 ‘LayoutsPageBase’ 中不存在类型或命名空间名称 ‘Microsoft.SharePoint.WebControls’

转载 作者:行者123 更新时间:2023-12-01 00:28:27 25 4
gpt4 key购买 nike

我正在尝试使用 Visual Studio 2010 在 SharePoint 2010 网站上创建一个 Web 应用程序页面。我创建了一个新的应用程序页面,但没有添加任何代码并收到此错误。类型或命名空间名称“LayoutsPageBase”不存在于命名空间“Microsoft.SharePoint.WebControls”。

最佳答案

您的项目是作为农场解决方案还是沙盒解决方案创建的?

Microsoft.SharePoint.dll 有两个版本。如果您在项目中引用的版本来自 14\UserCode\assemblies,那么您使用的是沙盒版本。 LayoutsPageBase 类在沙盒解决方案中不可用。

关于asp.net - 命名空间 ‘LayoutsPageBase’ 中不存在类型或命名空间名称 ‘Microsoft.SharePoint.WebControls’,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7125717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com