在vs中做SharePoint 2010开发或调试的时候,经常会碰到如下的错误:
“The Web application at http://test-sp2010/ 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. ”
一般这个错误可以通过以下三种方式解决:
- 以Administrator的身份运行vs
- 修改.net framework的版本为3.5,因为SharePoint 2010是建立在.net 3.5之上的
- 修改编译运行平台为AnyCPU或X64(默认的是X86)