获取错误: - System.Data.DataTableCollection.get_Item(Int32 index) [英] Getting Error :- System.Data.DataTableCollection.get_Item(Int32 index)

查看:908
本文介绍了获取错误: - System.Data.DataTableCollection.get_Item(Int32 index)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用asp.net和sql server 2008 r2创建了一个应用程序,另外我们使用应用程序状态来填充下拉列表,其中包含国家,城市等常见信息。

应用程序正常工作开发环境,但是当我们在Web服务器上发布我们的应用程序时,它会抛出错误: -



在System.Data.DataTableCollection.get_Item(Int32 index)
$ b $ DA在DAUser.cs的ZlineDA.DAUser.UserAuthentication(BOUserCredentials objBOUserCredentials):第67行。一个问题导致另一个问题导致应用程序停止工作



场景: - 之前错误

下拉列表1)国家: - 印度,新加坡



功能1)geRefNumber(): - (REF001)工作正常





: - 错误后

下拉列表1)国家: - Nhava Sheva,Mundra等..

函数1)getRefNumber(): - 找不到表0.



但我们重新突然出错了刷新我们的应用程序(或修改web.config)

下拉列表1)国家: - 印度,新加坡

功能1)geRefNumber(): - (REF001)工作正常



我们有专用的web服务器,带有windows server server 2008 r2,安装了sql server 2008 r2

请为我们提供快速解决方案。

谢谢你,提前..

We have created an application using asp.net and sql server 2008 r2 ,plus we use application state to fill dropdown list with common info like country,city etc..
the application working fine on development environment but when we publish our application on web server it throw Error :-

at System.Data.DataTableCollection.get_Item(Int32 index)
at ZlineDA.DAUser.UserAuthentication(BOUserCredentials objBOUserCredentials) in at DAUser.cs:line 67.one problem leads to another and application stop working

Scenario :- before error
Dropdown list 1) country :- India , Singapore

Function 1) geRefNumber() :- (REF001) Working fine


:- After Error
Dropdown List 1) country:- Nhava Sheva , Mundra etc..
function 1) getRefNumber() :- Cannot find table 0.

but error suddenly out when we refreshed our application (or modified web.config)
Dropdown list 1) country :- India , Singapore
Function 1) geRefNumber() :- (REF001) Working fine

we have dedicated web server with window web server 2008 r2 installed with sql server 2008 r2
please provide us quick solution.
thank you and advance..

推荐答案

这篇关于获取错误: - System.Data.DataTableCollection.get_Item(Int32 index)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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