473,785 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ERROR - no error information available

Hi,

I using this code, to connect with a paradox file with ASP.NET. The first
time its connect ok, but others times occurs the error:

"ERROR - no error information available"

I close all connection, and this error yet occurs.

Someone knows why this ?

Thanks,
Ricardo
Connection strirng content:
=============== ===

"Driver={Micros oft Paradox Driver (*.db )};DriverID=538 ;Fil=Paradox
5.X;DefaultDir= c:\inetpub\wwwr oot\fafire\web\ graduacao_pagam ento\dados\;Dbq =c:\inetpub\www root\fafire\web \graduacao_paga mento\dados\;Co llatingSequence =ASCII"

Code executed when the button is clicked
=============== =============
Private Sub CustomValidator 1_ServerValidat e(ByVal source As System.Object,
ByVal args As System.Web.UI.W ebControls.Serv erValidateEvent Args) Handles
CustomValidator 1.ServerValidat e

Dim PathAux As String = Server.MapPath( "Web.config ")
Dim PathRoot As String = PathAux.Substri ng(0,
PathAux.IndexOf ("Web.config "))
Dim PastaDados As String = "BD" & Session("ano") &
Session("semest re")

Dim strConString As String = "Driver={Micros oft Paradox Driver
(*.db )};" & _
"DriverID=5 38;" & _
"Fil=Parado x 5.X;" & _
"DefaultDir =" & PathRoot & "dados\;" & _
"Dbq=" & PathRoot & "dados\;" & _
"CollatingSeque nce=ASCII"
Dim objConn As New Odbc.OdbcConnec tion(strConStri ng)
Dim objCmd As New Odbc.OdbcComman d
Dim objDr As Odbc.OdbcDataRe ader

Try
objConn.Close()
objConn.Open()
objCmd.Connecti on = objConn
'============== =============== =============== =============== ============
' Validando Matricula e CPF
'============== =============== =============== =============== ============
objCmd.CommandT ype = CommandType.Tex t
objCmd.CommandT ext = "select
a.alu_nome,a.al u_end,a.alu_num ,a.alu_compl,a. alu_bai,a.alu_c id,a.alu_est,
a.alu_cep,d.cus _cod,d.cus_nome from ALU20052 as a, MAT20052 as c, cursos as
d where c.mat_alun = '" & Trim(txtNrMatr. Text) & "' and a.alu_cpf = '" &
Trim(txtNrCPF.T ext) & "' and c.mat_alun = a.alu_matr and a.alu_cur =
d.cus_cod"
objDr = objCmd.ExecuteR eader(CommandBe havior.CloseCon nection)
If objDr.Read Then ' Matricula Válida
Session("alu_no me") = Trim(objDr("alu _nome"))
Session("mat_al un") = Trim(txtNrMatr. Text)
Session("alun_c pf") = Trim(txtNrCPF.T ext)
Session("alu_en d") =
Trim(oFafire.va lidaDRText(objD r("alu_end")) )
Session("alu_nu m") =
Trim(oFafire.va lidaDRText(objD r("alu_num")) )
Session("alu_co mpl") =
Trim(oFafire.va lidaDRText(objD r("alu_compl")) )
Session("alu_ba i") =
Trim(oFafire.va lidaDRText(objD r("alu_bai")) )
Session("alu_ci d") =
Trim(oFafire.va lidaDRText(objD r("alu_cid")) )
Session("alu_es t") =
Trim(oFafire.va lidaDRText(objD r("alu_est")) )
Session("alu_ce p") =
IIf(Trim(oFafir e.validaDRText( objDr("alu_cep" ))) = "", "50000-000",
Trim(oFafire.va lidaDRText(objD r("alu_cep")) ))
Session("cus_no me") = Trim(objDr("cus _nome"))
args.IsValid = True
Else ' Matricula Inválida
CustomValidator 1.ErrorMessage = "Matricula/CPF Incorreto"
args.IsValid = False
End If

Catch ex As System.Exceptio n
args.IsValid = False
Response.Redire ct("error.aspx? MensagemTexto=" & ex.Message.Trim
& "&MensagemPagin aRetorno=mensal idade_pagamento _entrada.aspx", False)

Finally
If objConn.State = ConnectionState .Open Then objConn.Close()
objConn.Dispose ()
objCmd.Dispose( )
If Not IsNothing(objDr ) Then objDr.Close()
objDr = Nothing
End Try

End Sub

Nov 19 '05 #1
2 2443
Funny .. with "No Error Information" it is kinda impossible to tell exactly
what is going wrong .. except .. that error is definitely occurring outside
of .NET i..e inside your Odbc driver.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------
---------------

"Ricardo Magalhães" <ri*********@ho tmail.com> wrote in message
news:#0******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I using this code, to connect with a paradox file with ASP.NET. The first
time its connect ok, but others times occurs the error:

"ERROR - no error information available"

I close all connection, and this error yet occurs.

Someone knows why this ?

Thanks,
Ricardo
Connection strirng content:
=============== ===

"Driver={Micros oft Paradox Driver (*.db )};DriverID=538 ;Fil=Paradox
5.X;DefaultDir= c:\inetpub\wwwr oot\fafire\web\ graduacao_pagam ento\dados\;Dbq =
c:\inetpub\wwwr oot\fafire\web\ graduacao_pagam ento\dados\;Col latingSequence= A
SCII"
Code executed when the button is clicked
=============== =============
Private Sub CustomValidator 1_ServerValidat e(ByVal source As System.Object, ByVal args As System.Web.UI.W ebControls.Serv erValidateEvent Args) Handles
CustomValidator 1.ServerValidat e

Dim PathAux As String = Server.MapPath( "Web.config ")
Dim PathRoot As String = PathAux.Substri ng(0,
PathAux.IndexOf ("Web.config "))
Dim PastaDados As String = "BD" & Session("ano") &
Session("semest re")

Dim strConString As String = "Driver={Micros oft Paradox Driver
(*.db )};" & _
"DriverID=5 38;" & _
"Fil=Parado x 5.X;" & _
"DefaultDir =" & PathRoot & "dados\;" & _ "Dbq=" & PathRoot & "dados\;" & _
"CollatingSeque nce=ASCII"
Dim objConn As New Odbc.OdbcConnec tion(strConStri ng)
Dim objCmd As New Odbc.OdbcComman d
Dim objDr As Odbc.OdbcDataRe ader

Try
objConn.Close()
objConn.Open()
objCmd.Connecti on = objConn
'============== =============== =============== =============== ============ ' Validando Matricula e CPF
'============== =============== =============== =============== ============ objCmd.CommandT ype = CommandType.Tex t
objCmd.CommandT ext = "select
a.alu_nome,a.al u_end,a.alu_num ,a.alu_compl,a. alu_bai,a.alu_c id,a.alu_est,
a.alu_cep,d.cus _cod,d.cus_nome from ALU20052 as a, MAT20052 as c, cursos as d where c.mat_alun = '" & Trim(txtNrMatr. Text) & "' and a.alu_cpf = '" &
Trim(txtNrCPF.T ext) & "' and c.mat_alun = a.alu_matr and a.alu_cur =
d.cus_cod"
objDr = objCmd.ExecuteR eader(CommandBe havior.CloseCon nection)
If objDr.Read Then ' Matricula Válida
Session("alu_no me") = Trim(objDr("alu _nome"))
Session("mat_al un") = Trim(txtNrMatr. Text)
Session("alun_c pf") = Trim(txtNrCPF.T ext)
Session("alu_en d") =
Trim(oFafire.va lidaDRText(objD r("alu_end")) )
Session("alu_nu m") =
Trim(oFafire.va lidaDRText(objD r("alu_num")) )
Session("alu_co mpl") =
Trim(oFafire.va lidaDRText(objD r("alu_compl")) )
Session("alu_ba i") =
Trim(oFafire.va lidaDRText(objD r("alu_bai")) )
Session("alu_ci d") =
Trim(oFafire.va lidaDRText(objD r("alu_cid")) )
Session("alu_es t") =
Trim(oFafire.va lidaDRText(objD r("alu_est")) )
Session("alu_ce p") =
IIf(Trim(oFafir e.validaDRText( objDr("alu_cep" ))) = "", "50000-000",
Trim(oFafire.va lidaDRText(objD r("alu_cep")) ))
Session("cus_no me") = Trim(objDr("cus _nome"))
args.IsValid = True
Else ' Matricula Inválida
CustomValidator 1.ErrorMessage = "Matricula/CPF Incorreto"
args.IsValid = False
End If

Catch ex As System.Exceptio n
args.IsValid = False
Response.Redire ct("error.aspx? MensagemTexto=" & ex.Message.Trim & "&MensagemPagin aRetorno=mensal idade_pagamento _entrada.aspx", False)

Finally
If objConn.State = ConnectionState .Open Then objConn.Close()
objConn.Dispose ()
objCmd.Dispose( )
If Not IsNothing(objDr ) Then objDr.Close()
objDr = Nothing
End Try

End Sub

Nov 19 '05 #2
Hi Ricardo.

I understood that the connecrion is going ok, but at some isam drivers, the
connection only occurs when the real table is accessed.

So the problem still could be connection string, if you cant make a sql
"select" on a table.

I suggest you to create a file with "udl" extension on your desktop, then
double click
on the icon to configure the connection string to the paradox folder.

Wil be shown the properties to connect via paradox to the tables.
Configure all options needed and confirm to save and close.

Edit the file with nodepad and compare the connection string with the ADO.Net
connection string. Maybe with this you can detect any problem on your
connection string.

Fabio dos Santos Fernandes
MCAD.Net
WiseNetworks tecnologia
www.wisenetworks.com.br
Cause

"Ricardo Magalhães" escreveu:
Hi,

I using this code, to connect with a paradox file with ASP.NET. The first
time its connect ok, but others times occurs the error:

"ERROR - no error information available"

I close all connection, and this error yet occurs.

Someone knows why this ?

Thanks,
Ricardo
Connection strirng content:
=============== ===

"Driver={Micros oft Paradox Driver (*.db )};DriverID=538 ;Fil=Paradox
5.X;DefaultDir= c:\inetpub\wwwr oot\fafire\web\ graduacao_pagam ento\dados\;Dbq =c:\inetpub\www root\fafire\web \graduacao_paga mento\dados\;Co llatingSequence =ASCII"

Code executed when the button is clicked
=============== =============
Private Sub CustomValidator 1_ServerValidat e(ByVal source As System.Object,
ByVal args As System.Web.UI.W ebControls.Serv erValidateEvent Args) Handles
CustomValidator 1.ServerValidat e

Dim PathAux As String = Server.MapPath( "Web.config ")
Dim PathRoot As String = PathAux.Substri ng(0,
PathAux.IndexOf ("Web.config "))
Dim PastaDados As String = "BD" & Session("ano") &
Session("semest re")

Dim strConString As String = "Driver={Micros oft Paradox Driver
(*.db )};" & _
"DriverID=5 38;" & _
"Fil=Parado x 5.X;" & _
"DefaultDir =" & PathRoot & "dados\;" & _
"Dbq=" & PathRoot & "dados\;" & _
"CollatingSeque nce=ASCII"
Dim objConn As New Odbc.OdbcConnec tion(strConStri ng)
Dim objCmd As New Odbc.OdbcComman d
Dim objDr As Odbc.OdbcDataRe ader

Try
objConn.Close()
objConn.Open()
objCmd.Connecti on = objConn
'============== =============== =============== =============== ============
' Validando Matricula e CPF
'============== =============== =============== =============== ============
objCmd.CommandT ype = CommandType.Tex t
objCmd.CommandT ext = "select
a.alu_nome,a.al u_end,a.alu_num ,a.alu_compl,a. alu_bai,a.alu_c id,a.alu_est,
a.alu_cep,d.cus _cod,d.cus_nome from ALU20052 as a, MAT20052 as c, cursos as
d where c.mat_alun = '" & Trim(txtNrMatr. Text) & "' and a.alu_cpf = '" &
Trim(txtNrCPF.T ext) & "' and c.mat_alun = a.alu_matr and a.alu_cur =
d.cus_cod"
objDr = objCmd.ExecuteR eader(CommandBe havior.CloseCon nection)
If objDr.Read Then ' Matricula Válida
Session("alu_no me") = Trim(objDr("alu _nome"))
Session("mat_al un") = Trim(txtNrMatr. Text)
Session("alun_c pf") = Trim(txtNrCPF.T ext)
Session("alu_en d") =
Trim(oFafire.va lidaDRText(objD r("alu_end")) )
Session("alu_nu m") =
Trim(oFafire.va lidaDRText(objD r("alu_num")) )
Session("alu_co mpl") =
Trim(oFafire.va lidaDRText(objD r("alu_compl")) )
Session("alu_ba i") =
Trim(oFafire.va lidaDRText(objD r("alu_bai")) )
Session("alu_ci d") =
Trim(oFafire.va lidaDRText(objD r("alu_cid")) )
Session("alu_es t") =
Trim(oFafire.va lidaDRText(objD r("alu_est")) )
Session("alu_ce p") =
IIf(Trim(oFafir e.validaDRText( objDr("alu_cep" ))) = "", "50000-000",
Trim(oFafire.va lidaDRText(objD r("alu_cep")) ))
Session("cus_no me") = Trim(objDr("cus _nome"))
args.IsValid = True
Else ' Matricula Inválida
CustomValidator 1.ErrorMessage = "Matricula/CPF Incorreto"
args.IsValid = False
End If

Catch ex As System.Exceptio n
args.IsValid = False
Response.Redire ct("error.aspx? MensagemTexto=" & ex.Message.Trim
& "&MensagemPagin aRetorno=mensal idade_pagamento _entrada.aspx", False)

Finally
If objConn.State = ConnectionState .Open Then objConn.Close()
objConn.Dispose ()
objCmd.Dispose( )
If Not IsNothing(objDr ) Then objDr.Close()
objDr = Nothing
End Try

End Sub

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2681
by: Eric Lilja | last post by:
Hello, I'm a novice C++ programmer and now I have the task of converting a number of C++ functions to C. Some of the functions I'm converting takes a parameter of type reference-to-std::string that stores verbose error information if an error occurs in the function. How should I implement that in C? A pointer to a fixed-size array of chars runs the risk of overflowing. Having the function take a char** and allocate memory as
10
2725
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was closed. Could not establish a trust relationship with the remote server.
2
91073
by: Janna Deegan | last post by:
Hello all, First off, if there is a better place to post for an answer to this question, please feel free to point me there. I have some very strange behavior happening with my System.web.mail objects. I was able to run my application fine for roughly 1500 email messages. The next time I tried sending mail, it stopped working with the message: "
5
9652
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the...
9
3226
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on CDOmail. I don't want to use the Outlook reference because outlook prompts each time program access it and I have found a way to disable that. Can I use webmail with exchange? Thanks
6
1525
by: Calligra | last post by:
have a form which looks at the title of the workbook saved on a different workbook, determines whether or not information has been inputted previously and then asks the user if the information is still correct. The code works beautifully until the message box is displayed. If the user chooses, no, then the code proceeds without error. Only if the user chooses yes is a "Run-time error '91': Object variable or With block variable not set"...
0
23511
by: HKSHK | last post by:
This list compares the error codes used in VB.NET 2003 with those used in VB6. Error Codes: ============ 3: This Error number is obsolete and no longer used. (Formerly: Return without GoSub) 5: Procedure call or argument is not valid. 6: Overflow. 7: Out of memory.
2
2208
by: sunnyko | last post by:
Dear all I am using asp.net in a Small Business Server to send email out ! The programe work fine in XP but show the following error in Small Business Server. I don't know why.... Sunny Server Error in '/email' Application.
10
6978
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c. Not sure where went wrong as the web page displayed internal server error. Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
3
10824
by: imaloner | last post by:
I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working, commercially sold application with only partial build instructions. The previous maintainer of the code (a mixture of C and C++) is no longer with the company, but when he built the code he used MSVC++, and though I am not certain of the version he was ...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.