找不到位于 "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

  体验成功,完毕!

转载于:https://www.cnblogs.com/sxp227/archive/2012/09/12/2681869.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值