Looks like one or more dlls are missing or not available to load at run time. Make sure gdal.dll or all of the dependencies are available to load by the application. You can place the dll-s in the directory of your executable or include the directory location in the PATH environment.<br>
<br>Best regards,<br><br>Tamas<br><br><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style><br>
<div class="gmail_quote">2010/5/26 radioheadCDA <span dir="ltr">&lt;<a href="mailto:chrisaustin2009@gmail.com">chrisaustin2009@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hey, I have been having a very large issue, well maybe not large but very<br>
frustrating. I have been using the C# wrapper for gdal in visual studio and<br>
have been getting an error when GDAL tries to register the drivers before<br>
doing anything else. The error I get is this:<br>
<br>
&quot;The type Intializer for &#39;OSGeo.GDAL.Gdal&#39; threw an exception&quot;<br>
<br>
I have tried changing enviroment variables, deleting then re-adding<br>
refrences to gdal, both which have done nothing to solve the problem. If<br>
anyone knows anything that might help me solve the issue, I would greatly<br>
appreciate at it. Thanks.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Gdal-Allregister-Error-tp5104079p5104079.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Gdal-Allregister-Error-tp5104079p5104079.html</a><br>

Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br>