我在Asp.net有一个网站,有时不会加载任何css文件。它发生在某些电影随机,然后修复几个小时后(我想因为在服务器上重新缓存)随机页面不会加载任何css文件,然后自动修复?
例如我有一个电影页面www.example.com.au/Movie/Mr-Right和www.example.com.au/Movie/Everybody想细跟所有的内容有些
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Dendy Cinemas: Everybody Wants Some
</title><meta property="og:type" content="movie" /><meta property="og:title" content="Dendy Cinemas: Everybody Wants Some " /><meta property="og:url" content="http://www.dendy.com.au/Movie/Everybody-Wants-Some" /><meta name="keywords" content="Dendy, Dendy Cinemas, Dendy Canberra, Dendy Opera Quays, Dendy Newtown, Dendy Portside, Dendy Brisbane, Dendy Byron Bay, Session Times, Movies, Ballet, Opera" /><meta name="description" content="A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood." /><meta property="og:description" content="A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood." /><meta property="og:image" content="http://www.dendy.com.au/SharedContent/4hKMvTS35U6ACDPcViUrqg.jpg" /> </head>
<body>
<form name="form1" method="post" action="Everybody-Wants-Some" id="form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTIwNzE1OTQxODdkZOSb2/BkiFCf2AWGsmI7Mr5F13nl" />
</div>
<div>
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="5415F9F0" />
</div>
<div>
<h1>
Dendy Cinemas: Everybody Wants Some
</h1>
<p>
Rated MA15+, 117 mins.
Starring Blake Jenner, Tyler Hoechlin, Ryan Guzman .
A group of college baseball players navigate their way through the freedoms and responsibilities of unsupervised adulthood.
</p>
<img src="http://www.dendy.com.au/SharedContent/4hKMvTS35U6ACDPcViUrqg.jpg" title="Everybody Wants Some " />
</div>
</form>
第一个负载但如标题和概要 两个页面的信息较少的其他负载使用相同电影页面和母版页与网站主CSS文件。相同的aspx页面相同的代码,只有不同的是它的电影细节。
我使用IIS 7.5并检查服务器上是否安装了“静态内容”。我也做了一些研究,并找到一篇文章,建议将匿名身份验证凭据从“特定用户(IUSR)”更改为“应用程序池标识” 我不想进行此更改,因为我知道如果在IIS上重新启动是需要的,我不能在繁忙时间。
有没有解决这个问题?
仍在发生。例如http://www.grandcinemas.com.au/Movie/Rogue-One-A-Star-Wars-Story 有时它会加载大纲和海报,而没有任何css或js。 其他任何电影片头都可以正常播放。每个电影标题都是由asp.net中的相同/电影页面路由处理的 但是,我重新启动IIS上的网站,它恢复正常 - 非常奇怪 – KevinC