找不到位于 "Sharepoint Server URL" 的 Web 应用程序

使用VS2010 通过服务器端对象模型进行Sharepoint 2010站点的扩展开发,编译OK,运行报如下错误:

Server Error in '/' Application.
--------------------------------------------------------------------------------

找不到位于 http://localhost:80 的 Web 应用程序。请确认正确键入了此 URL。如果此 URL 需要提供现有内容,则系统管理员可能需要添加到指定应用程序的新请求 URL 映射。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileNotFoundException: 找不到位于 http://localhost:80 的 Web 应用程序。请确认正确键入了此 URL。如果此 URL 需要提供现有内容,则系统管理员可能需要添加到指定应用程序的新请求 URL 映射。

 

头疼了一个小时。。。

网上到处找方法,说法各异,无果。

最后跑到MOSS的官网论坛上去,看到老外在叫唤同样的问题,看到其中一个解决建议:“try to give the application pool identity account full access to SQL to check whether it works”,给了我一些灵感,最终找到了解决方法。

 

Step One:

  将你的项目发布至IIS

Step Two

  找到你发布到IIS上的网站对应的应用程序池(Application pool),打开高级选项,将Process->Model下的Identity的账号改成你MOSS服务器场管理员的账号

Step Three

  体验成功,完毕!

posted @ 2012-09-12 15:30  史向平  阅读(1307)  评论(0编辑  收藏  举报