473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Visual Studio Error R6034 when using Transaction Scope with File S

Very weird; I lost a day worth of work because of this problem.
I have an ASP.NET application written in VB that is using MySQL
database. Shortly, a page creates a Customer record in the database
and if successful, creates a directory on the web server. I was using
Transaction Scope to accomplish this action; here is the code excerpt:

' Initialize the return value to zero
Dim returnValue As Integer = 0
' Create a command string
Dim sSQLCommand As String
Try
Using scope As New TransactionScope()
Using connection1 As New
MySqlConnection(System.Configuration.Configuration Manager.ConnectionStringsÂ*("mysqlConnString").Con nectionString)
Try
' Build a query to execute
sSQLCommand = "DELETE FROM Customers WHERE
CustomerID = '" &
Me.gvCustomers.SelectedRow.Cells(eCUSTOMERSCOLUMNS .CustomerID).Text &
"' "
' Opening the connection automatically
enlists it in the
' TransactionScope as a lightweight
transaction.
connection1.Open()
' Create the MySqlCommand object and
execute the first command.
Dim command1 As MySqlCommand = New
MySqlCommand(sSQLCommand, connection1)
returnValue = command1.ExecuteNonQuery()
' Delete directory
System.IO.Directory.Delete(Me.gvCustomers.Selected Row.Cells(eCUSTOMERSCOLUMÂ*NS.DirectoryPhysicalPat h).Text,
True)
Catch ex As Exception
' Log error here
Throw New Exception("Error", ex)
End Try
End Using
' Success, empty the session variables
Session("selectedcustomerid") = String.Empty
Session("selectedcustomername") = String.Empty
' The Complete method commits the transaction. If
an exception has been thrown,
' Complete is called and the transaction is rolled
back.
scope.Complete()
End Using
Catch ex As Exception
' Log error here
End Try
I have checked the grid value for the DELETE statement and both path
and CustomerID were correct.
And one more thing; my web project was located on the external hard
drive.
What happened here is that I end up in the first Catch block with the
timeout and then I stopped the application. Then I got a weird
manifest error and a message to close VS because it is in 'unstable
state'. After I restarted VS, I get Error R6034 and after research, I
saw that most of my C:\Program Files\Microsoft Visual Studio 8 is
gone!!!
And a day later, I am running it again after I had to reinstall both
Visual Studio 2005 and SQL Server 2005 that was also installed on my
machine.
Anybody experienced anything similar to this and does anybody (maybe
Microsoft folks) have a possible explanation for this issue?
Thanks in advance,
Joe

Sep 29 '07 #1
0 1537

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

Similar topics

2
by: asterixgallier | last post by:
Hello i'm having problems with log4cxx when using inside an MFC application build with visual studio 2005. The Application starts and works normaly, but while exiting, inside the DEBUG window of...
3
PieCook
by: PieCook | last post by:
Error message: "The application has failed to start because MSVCR80.dll was not found. Re-installing the application may fix this problem." Basically, I recently purchased a game programming...
1
by: bharathreddy | last post by:
This Article gives an introduction to VSTS Team Foundation & fundamental difference between Visual Source Safe (VSS) and VSTS Team Foundation. Team Foundation is a set of tools and technologies...
1
by: =?Utf-8?B?Sm9l?= | last post by:
Very weird; I lost a day worth of work because of this problem. I have an ASP.NET application written in VB that is using MySQL database. Shortly, a page creates a Customer record in the database...
0
by: =?Utf-8?B?VWxmIFRob3JzZW4=?= | last post by:
I use Visual Studio 2005 for a C-project using an external compiler, and came up with the idea that error parsing would be neat, i.e. enabling the functionality available for a "normal" build...
0
by: whatazor | last post by:
Hi all, I have a problem with a project converted from visual studio .net 2003 to 2008. After severeal trivial con version it compile all and build all, but when I start my application there is an...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
2
by: blogman | last post by:
I am getting a Visual studio 2008 IDE application R6034 runtime error. This means that the IDE application is raising the error not the application I am building. This means that Microsoft did not...
8
lifeisgreat20009
by: lifeisgreat20009 | last post by:
What might be the possible cause ? I have created a website using struts framework, jsp In my transaction page the money is not getting transferred.. When I hit the submit button in my...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.