IIS和asp.net中的上传问题 [英] IIS and uploading issue in asp.net

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

问题描述

大家好,

从过去的40个小时开始,我面临着奇怪的问题.
我有一个使用asp.net 3.5和后端作为sql server 2008的应用程序.
有一个页面,我将excel文件加载到gridview,然后将数据从gridview上传到sql server.
它在IIS上也可以在本地计算机上完美运行.

问题是:
多次上传excel文件后,出现错误.
错误是:初始化oledbconnectioncomes时出现system.exception错误,一旦重置IIS,它就会消失.

请提出一些有价值的技巧/解决方案来解决此问题,因为一次又一次地重置IIS是不可行的.

出现的错误: System.Exception:初始化oledbconnection时出错

谢谢

Hi all,

From last 40 hours i am facing weird issue.
I have an application with asp.net 3.5 and back end as sql server 2008.
There is a page on which i am loading excel file to gridview and then uploading data from gridview to sql server.
It works perfectly on local machine, also on IIS.

Issue is:
After uploading excel file multiple times i get error.
Error is: system.exception error in initializing oledbconnectioncomes and it goes once i reset IIS.

Please suggest some valuable tips/solution to solve this as it is not feasible to reset IIS again and again.

Error that comes: System.Exception: error in initializing oledbconnection

Thanks

推荐答案

plz检查您的web.config文件
可能是间距问题,例如:connectionString ="Data Source等.
plz check your web.config file
may be spacing problem such as: connectionString="Data Source etc.


这篇关于IIS和asp.net中的上传问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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