Message 1 of 4
WriteDsd method get exception randomly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am experiencing an issue that is quite weird, it happens randomly so I can not trace the cause.
In my code, when I create Dsd file using DsdData.WriteDsd method, sometimes I get this exception with the message "Operation is not valid due to the current state of the object."
Do you have any ideas about why this happens? Thank you in advance.
*UPDATED
Here is a partial block of my work
Public Sub Publish(ByVal dsdFile As String, ByVal dsdColl As DsdEntryCollection, ByVal plotFile As String, ByVal shType As SheetType)
Dim dsData As New DsdData()
dsData.SetDsdEntryCollection(dsdColl)
dsData.SheetType = shType
dsData.NoOfCopies = 1
dsData.DestinationName = plotFile
dsData.WriteDsd(dsdFile)