Sharepoint SPSite

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

    You should also ensure that you are using an ip address you can hit from both your local box, and the server that you are running the program on.

    Before executing the program, ping the webaddress from the cmd prompt. Another way to test it is to open up the exact webaddress in a browser from the box that you are executing the program.

    It's possible you are trying to hit an internal site from a server which is not on the same domain.

    And finally, as it says in the MSDN Documentation you shouldn't be using "SiteName" but rather ensure that you are using "SiteAbsoluteUrl".

提交回复
热议问题