[英]Location path in applicationhost.config not mapping to assembly
I'm having a strange issue with an C# ASP.NET WebAPI project where the <location path="example.namespace.webapi">
attribute value in applicationhost.config
is not mapping to the fully qualified name of the assembly; 我在与一个C#ASP.NET的WebAPI项目,其中一个奇怪的问题
<location path="example.namespace.webapi">
在属性值applicationhost.config
不映射到所述组件的完全合格的名称; instead it's tagging "(1)"
on the end. 相反,它在最后标记
"(1)"
。
Thus, when I try to change the IISExpress configuration manually, my changes are ignored. 因此,当我尝试手动更改IISExpress配置时,我的更改将被忽略。
./.vs/applicationhost.config : ./.vs/applicationhost.config :
<location path="example.namespace.webapi">
<!-- VS2015/IIS is ignoring this section -->
...
</location>
<location path="example.namespace.webapi(1)">
<!-- VS2015/IIS creates and uses this section -->
...
</location>
I've tried deleting both <location>
sections, and forcing VS2015 to regenerate the configuration by changing the Anonymous Authentication
property value, but it simply creates the location path with a (1)
, even when the proper section doesn't exist. 我尝试删除两个
<location>
部分,并强制VS2015通过更改Anonymous Authentication
属性值来重新生成配置,但它只是创建了带(1)
的位置路径,即使正确的部分不存在也是如此。
What could be causing this behaviour? 什么可能导致这种行为?
You could be conflicting with something in the master IISExpress config(s). 您可能与主IISExpress配置中的某些内容发生冲突。 Have a look in:
看看:
C:\Program Files\IIS Express\AppServer\applicationhost.config
C:\Program Files (x86)\IIS Express\AppServer\applicationhost.config
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.