簡體   English   中英

ASP.Net瀏覽器兼容性

[英]ASP.Net Browser Compatibility

如果我使用IE連接到我的ASP.Net站點並讓瀏覽器閑置一分鍾左右然后嘗試點擊一個新項目,鏈接,無論如何,IE看起來好像它正在嘗試加載但從未做任何事情。

如果我使用Chrome連接到該網站並執行相同的操作,Chrome會按預期毫不拖延地提取下一個項目。 我已經嘗試更改session.config和httpRuntime的web.config,IIS中的ASP和池設置,我似乎無法做任何修復IE中的問題。

是否有其他設置在某處,也許在Windows中修復IE,因為這似乎是一個瀏覽器相關的問題,與ASP網站或IIS無關? 我的想法已經不多了,而且大多數用戶都會使用IE而不是Chrome,所以這不是我可以忽略的問題。

這是我的web.config文件,如果它有幫助:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <connectionStrings>
    <add name="ApplicationServices" connectionString="data     source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
    <add name="TaskSystemConnectionString" connectionString="Data Source=REPORTSERVER;Initial Catalog=TaskSystem;Integrated Security=True" providerName="System.Data.SqlClient"/>
  </connectionStrings>
  <system.web>
      <sessionState timeout="3600"/>
      <httpRuntime executionTimeout="3600" maxRequestLength="2000000"/>
    <compilation debug="true" targetFramework="4.0"/>
    <authentication mode="Windows" />
    <customErrors mode="Off"/>
    <membership>
      <providers>
        <clear/>
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/>
      </providers>
    </membership>
    <profile>
      <providers>
        <clear/>
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
      </providers>
    </profile>
    <roleManager enabled="false">
      <providers>
        <clear/>
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/>
      </providers>
    </roleManager>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" validateRequest="false"/>
  </system.web>
  <system.webServer>
    <defaultDocument>
  <files>
    <add value="Home.aspx"/>
  </files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/>

所以......在繼續研究和擺弄之后,我找到了一篇解決這個問題的微軟文章。 似乎那些特殊的人在微軟決定一分鍾超時是一個合適的默認值... http://support.microsoft.com/kb/813827 一旦我將兩個必要的條目添加到KeepAliveTimeout和ServerInfoTimeout的注冊表中,問題就消失了。

可能與數據庫權限有關。 您是否嘗試在連接字符串中指定SQL登錄? 運行IIS的帳戶可以訪問這些數據庫嗎?

還要檢查IIS設置以確保身份驗證模式= Windows。

當我不使用IE時,我遇到了Windows身份驗證問題。 例如,Chrome不會傳遞用戶身份,每次訪問Intranet時都必須輸入我的憑據。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM