Click here to Skip to main content
15,893,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Getting Session idleness time Pin
Sonia Gupta1-Jul-07 19:14
Sonia Gupta1-Jul-07 19:14 
GeneralRe: Getting Session idleness time Pin
raju12481-Jul-07 20:21
raju12481-Jul-07 20:21 
Questionauthentication in vb.net with asp.net Pin
Sonia Gupta1-Jul-07 18:57
Sonia Gupta1-Jul-07 18:57 
QuestionUploading Files Pin
Rahul Babu1-Jul-07 18:56
Rahul Babu1-Jul-07 18:56 
AnswerRe: Uploading Files Pin
koolprasad20031-Jul-07 23:26
professionalkoolprasad20031-Jul-07 23:26 
GeneralRe: Uploading Files Pin
.NetRams2-Jul-07 0:16
.NetRams2-Jul-07 0:16 
GeneralRe: Uploading Files Pin
koolprasad20032-Jul-07 19:39
professionalkoolprasad20032-Jul-07 19:39 
QuestionInternal .net Framework Data Provider Error 1. Pin
Sebastian T Xavier1-Jul-07 18:13
Sebastian T Xavier1-Jul-07 18:13 
Hi,

I have created a class in my business layer, that contains several functions that fetch data from database. For opening and closing connection i have used the constructor and destructor of the above class. The code segment below depicts that. But i have got an error when the application runs. It fires in the destructor, from the line
sqlcon.Close();<br />


The Error Message is...
Invalid operation exception was unhandled.

Internal .net Framework Data Provider Error 1

what could be the reason?
<br />
public DLNuERPMain()<br />
        {<br />
            sqlcon.ConnectionString = strConnNuERPv2;<br />
            if (sqlcon.State.ToString() == "Closed")<br />
            {<br />
                sqlcon.Open();<br />
            }<br />
        }<br />
        ~DLNuERPMain()<br />
        {<br />
            if (sqlcon.State.ToString() == "Open")<br />
            {<br />
                sqlcon.Close();<br />
            }<br />
        }<br />



awaiting for your valuable Suggestions........
Thanking you in advance

Sebastian
AnswerRe: Internal .net Framework Data Provider Error 1. Pin
Sathesh Sakthivel1-Jul-07 18:29
Sathesh Sakthivel1-Jul-07 18:29 
GeneralRe: Internal .net Framework Data Provider Error 1. Pin
Sebastian T Xavier1-Jul-07 19:43
Sebastian T Xavier1-Jul-07 19:43 
GeneralRe: Internal .net Framework Data Provider Error 1. Pin
Sathesh Sakthivel1-Jul-07 19:46
Sathesh Sakthivel1-Jul-07 19:46 
QuestionASP.NET and SQL Server 2000 problems Pin
anystudent1-Jul-07 18:06
anystudent1-Jul-07 18:06 
AnswerRe: ASP.NET and SQL Server 2000 problems Pin
postmaster@programmingknowledge.com1-Jul-07 18:17
postmaster@programmingknowledge.com1-Jul-07 18:17 
AnswerRe: ASP.NET and SQL Server 2000 problems Pin
Sathesh Sakthivel1-Jul-07 18:24
Sathesh Sakthivel1-Jul-07 18:24 
QuestionExcel GridView To Excel and and format the excel look Pin
Jia Fang1-Jul-07 17:02
Jia Fang1-Jul-07 17:02 
QuestionASP.Net Membership New Problem.... Pin
Amit Kumar G1-Jul-07 13:43
Amit Kumar G1-Jul-07 13:43 
AnswerRe: ASP.Net Membership New Problem.... Pin
Amit Kumar G1-Jul-07 14:25
Amit Kumar G1-Jul-07 14:25 
QuestionAsp.Net Membership Role Mgt Pin
Amit Kumar G1-Jul-07 12:33
Amit Kumar G1-Jul-07 12:33 
QuestionDataSets--Kindly Help... Pin
SrividhyaS1-Jul-07 8:32
SrividhyaS1-Jul-07 8:32 
AnswerRe: DataSets--Kindly Help... Pin
Not Active1-Jul-07 11:55
mentorNot Active1-Jul-07 11:55 
AnswerRe: DataSets--Kindly Help... Pin
Steve Echols1-Jul-07 17:43
Steve Echols1-Jul-07 17:43 
AnswerRe: DataSets--Kindly Help... Pin
.NetRams2-Jul-07 0:36
.NetRams2-Jul-07 0:36 
GeneralRe: DataSets--Kindly Help... Pin
Blumen2-Jul-07 1:07
Blumen2-Jul-07 1:07 
QuestionHow to use client side custom validator Pin
Hemant Garg1-Jul-07 6:19
Hemant Garg1-Jul-07 6:19 
AnswerRe: How to use client side custom validator Pin
Not Active1-Jul-07 7:35
mentorNot Active1-Jul-07 7:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.