<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WriteDsd method get exception randomly in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153223#M7823</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you want someone to help you, you need to provide more details.&lt;/P&gt;
&lt;P&gt;Finding the origin of a "random" exception is often very difficult, but doing so without seeing a line of code is impossible.&lt;/P&gt;
&lt;P&gt;You should at least post the code of the method which throws the exception and describe the context this method runs.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 05:14:31 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-08-07T05:14:31Z</dc:date>
    <item>
      <title>WriteDsd method get exception randomly</title>
      <link>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12148282#M7821</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am experiencing an issue that is quite weird, it happens randomly so I can not trace the cause.&lt;/P&gt;&lt;P&gt;In my code, when I create Dsd file using&amp;nbsp;&lt;STRONG&gt;DsdData.WriteDsd&lt;/STRONG&gt; method, sometimes I get this exception with the message "&lt;STRONG&gt;Operation is not valid due to the current state of the object.&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any ideas about why this happens? Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*UPDATED&lt;BR /&gt;&lt;BR /&gt;Here is a partial block of my work&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;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)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:30:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12148282#M7821</guid>
      <dc:creator>ptranU2KHX</dc:creator>
      <dc:date>2023-08-07T08:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: WriteDsd method get exception randomly</title>
      <link>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153016#M7822</link>
      <description>&lt;P&gt;I really need help!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 01:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153016#M7822</guid>
      <dc:creator>ptranU2KHX</dc:creator>
      <dc:date>2023-08-07T01:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: WriteDsd method get exception randomly</title>
      <link>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153223#M7823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you want someone to help you, you need to provide more details.&lt;/P&gt;
&lt;P&gt;Finding the origin of a "random" exception is often very difficult, but doing so without seeing a line of code is impossible.&lt;/P&gt;
&lt;P&gt;You should at least post the code of the method which throws the exception and describe the context this method runs.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 05:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153223#M7823</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-08-07T05:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: WriteDsd method get exception randomly</title>
      <link>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153533#M7824</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/109424"&gt;@_gile&lt;/a&gt;&amp;nbsp;thank you for your help. I did not realize this. I have just updated this post.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:29:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/writedsd-method-get-exception-randomly/m-p/12153533#M7824</guid>
      <dc:creator>ptranU2KHX</dc:creator>
      <dc:date>2023-08-07T08:29:45Z</dc:date>
    </item>
  </channel>
</rss>

