System.Runtime.InteropServices.COMException handling

629
0
11-23-2022 01:16 AM
ShanmugapriyaL1
New Contributor II

Hi All,

I am trying to get the feature class name from the shapefile.

But it throws,

System.Runtime.InteropServices.COMException: 'Unspecified error

The element '{http://schemas.microsoft.com/windows/2005/02/color/WcsCommonProfileTypes}Text' is used but not declared in the DTD/Schema.

I can't find solution to resolve this.

I tried the ArcObjects SDK document code that I attached below.

https://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00490000008m000000

 

I am attaching my code snippet and error message below.

 

ShanmugapriyaL1_0-1669194896628.png

 

I am using visual studio 2019 and ArcGIS 10.8

 

Can anyone please help me out in this.

 

0 Kudos
0 Replies