If you are trying to access the SharePoint site through console for the first time you may get the below error

System.IO.FileNotFoundException was unhandled
Message=The Web application at http://win-872tgscbp72:2890 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.
To resolve this
1) Project Properties -- > Application tab
Just check target framework is .Net Framework 3.5
2)Project Properties -- > Build tab
Platform target to ANY CPU or x64
By following these 2 steps it should work fine, If your still getting the error change the Debug option as shown below
and last everything will work fine.
SharePoint smoking..........
Dharani

System.IO.FileNotFoundException was unhandled
Message=The Web application at http://win-872tgscbp72:2890 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.
To resolve this
1) Project Properties -- > Application tab
Just check target framework is .Net Framework 3.5
2)Project Properties -- > Build tab
Platform target to ANY CPU or x64
By following these 2 steps it should work fine, If your still getting the error change the Debug option as shown below
and last everything will work fine.
SharePoint smoking..........
Dharani

Great ! Thanks for resolving this issue. I was getting this error and was looking for some solution to resolve it. I followed all these steps and it worked liked charm.
ReplyDeleteelectronic signature for sharepoint