在安装了Windows SharePoint Services的机器上,安装自己的Web应用

来源:互联网 发布:注册一个淘宝店 编辑:程序博客网 时间:2024/04/24 14:07

在安装了Windows SharePoint Services2.0的机器上,因为http请求被WSS截获了,如果直接在Default web site上安装自己的Web应用的虚目录,你的web 应用根本无法运行。 

要想让自己的应用和sharePoint共存,需要

1 将这个虚目录从SharePoint中Excelude,

打开SharePoint Central Admin站点,

Virtual Server Configuration -> Configure virtual server settings ->Default Web Site->

Virtual Server Management ->Define managed paths ->Add a New Path

输入数据:

Path:  /adminsite   (adminsite是你的虚目录的名字)

Type: Excluded path

保存。

现在,你的web应用http://servername/adminsite 可以被访问了

2 如果你运气不好,象我一样使用了Enterprise Library这样的一些第三方类库,你会越到一个很古怪的问题:你的类库无法编译了,报出的异常信息:

Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]

后来我发现,还是WSS搞得鬼,WSS默认把程序集的信任级别降低为mini了。这样,需要full trusted编译链接的类库就无法被编译了!

解决办法好简单:

在web.config中加入

<system.web>

<

</

trust level="Full" originUrl="" />system.web>

就可以了:)