将视频的网址存储在数据库中需要太多时间 [英] taking video's url to store in database takes too much time

查看:147
本文介绍了将视频的网址存储在数据库中需要太多时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用asp .net中的FileUpload控件拍摄视频的url.然后,我将此URL添加到数据库中.但是,当我执行此操作时,操作会花费太多时间,并且会失败并且没有任何错误消息.我正在使用相同的C#代码和相同的数据库表以及相同的图像字段执行相同的操作,效果很好.我想问题来自IIS,但我不知道如何解决.有什么想法或解决方案吗?

我在web.config文件中使用以下代码:

Hi,

I''m taking video''s url with FileUpload control in asp .net . And then I add this url to database. But when I''m doing this operation, operation takes too much time and becomes fail without any error message. I''m doing same operation with same c# code and same database table with same field for images, it''s working very well. I guess problem comes from IIS but I don''t know how to solve it. Is there any idea or solution?

I use following code in web.config file:

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



谢谢.



Thanks.

推荐答案

我用以下代码解决了这个问题:

I solved the problem with this code:

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





maxAllowedContentLength=&quot;1073741824

这是指1GB的文件大小.

this is refer to 1GB file size.


Hi,

just create a folder named upload in inetpub->wwwroot. save the file in that folder when you upload a file.


您是否选中了@page中的enableviewstate选项设置为true或false,如果为true,则将其设置为false.
did you checked the enableviewstate option in @page is set to true or false if it is true then make it false.


这篇关于将视频的网址存储在数据库中需要太多时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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