Click here to Skip to main content
15,903,033 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionProblem with Mutiple nested splitter containers Pin
uribraun11-Dec-07 2:33
uribraun11-Dec-07 2:33 
GeneralRe: Problem with Mutiple nested splitter containers Pin
Paul Conrad19-Jan-08 12:20
professionalPaul Conrad19-Jan-08 12:20 
Generalproblem convert from char to stream Pin
david bagaturia10-Dec-07 21:09
david bagaturia10-Dec-07 21:09 
GeneralRe: problem convert from char to stream Pin
Colin Angus Mackay10-Dec-07 22:45
Colin Angus Mackay10-Dec-07 22:45 
Generalproblem with two dimensional array Pin
Meenge10-Dec-07 20:42
Meenge10-Dec-07 20:42 
GeneralRe: problem with two dimensional array Pin
ayiteyashley10-Dec-07 22:35
ayiteyashley10-Dec-07 22:35 
GeneralRe: problem with two dimensional array Pin
Meenge11-Dec-07 15:55
Meenge11-Dec-07 15:55 
GeneralSystem.Transactions for .Net 2.0 Pin
ayiteyashley10-Dec-07 5:16
ayiteyashley10-Dec-07 5:16 
Is there anybody out there who could help me please.

I am trying to make use of the Transactionscope to implicitly create a transaction. This transaction should roll back when a condition is not met. It doesn't seem to work for me even though i have started the msdtc service. My function inserts a row in an oracle database using the DI.CreateTemplate. Now i want it to roll back the insert when the Attach_ID_To_Invoice_Batch process is not sucessful.


Dim DI As New DataLayer.Invoice
Dim intRetVal As Integer = -1
Dim options As New Transactions.TransactionOptions

options.IsolationLevel = System.Transactions.IsolationLevel.ReadCommitted
Try
Using scope As Transactions.TransactionScope = New Transactions.TransactionScope(Transactions.TransactionScopeOption.Required, options)
'If Not IsDoumentAllocated(EntryID) Then
intRetVal = DI.CreateTemplate(oTemplate, strTemplateName, enumTemplateType, UserID, -1, -1, "")
If intRetVal <>0 Then
If Attach_ID_To_Invoice_Batch(intRetVal, EntryID) Then
scope.Complete()
Else
intRetVal = -2
End If
Else
intRetVal = -1
End If
'End If
End Using
Catch ex As Exception
Return intRetVal
End Try


Could somebody please go through this code and let me know what i am missing.
QuestionNunit sql server database connectivity - it gives error - system.data.sqlclient.sqlexception - SQl server does not eexists or access denied [modified] Pin
ritika10-Dec-07 1:54
ritika10-Dec-07 1:54 
GeneralRe: Nunit sql server database connectivity - it gives error - system.data.sqlclient.sqlexception - SQl server does not eexists or access denied Pin
Paddy Boyd10-Dec-07 2:35
Paddy Boyd10-Dec-07 2:35 
GeneralRe: Nunit sql server database connectivity - it gives error - system.data.sqlclient.sqlexception - SQl server does not eexists or access denied Pin
DigiOz Multimedia10-Dec-07 4:42
DigiOz Multimedia10-Dec-07 4:42 
GeneralSQL Server 2005 by default is not visible from outside Pin
Luis Alonso Ramos11-Dec-07 15:00
Luis Alonso Ramos11-Dec-07 15:00 
GeneralGUI upgrade Pin
epitalon8-Dec-07 6:08
epitalon8-Dec-07 6:08 
GeneralRe: GUI upgrade Pin
TJoe10-Dec-07 17:27
TJoe10-Dec-07 17:27 
GeneralRe: GUI upgrade Pin
epitalon211-Dec-07 7:11
epitalon211-Dec-07 7:11 
GeneralRe: GUI upgrade Pin
TJoe11-Dec-07 7:29
TJoe11-Dec-07 7:29 
GeneralRe: GUI upgrade Pin
epitalon18-Dec-07 3:19
epitalon18-Dec-07 3:19 
General/nostdlib + value type mismatch Pin
Klaus8-Dec-07 4:16
Klaus8-Dec-07 4:16 
General.NET Languages and Namespaces Pin
.NET- India 7-Dec-07 23:30
.NET- India 7-Dec-07 23:30 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:01
pmarfleet8-Dec-07 0:01 
GeneralRe: .NET Languages and Namespaces Pin
.NET- India 8-Dec-07 0:16
.NET- India 8-Dec-07 0:16 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:23
pmarfleet8-Dec-07 0:23 
GeneralRe: .NET Languages and Namespaces Pin
.NET- India 8-Dec-07 0:37
.NET- India 8-Dec-07 0:37 
GeneralRe: .NET Languages and Namespaces Pin
pmarfleet8-Dec-07 0:48
pmarfleet8-Dec-07 0:48 
GeneralRe: .NET Languages and Namespaces Pin
Kevin McFarlane8-Dec-07 9:34
Kevin McFarlane8-Dec-07 9:34 

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.