c# - SharePoint 错误 : Web application at xxxx could not be found

标签 c# .net sharepoint-2010

当我尝试执行这段代码时:

SPSite siteCollection = new SPSite(@"http://sp-devxxx:10000/");

它抛出以下错误:

The Web application at http://sp-devxxx:10000 could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.

我可以从我的网络浏览器访问这个站点,它在 x64 中编译,我的帐户对内容数据库具有读/写访问权限,代码在运行该站点的服务器上运行并且存在访问映射对于这个网站。为什么会抛出这个错误?

最佳答案

好的,经过几个小时的痛苦我终于找到了问题....

我必须将自己添加到服务器上的 WSS_ADMIN_WPG 组。希望这对某人有帮助。

关于c# - SharePoint 错误 : Web application at xxxx could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4787349/

相关文章:

c# - 如何在检查器中隐藏继承的公共(public)变量?

c# - 无法读取 Entity Framework 中的系统 View

sharepoint - 创建部署到选定 Web 应用程序但将程序集复制到 GAC 的解决方案

c# - 如何将多个dll包装在一个dll中

c# - 事件总线实现问题

sharepoint - 无法将功能区按钮添加到自定义列表

sharepoint-2010 - SharePoint - 客户端对象模型 - 获取子文件夹项目

c# - 按照惯例使用 AutoMapper 将 Wrapper<T> 映射到 T'

c# - Encog C#,VersatileMLDataSet from CSV,如何获取原始数据?

c# - VSTO(文档级): Individual context menu in Excel (right click menu)