Okay, I added back in the Try - Catch- Finally - End Try and tried adding this:
Catch ex As Exception
Dim str As String
str = "Source : " & ex.Source
str &= ControlChars.NewLine
str &= "Exception Message : " & ex.Message...
I removed the Try - Catch -Finally - End Try from the code. It runs perfectly everytime while in debug mode. In Live, it runs perfectly one out of every two tries it seems and then fails silently (no error) the other 50% of the time.
I'm working in Visual Studio 2012 and I'm running this code to insert a row into a history database when a field on an asp.net page is changed. It seems to work 1 out of every three times I test it without debug on - and has absolutely no problems when running in debug mode (which made me think...
you are right, it doesn't seem to be working correctly. Sometimes the code works and sometimes it doesn't do anything. I had added "System.Threading.Thread.Sleep(3000)" throughout my code (playing with the times in some places, until it seemed to be working) - but it still isn't consistent...
I'm having and issue that my code works perfectly while in debug mode, but does nothing in live. I don't receive any errors - it just doesn't insert the row into the database.
-NEVERMIND it needed to add a "Wait" function so the values could catch up.
Hi, I am very new to programming in visual basic. I'm working on an asp.net page and I have a value I'm pulling from a sqlserver database named "LastUpdatedDate" this is coming over as a string which I'm then trying to put into a datetime format so I can run a search for that same time in...