我有 wcf 服务包,等待放入 IIS。当我在默认网站等上创建虚拟目录时,一切正常。但是当我尝试访问 Chrome 中的路径时,出现错误:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
当我评论此部分时:
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
我可以访问目录但不能访问服务。任何想法?