visual-studio-2012 - Visual Studio 2012 : can't connect to sharepoint site

标签 visual-studio-2012 sharepoint-2013

我正在尝试使用 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 实例上的组。

  • 一步一步地遵循本指南并验证每个步骤是否正确:Account Permissions and Security Settings in SharePoint 2013 .这个更详细,对于您的需要可能有点过分,但它是访问权限的漫长道路。有关更简单的路径,请参阅 #2。
  • 另一个很好的简单指南:Prepare your SharePoint 2013 farm for App development and debugging .本指南解决了我的大部分本地开发需求。
  • 关于visual-studio-2012 - Visual Studio 2012 : can't connect to sharepoint site,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17609508/

    相关文章:

    visual-studio - Visual Studio 11 安装错误

    c++ - Visual Studio 2012 的可变参数模板出错

    c++ - 无法让谷歌测试工作

    javascript - 将包含字符串数据的变量转换为 JavaScript REST API 的 JSON 对象

    asp.net-web-api - SharePoint 2013 和 ASP.NET WebApi

    mysql - Visual Studio MySQL 在运行时未定义

    c# - 通过 REST 从 SharePoint 2013 中的列表中提取数据

    javascript - 母版页 url 作为前缀附加到 sharepoint 2013 中的 anchor href

    excel - 在 Power Query(获取和转换)Excel 中使用 ODC

    c# - 从ViewModel中选择 ListView 中的所有项目