Sharepoint SPSite

前端 未结 4 2019
时光取名叫无心
时光取名叫无心 2021-01-20 05:27

I am trying to create a spsite of object for sharepoint search but i am getting exception in production as website not found

SPSite site = new SPSite(\"siten         


        
4条回答
  •  失恋的感觉
    2021-01-20 06:06

    Do you have your permissions set up correctly? Check out this conversation...

    http://social.msdn.microsoft.com/Forums/ja-JP/sharepointdevelopment/thread/4d923b6a-d423-4c42-82dd-3315872db9cc

    You need to ensure (taken from the above) that:

    1. The user is a server farm administrator.
    2. The user has Read and Write permissions on the content database.
    3. The user is a site collection administrator.
    4. The user has permissions to access the Windows SharePoint Services site or the SharePoint Server 2007 site through which the code iterates.

提交回复
热议问题