我開發了一個非常簡單的WCF,使用v2.0.50727框架服務返回一個字符串 - 一個典型的HelloWorld()場景。然而,配置是一個絕對的痛苦,我真的不明白我做錯了什麼。請注意我是管理員使用Windows 7使用IIS7和WCF時的問題 - 甚至無法加載.SVC
所以一步一步在我的機器上,這裏是我在做什麼:
創建一個新的網站指向我的WCF目錄。該目錄包含.SVC,一個Web.config和bin目錄,在它
嘗試.dll和.PDB並瀏覽到網站:
Config Error - Cannot read configuration file due to insufficient permissions
因此,我給IIS_IUSRS帳戶訪問目錄。
另一個錯誤:
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
因此,我保證權限向下傳播用戶 - 他們是。同樣的問題出現了,並再次 - 這樣的時間嘗試不同的東西。
我看AppPools,他們正在使用4.0新集成模式爲我創建一個。我將其更改爲
DefaultAppPool
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
我打開ASP.NET模擬 - 通過我的用戶,而不是默認的
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
我改變管道
Classic ASP.NET Pool
(其中關閉ASP.NET安全)You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
轉身ASP.NET模擬
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
-
請某人能引導我,什麼我要去我錯了嗎? IIS 6只想讓我馬上和我在做配置的顯著量只是加載.SVC
問候,
多米尼克
因爲.NET 3.0使用V2.0.50727 CLR,你必須要麼選用或.NET 4 – 2010-12-22 18:59:59