<div><br clear="all">Hello All, </div>
<div> </div>
<div>I am working on display of S57 vector data using C# , visual studio 2005. The Operating system is Xp. The library is gdal/ogr . As a first step, I am able to use c-sharp swig binding dll as obtained from FWtool 2.4.2...</div>
<div> </div>
<div>I have included the required c-sharp dll's in reference of my project. I have also placed all wrap dll's and other dll's found in bin of FWTools in the bin of my application project and the code is compiling well. </div>
<div> </div>
<div>
<div>The code I am trying to execute is ogrinfo from c-sharp sample of gdal/ogr as in the follwoing link while the error is produced on line 70: Ogr.RegisterAll(); </div>
<div> </div>
<div><a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs">http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs</a></div>
<div> </div></div>
<div>When I execute it, the first function (Register All) of gdal/ogr throws an exception. the error is: ""The type initializer for 'OSGeo.OGR.Ogr' threw an exception." "</div>
<div> </div>
<div>The issue is somewhat similar to the posted in the following links. </div>
<div><a href="http://n2.nabble.com/question-about-ogr-td2034353.html#a2034353">http://n2.nabble.com/question-about-ogr-td2034353.html#a2034353</a></div>
<div> </div>
<div><a href="http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/csharp/apps/ogrinfo.cs"></a> </div>
<div>Please help me in rectifying the issue. <br>-- <br>Thanks & Regards<br>Rubina Sultan </div>