简体   繁体   English

将ASP.NET Web表单部署到IIS7上,间歇地提供状态代码404

[英]ASP.NET web forms deployment onto IIS7 giving status code 404 Intermittently

I have deployed an ASP.NET web forms application to IIS7 and getting status code 404 intermittently. 我已将ASP.NET Web窗体应用程序部署到IIS7,并间歇性地获取状态代码404。 By this I mean the site will work for say 10 mins, and then I will get status code 404 for 20 mins... 我的意思是该站点将在10分钟内正常工作,然后在20分钟内我将收到状态码404 ...

I have one other ASP.NET web forms app running as a separate website on the server, and is running with no problem. 我还有一个ASP.NET Web窗体应用程序在服务器上作为单独的网站运行,并且运行正常。 (Both are using the same application pool) (两者都使用相同的应用程序池)

I have searched and seen a few people have had similar symptoms but their solutions have not worked for me. 我进行了搜索,发现一些人有类似的症状,但是他们的解决方案对我不起作用。 For example this guy was having a similar problem, I have tried their suggestions but no luck. 例如,这个人有一个类似的问题,我尝试了他们的建议,但是没有运气。

Diagnosing 404 errors on IIS 7 and ASP.NET MVC 在IIS 7和ASP.NET MVC上诊断404错误

Any suggestions would be much appreciated. 任何建议将不胜感激。

Problem turned out to be a DNS issue, there were two DNS records set for the subdomain. 问题原来是DNS问题,该子域有两个DNS记录集。 Hence the intermittent problem. 因此存在间歇性问题。 There was a 50/50 chance which ip it got and cached. 它获得并缓存了IP的机会为50/50。

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

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