在安裝了Windows SharePoint Services的機器上,安裝自己的Web應用

在安裝了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>

就可以了:)

發佈了71 篇原創文章 · 獲贊 0 · 訪問量 24萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章