<?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 What is wrong with this code: pWorkspace.FindVersion in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-wrong-with-this-code-pworkspace/m-p/387115#M4586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pWorkspace = pWorkspaceFactory.OpenFromFile(prefixOutput, 0)&lt;/P&gt;&lt;P&gt;Dim version As IVersion = CType(pWorkspace, IVersion)&lt;/P&gt;&lt;P&gt;Dim versionName As String = version.VersionName&lt;/P&gt;&lt;P&gt;Dim targetVersion As IVersion = Nothing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' check if working with Editor's version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If version.VersionName &amp;lt;&amp;gt; strEditorVersion Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; targetVersion = CType(pWorkspace.FindVersion(strEditorVersion ), IVersion)&amp;nbsp;&amp;nbsp; ************&amp;nbsp; It crashes here&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR MESSAGE&lt;/P&gt;&lt;P&gt;Error Message: Object reference not set to an instance of an object.Date1/16/2019&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2019 20:29:27 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2019-01-16T20:29:27Z</dc:date>
    <item>
      <title>What is wrong with this code: pWorkspace.FindVersion</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-wrong-with-this-code-pworkspace/m-p/387115#M4586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pWorkspace = pWorkspaceFactory.OpenFromFile(prefixOutput, 0)&lt;/P&gt;&lt;P&gt;Dim version As IVersion = CType(pWorkspace, IVersion)&lt;/P&gt;&lt;P&gt;Dim versionName As String = version.VersionName&lt;/P&gt;&lt;P&gt;Dim targetVersion As IVersion = Nothing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;' check if working with Editor's version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If version.VersionName &amp;lt;&amp;gt; strEditorVersion Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; targetVersion = CType(pWorkspace.FindVersion(strEditorVersion ), IVersion)&amp;nbsp;&amp;nbsp; ************&amp;nbsp; It crashes here&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR MESSAGE&lt;/P&gt;&lt;P&gt;Error Message: Object reference not set to an instance of an object.Date1/16/2019&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 20:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/what-is-wrong-with-this-code-pworkspace/m-p/387115#M4586</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2019-01-16T20:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with this code: pWorkspace.FindVersion</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/what-is-wrong-with-this-code-pworkspace/m-p/387116#M4587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is an ArcObjects question not ArcGIS Runtime, you may want to post in that forum:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/groups/arcobjectsnet"&gt;https://community.esri.com/groups/arcobjectsnet&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 23:55:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/what-is-wrong-with-this-code-pworkspace/m-p/387116#M4587</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2019-01-16T23:55:51Z</dc:date>
    </item>
  </channel>
</rss>

