上传文件asp.net后页面不可用 [英] page not available after upload file asp.net

查看:66
本文介绍了上传文件asp.net后页面不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试上传一些视频或音频文件时。



点击上传按钮,它会将我重定向到此网页不可用



 OnClick函数:
Label1.Text = FileUpload1.FileName;





任何人都知道为什么以及如何解决它

解决方案

当您尝试上传大文件时会出现此问题。

参考 - ASP.NET网页不可用 [ ^ ]。

引用:

我的朋友帮我搞清楚了。这是因为ASP.NET只允许上传4MB大小。我必须进入web.config或machine.config文件并将MaxRequestLength的值更改为大于4096.这解决了它。

因此,您需要在Web Config中定义最大大小。


when I am trying to upload some of video or audio file.

OnClick on the upload button its redirect me to "This webpage is not available"

OnClick function :
Label1.Text = FileUpload1.FileName;



anyone know why and how to solve it

解决方案

This issue comes when you try to upload large File.
Refer - ASP.NET Web Page Not Available[^].

Quote:

My friend helped me figure it out. It was because ASP.NET only allowed uploads of 4MB sizes. I had to go into the web.config or the machine.config file and change the value of MaxRequestLength to be larger than 4096. This solved it.

So, you need to define the max size in Web Config.


这篇关于上传文件asp.net后页面不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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