我正在尝试使用 Visual Studio 2012 创建一个简单的 webpart,但是当我尝试验证我的 Sharepoint 服务器时,它说:
Cannot connect to the SharePoint site: "url" that the Site URL is valid, that the SharePoint site is running on the local computer, and that the current user as the necessary permissions to access the site.
我在本地机器上安装了 SharePoint 2013,我可以浏览该网站。
我尝试了这个解决方案( resolving-vs-2010-solution-deployment-issues-for-sharepoint-2010-projects )并在提到的数据库中添加了我的用户。为了确认,我运行了查询:
Add-SPShellAdmin -UserName domain\username
结果是:
"Cannot add dcci\User2 to the SharePoint_Shell_Access role of the database SharePoint_Config. A possible cause of this error is that the account name was already added to the database as a login using a different user name than the account name."
其次,我已经为我的站点配置了备用访问映射,它在一个区域的端口 91 和其他区域的默认 80 端口上运行。我已经尝试了两个 URL 来验证结果。以下是事件查看器的详细信息。
RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,...) 0x80070005, Access is denied. Operation: Initializing Writer Context: Writer Class Id: {0ff1ce15-0201-0000-0000-000000000000} Writer Name: OSearch15 VSS Writer Writer Instance Name: OSearch15 Replication Service Writer Instance ID: {e8767b85-1452-4bd1-8091-6fe8ed6fd8ce}
任何帮助将非常感激。
最佳答案
验证您的登录名是否在 db_owner
中SQL 实例上的组。
关于visual-studio-2012 - Visual Studio 2012 : can't connect to sharepoint site,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17609508/