简体   繁体   English

无法在Visual Studio 2017社区版本中运行WCF调试模式

[英]Could not run WCF debug mode in visual studio 2017 community version

When I try to run WCF debug mode in Visual studio 2017, I get the following errors in events viewer : 当我尝试在Visual Studio 2017中运行WCF调试模式时,在事件查看器中出现以下错误:

The Module DLL 'C:\\Program Files (x86)\\IIS Express\\Asp.Net Core Module\\V2\\aspnetcorev2.dll' could not be loaded due to a configuration problem. 由于配置问题,无法加载模块DLL'C:\\ Program Files(x86)\\ IIS Express \\ Asp.Net Core Module \\ V2 \\ aspnetcorev2.dll'。 The current configuration only supports loading images built for a x86 processor architecture. 当前配置仅支持加载为x86处理器体系结构构建的映像。 The data field contains the error number. 数据字段包含错误号。 To learn more about this issue, including how to troubleshooting this kind of processor architecture mismatch error, see http://go.microsoft.com/fwlink/?LinkId=29349 . 要了解有关此问题的更多信息,包括如何解决这种处理器体系结构不匹配错误,请参阅http://go.microsoft.com/fwlink/?LinkId=29349

And by that I couldn't launch my service. 因此,我无法启动我的服务。

Thank for all of your suggestion. 感谢您的所有建议。 I had done to resolve this by add comment 2 line of the file ".vs\\config\\applicationhost.config" 我已经通过添加文件“ .vs \\ config \\ applicationhost.config”的注释2行来解决此问题

<!--  <add name="AspNetCoreModule" image="%IIS_BIN%\aspnetcore.dll" />
            <add name="AspNetCoreModuleV2" image="%IIS_BIN%\Asp.Net Core Module\V2\aspnetcorev2.dll" /> -->

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM