Is there any way you can use the OGR lib in C# .NET ?<br>I downloaded FWTools and found a /csharp/ directory with a dll called ogr_csharp.dll<br>But when I try and use this in a project I get errors.<br>[Error]<br>"The type initializer for '
OGR.ogr' threw an exception"<br><br>my Code<br><br><br>using System;<br>using System.Collections.Generic;<br>using System.ComponentModel;<br>using System.Data;<br>using System.Drawing;<br>using System.Text;<br>using
System.Windows.Forms;<br>using OGR;<br><br>namespace WindowsApplication1<br>{<br> public partial class Form1 : Form<br> {<br> public Form1()<br> {<br> <br> InitializeComponent();<br>
<br> }<br><br> private void Form1_Load(object sender, EventArgs e)<br> {<br> <span style="font-weight: bold; color: rgb(255, 0, 0);"> <span style="color: rgb(51, 51, 255);"> <span style="color: rgb(0, 0, 0);">
ogr.RegisterAll();</span></span></span><br> }<br> }<br>}<br><br><br>If anyone has any ideas please reply.<br><br>Thanks,<br>Drew<br><br><br>