error code (e0434f4dh)
By any chance, that wasn't "Unhandled e0434f4dh exception" or something? Look's more like an address...
The issue with this is that
- you have no Try Catch block on your own, which could inform you about exceptions caught.
- you haven't produced an error report (dmpuserinfo.xml in your temp dir might contain more info)
- looking at your code, a few thing strike me as non-standard:
If IsNothing(myPNER.ObjectId) = False Then
The customary way to check for success of ed.GetXXX() methods is by PromptStatus.
If (myPNER.Status = PromptStatus.OK) Then
myTrans.Dispose()
It is considered good manners to commit as well, and wrap the scope with Try/Finally.
Try
...
myTrans.Commit()
Finally
myTrans.Dispose()
myTransMan.Dispose()
Why would you want to do that?