2016-06-27 49 views
0

我在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上重新啓動是需要的,我不能在繁忙時間。

有沒有解決這個問題?

+0

仍在發生。例如http://www.grandcinemas.com.au/Movie/Rogue-One-A-Star-Wars-Story 有時它會加載大綱和海報,而沒有任何css或js。 其他任何電影片頭都可以正常播放。每個電影標題都是由asp.net中的相同/電影頁面路由處理的 但是,我重新啓動IIS上的網站,它恢復正常 - 非常奇怪 – KevinC

回答

0

我有同樣的問題,事實證明,這是由於我的身份驗證問題?在配置文件,這是防止CSS加載時,用戶未經過身份驗證/登錄。

+0

感謝您的回答。該頁面的內容是爲公衆提供的,用戶不需要登錄?它會顯示一個非css頁面嗎? – KevinC