当我尝试执行这段代码时:
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/