Error Reporting In Applications?
Jul 18, 2010It may be a weird question but it's there a possibility to send an e-mail after an pplication has crashed?
View 3 RepliesIt may be a weird question but it's there a possibility to send an e-mail after an pplication has crashed?
View 3 RepliesI have created a vb application connected to MS Database. I have used try..catch statements to trap exceptions and display messages on the error found, but the problem is that these messages are too technical for the end users to understand. Is there a way of retrieving the error number or code of that exceptions thrown so that i can customize the message for the users?
View 3 RepliesDoes anyone know of any open source ETL applications written in either vb or c#?I am looking for some or all the features below:
* Read text files and have the ability to split files.
* Suppress records for failing validation rules.
* Transform values.
* Output the resulting data source to either one or many files and or database tables.
[code]....
i get this error when i try to publish my application.I downloaded CAPICOM 2.1.0.2 and copied the CAPICOM.dll but nothing happened
View 1 RepliesA network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) error: 26 - Error Locating Server/Instance Specified.
This error is doing my head in.I have a client running Windows XP SP3 logged into a domain. It is running MS VB 2010 Express to access the server.I have a Server called dataserver3 which from the client, I can do a start, run "\Dataserver3" and it comes up and yes I can browse to the Test.mdf file, which is a new database that was created using MS SQL Server 2008 R2 Standard edition.
[Code]...
I get the following error when I try to access a asp.net application on my local machine.HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070021
[code]....
I have made a smtp client in c# and I use this code to split a string that contains multiple recipients.
foreach (var n in txtSendTo.Text.Split(';'))
{
mail.To.Add(n);
[code].....
im building an application i started it in VB 2008 and i upgraded to VB 2010
then i made some mods and tryed to run the application and then
i get this error
Error2Reference required to assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.Windows.Forms.Form'. Add one to your project.C:UsersAdminDesktop
[Code].....
I am working on a project that is used for key broadcasting. Don't worry nothing illegal, I'm making a multibox application for world of warcraft. However I am having trouble when it comes to launching and manipulating other applications from another.
[Code]...
I am getting an error saying that I don't have for For, for my Next statment. It looks like it doesn't even finnish the initial compile. What is going on?
Code:...................
I am creating a vb program with mysql dataase. i keep getting a sql synthax error.
Here's my code:
CODE:
is there an easier way to debug it?
I have an error at olapAdaptor.Fill(ds).It's out of memory error.I tried to dispose, set to nothing,... but no results. Can someone please look at my code and help me where I do it wrong.The code opens a database and exports all the tables in ascii format seperated by vbtab. The code is working, but now if I have a lot of tables to export.That's where the error bumps out.[code].....
View 5 RepliesI added a parameter to the rdlc called paramTitleThen I tried this as a demo
Code:
Dim params(0) As Microsoft.Reporting.WinForms.ReportParameter
[code]....
Well here I am again, could really use some expert eyes on this. I've got an update statement for access 2007 and when I run it it's giving me a "No value given for one or more required parameters." error. I've spent at least 2 hours on this now and searched all over the place and none of the suggestions I found are fixing it. I've got an insert statement to the same table that works fine, I took this same syntax for the update statement from another project where it was working perfectly. I've verified the spelling of the table and column names, As best as I can tell there are no reserved keywords being used and I've eliminated any spacing from the names. I've even tried updating a single row with no variables, just like for like data directly from the table and it still throws the error.
Code:
Dim DAEdit As New OleDbDataAdapter
Dim update As New OleDbCommand("UPDATE ActiveContracts " & _
[code].....
I am trying to upgrade a VB6 application to vb2008 Express and on all of my ADO requeries I get an unhandled message "Operation is not allowed when the form is open" which doesn't make a bit of sence to me. I have an ADO Data control which is bound to a data grid and when the form is loaded I initialize the ADO Data Control using such statements as:strSQL = "SELECT * FROM MyTable WHERE site = " & sCurrentSite
Me.Adodc2.RecordSource = strSQL
Me.Adodc2.Recordset.Requery()
Me.Adodc2.Refresh()
[code].....
I get an error using the connection string (url...) to connect to my SQL CE saying that "Provider 'Microsoft.SqlServerCe. Client.3.5' is not registered in the local PC.".In my project I have a table connected (with the wizard) to the same database and it works fine, but when i try to connect with my own code it FAIL. [code]
View 1 RepliesI am trying to add an Access DataBase to my program as a datasource for a project.I am building in VB 2008. When I select which tables I would like to import I am getting an error that reads "Failed to add relation(s). Unexpected Error."I cheked my Database and my programming code NO Errors where found in there.Im working on windows Vista (maby a problem
View 1 RepliesI built a database from an .sql script file in Microsoft SQL Server 2008 Express Management Studio.Now, I need to connect an application I'm developing to this database. So in Visual Basic 2008 Express (that's what I use) I go to:
Data-->Add New Data Source-->Database-->New Connection
In the dialog which pops up (name: Add Connection) I set:
Data Source = Microsoft SQL Server Database File
[code]....
i debug my code it says that i have a syntax error in Insert into statement and it highlights the
da.Update(ds,"MovieData") command ?? Why isn't this working?
[Code]...
I am working on a very simple application in Visual Basic 2008 Express.
The program has a Listview where I display the "DisplayName" field, the user clicks on a name and this should fill 3 text boxes. The code is:
strSQL = "SELECT FName, LName, DisplayName FROM tStaff WHERE DisplayName=@DisplayName;"
Dim conn As New OleDbConnection(strConnString)
[Code]....
This produces the error "Parameter @DisplayName" has no defaul value"
The value of the variable "strDisplayName" is correctly captured.
I try to update my data into Access using VB but I got the following error "Syntax error in UPDATE statement." [code]
View 4 RepliesYes its me again with yet another problem Ok so I've now gotten round to trying to display some data from my database and displaying it in a DataGridView Heres the critical part
[Code]...
Hi everyone. I havent used VB for about 4 years so I am trying to refresh my memory for a project I am doing. I want to link it to an Access database and have the following code:
[
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click
Dim sqlstring As String
Dim conconnection As New ADODB.Connection
Dim cmdCommand As New ADODB.Command
Dim rstrecordset As New ADODB.Recordset
conconnection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
App.Path & "" & "database1.accdb;Mode=Read|Write"
conconnection.CursorLocation = adUseClient
conconnection.Open()
With cmdCommand
.ActiveConnection = conconnection
.CommandText = "SELECT * FROM tblRegister;"
.CommandType = adCmdText
End With
With rstrecordset
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open(cmdCommand)
End With
]
However when I run the program I get the following error messages:
error BC30451: Name 'App' is not declared.
error BC30451: Name 'adUseClient' is not declared.
error BC30451: Name 'adCmdText' is not declared.
error BC30451: Name 'adOpenStatic' is not declared.
error BC30451: Name 'adUseClient' is not declared.
error BC30451: Name 'adLockOptimistic' is not declared.
Is there some sort of Add-In or reference I need to add? I can't remember how I did it last time!
Thank you
Amy
There is a connection in my program to SQL Server and there is a query which is bound to a combo box, to pull out values from the database. For some reason, I get an error message during run-time, saying that the syntax is incorrect.
Here's the query:
'The SQL Command to be executed:
projs = New SqlCommand("use " & Me.ComboBox1.Text & "''" & _
"go" & _
"select name from projects where condition = 'Y'", cnn1)
cnn1 is the name of my SQL Client connection.
I use the following code to add a record but get the error:"Missing semicolon ( at end of SQL statement. " I removed the semicolon, placed it before the SELECT but it seems to continuously cause problems.
Quote:
Public Sub AddAccountRecord(ByVal name As String, ByVal type As String, ByVal user As String, ByVal balance As String)
Dim strSQL As String
Dim objConnection As New OleDbConnection(strConnection)
Dim objCommand As New OleDbCommand(strSQL, objConnection)
[code]....
I have an Access XP database with two linked tables and a maketable query. I need to first run the Query through VB 2005 and then get the data from the resulting table created. But I get an error when I run the query as follows. I am getting the SQL Select statement from the SQL view in MS access after I create my Maketable query So it should be ok. I am saving the select in a hidden text box on my form.The query text :
SELECT [SWX-Seats].[Asset #], [SWX-Seats].Account, [SWX-Seats].Product, [SWX-Seats].[Seat Id], [SWX-Seats].[Serial #], [SWX-Seats].Qty, [SWX-Seats].[Entitlement End Date], [SWX-Seats]![Entitlement End Date]-[NS-Seats]![Exp Date] AS DaysDiff, [NS-Seats].[Exp Date] INTO
[code].....
I have a code made in Visual.net 2005, and I have a problem. I have an excel file where I store records. I can read this records without problem, but when I want to make a modification I get the ERROR :
"Current Recordset does not support updating. This may be a limitation of the provider, or of the selected locktype"I hope you can help me, I know that by default the file is open as readonly, but I dont know where do I have to specify the opposite.
[Code]...
My program does not build because of the following error. I understand the part about a null value, to a degree, but the assigned value I'm not sure about. by clarifying it's meaning. To me, there's nothing obvious about why it's not working.
View 1 RepliesI have a problem with my (aspx.vb, aspx) program. Since my vb program require more than a day to make some data analysis. however, the page always run a long period(one hours exactly) will be downed and become cant display the page. i am wondering is it related to dns error?
View 3 RepliesI'm developing a chart that is frecuently updated.This chart works with a macro to display the period of time the user wish. The worksheet is protected because it can't be edit by the user. The user can just enter the dates between the period that he wants to be display by the chart. When I use the file on Excel 2003 its runs without any problem. But, when I use it on Excel 2006 or 2010 it gives me the following error:
Run-time error '-2147467259 (80004005)':Method 'MinimumScale' of object 'Axix' failed