AnsweredAssumed Answered

Using comReleaser As ComReleaser. The path  could not be found

Question asked by jsn on Apr 2, 2018
Latest reply on Apr 2, 2018 by jsn

Hello everyone,

 

 

This is my current configuration:

ArcGIS 10.4

VS 2015

 

I am trying to run a SQL Query inside a Console Application to find records that are duplicated.

 

The application fails with this error message: The path  could not be found. (Exception from HRESULT: 0x80030003 (STG_E_PATHNOTFOUND))

 

When it reaches this line: Using comReleaser As ComReleaser = New ComReleaser()

 

 

Dim queryBuilder As StringBuilder = New StringBuilder()

queryBuilder.Append("SELECT CONTENTID, COUNT(CONTENTID) AS Counter ")

queryBuilder.Append("FROM table ")

queryBuilder.Append("GROUP BY CONTENTID ")

queryBuilder.Append("HAVING(COUNT(CONTENTID) > 1) ")

queryBuilder.Append("ORDER BY Counter DESC")

Dim query As String = queryBuilder.ToString()

 

..........

Using comReleaser As ComReleaser = New ComReleaser()

Outcomes