Hi,
getting below error in catch : SPSite site = new SPSite(siteurl); line
The Web application at https://xxx-sp-pcc.cloudapp.net/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application.
Mageshwaran RPosted Oct 9, 2020, 9:04 AM
Sachin SinghPosted Oct 9, 2020, 1:54 AM
- account is a member of WSS_ADMIN_WPG
- If it is already so then
- Go to Project Properties
- Build Tab
- Change the Platform Target value to
also try to open VS in administrator mode.Any CPUfrom the drop down.Satyajit PaulPosted Oct 9, 2020, 1:10 AM
Junaid MuslaPosted Oct 7, 2020, 5:32 AM
Found this reference:
https://www.c-sharpcorner.com/blogs/how-to-solve-error-while-creating-spsite-object-in-sharepoint1
Hope it helps!