[英]IIS express serves one .asmx service, but always returns 404 on another
I upgraded an old solution to Visual Studio 2015, and ran into trouble with one of the .asmx web services. 我将旧的解决方案升级到Visual Studio 2015,并遇到了一个.asmx Web服务的问题。 I have a number of them in this solution, and IIS express loads and runs them all correctly, except one. 我在这个解决方案中有很多它们,IIS表示加载并正确运行它们,除了一个。 This one service always returns a 404 if I try to load the .asmx URL in IIS express. 如果我尝试在IIS express中加载.asmx URL,则此服务始终返回404。 It runs correctly in full-blown IIS. 它在完整的IIS中正确运行。
None of the problems I've found online solve my situation. 我在网上发现的问题都没有解决我的情况。 Here are the details: 以下是详细信息:
I'm not sure what's going on here or what I can do next, so any suggestions would be much appreciated. 我不确定这里发生了什么或接下来我能做什么,所以任何建议都会非常感激。
I solved it by basically creating a new project and importing all the old files. 我通过基本上创建一个新项目并导入所有旧文件来解决它。 IIS express must have cached something somewhere when the project was invalid, and by recreating the assembly information it forced a refresh. 当项目无效时,IIS express必须在某处缓存某些内容,并通过重新创建程序集信息来强制刷新。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.