且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

正在获取远程服务器返回错误:(500)内部服务器错误.

更新时间:2022-01-26 08:41:55

我找到了答案.

Computer.network.Uploadfile()的最大大小在2个地方定义.

1. web.config文件.
参数为maxRequestLength.

默认情况下,maxRequestLength为10 MB.

我将其增加到30 MB,并成功上传了20 MB的视频文件.


2.在IIS中有请求过滤器.

将最大允许大小设置为所需大小.



web.config也具有超时参数.默认情况下为2分钟.


问候,

Vijay
I have found the answer.

The maximum size for the Computer.network.Uploadfile() is defined in 2 places.

1. web.config file.
Parameter is maxRequestLength.

By default maxRequestLength is 10 MB.

I increased it to 30 MB and sucessfully uploaded 20 MB video file.


2. In IIS there is request filter.

Set the maximum allowed size to required size.



web.config also has timeout parameter. By default it is 2 mins.


Regards,

Vijay