Internet Explorer无法显示该网页 [英] Internet Explorer cannot display the webpage

查看:157
本文介绍了Internet Explorer无法显示该网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

林不知道这是什么告诉我?
我有这样的地方:

Im Not sure what this is telling me? I have this in place:

<system.web>
    <customErrors mode="Off"/>

当我点击,它应该是上传文件的按钮。我得到这样做时,上面列出的错误。我在我的本地机器上运行。我尝试调试它,我得到的错误,而不是我的破发点。我把你好行认为它正试图做我的断点之前评估的if语句。还是失败,不知道为什么。

When I click on a button that it is supposed to upload a file. I get the error Listed above when doing so. I am running on my local machine. I try to debug it and I get the error and not my break point. I put the "hello" line in thinking it was trying to evaluate the "if" statement before doing my breakpoint. Still fails and not sure why.

 protected void btnUpload_Click(object sender, EventArgs e)
 {
     string a = "hello";
     if (FuQuote.HasFile)
     {
         string path = "~/Quotes/" + FuQuote.FileName;
         FuQuote.SaveAs(MapPath(path));
     }
 } 

此问题可以通过多种问题,包括导致的:

This problem can be caused by a variety of issues, including:


  • Internet连接已丢失。

  • 该网站暂时不可用。

  • 域名服务器(DNS)是不可达的。

  • 域名服务器(DNS)没有对网站的域名的列表。

  • 有可能是在地址输入错误。

  • 如果这是一个HTTPS(安全)地址,单击工具,单击Internet选项,单击
    高级,检查以确保SSL和TLS协议启用
    在安全部分。

推荐答案

什么是你的web.config设置为你的maxRequestLength值?你可能会选择一个文件,是大于maxRequestLength值越大。

What is your maxRequestLength value set to in your web.config? You are probably selecting a file that is bigger than the maxRequestLength value.

<system.web>
    <httpRuntime maxRequestLength="4096"/>
</system.web>

这篇关于Internet Explorer无法显示该网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆