1

I'm taking video's url by FileUpload control in Asp .Net .Then I add this url to database for retrieving another asp .net web page. My problem is when I take picture url same way it takes short time but when I take video's url to store in database is taking too much long time and operation become fail without any error message. I guess problem comes from IIS but I don't know how to solve.
I use this code in web.config file.

<httpRuntime targetFramework="4.5" maxRequestLength="1048576" executionTimeout="3600"/>
4

1 回答 1

1

我通过更改 web.config 文件解决了这个问题,如下所示:

 <security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="1073741824" />
    </requestFiltering> 
 </security>

maxAllowedContentLength="1073741824" --> 这指的是 1GB 文件大小。

于 2012-10-15T11:44:34.627 回答