<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&#39;s in reference of my project.  I have also placed all wrap dll&#39;s and other dll&#39;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: &quot;&quot;The type initializer for &#39;OSGeo.OGR.Ogr&#39; threw an exception.&quot;  &quot;</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 &amp; Regards<br>Rubina Sultan </div>