我开发了一个非常简单的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