Sharepoint SPSite

前端 未结 4 2052
时光取名叫无心
时光取名叫无心 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 05:58

    If you create a console application and try the same code there, the same code works. You have to add application to IIS and change the app pool identity. I did the same and it worked for me.

提交回复
热议问题