2011-12-21 211 views
0

我创建了一个应用程序,并将其发布到我的服务器上。我想,当用户浏览到要设定这么IE浏览器无法导航到default.htm

appName.domainName.com

,他们将被自动重定向到

appName.domainName.com/myApplication.aspx

我我已经使用重定向元标记在我的根目录中设置了Default.htm文件。但是,如果我将页面设置为我的主页,则每当我第一次打开IE时,就会收到“Interent Explorer无法显示网页”消息。一旦我打F5它刷新并正常工作。有没有人知道可能导致这种情况的线索?

回答

0

一种选择是将IIS配置为在导航到应用程序时使用myApplication.aspx作为“默认页面”,而不是基于以前的默认页面进行重定向。

使用IIS documentation,你可以添加到您的web.config

<configuration> 
    <system.webServer> 
     <defaultDocument enabled="true"> 
     <files> 
      <add value="myApplication.aspx" /> 
     </files> 
     </defaultDocument> 
    </system.webServer> 
</configuration> 

或使用IIS管理器的值设置为你的页面。