# Error loading GeoTiffRasterLayer

**URL:** <https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293>\
**Category:** WinForms\
**Created:** [September 13, 2013, 5:56am UTC](https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293 "2013-09-13T05:56:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torsten](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Torsten](https://community.thinkgeo.com/u/Torsten)\
**Post date:** [September 13, 2013, 5:56am UTC](https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293/1 "2013-09-13T05:56:43Z")

</div>

_Hello,_

 

 

_I’m&nbsp;using&nbsp;MapSuite&nbsp;v7&nbsp;(Desktop&nbsp;Edition).&nbsp;I&nbsp;got&nbsp;an&nbsp;Error&nbsp;from&nbsp;a&nbsp;customer,&nbsp;when&nbsp;he&nbsp;try&nbsp;to&nbsp;load&nbsp;an&nbsp;Tif-Layer.&nbsp;MapSuite&nbsp;shows&nbsp;a&nbsp;Messagebox&nbsp;“Can’t&nbsp;load&nbsp;{filename}”._

 

 

_{filename}&nbsp;is&nbsp;the&nbsp;PathFileName-Propterty&nbsp;from&nbsp;the&nbsp;Layer.&nbsp;_

 

 

_The&nbsp;costumer&nbsp;use&nbsp;a&nbsp;german&nbsp;version&nbsp;from&nbsp;windows&nbsp;7&nbsp;and&nbsp;he&nbsp;use&nbsp;also&nbsp;german&nbsp;chars&nbsp;in&nbsp;the&nbsp;Pathfilename&nbsp;(i.e.&nbsp;Ä,&nbsp;Ö,&nbsp;Ü)._

 

 

_In&nbsp;the&nbsp;Error-MessageBox&nbsp;these&nbsp;special&nbsp;german&nbsp;chars&nbsp;are&nbsp;not&nbsp;correct.&nbsp;So&nbsp;I&nbsp;think&nbsp;MapSuite&nbsp;can’t&nbsp;find&nbsp;this&nbsp;file_

 

 

_I&nbsp;have&nbsp;to&nbsp;use&nbsp;GeoTiffLibraryType.UnmanagedLibTiff._

 

 

_Any&nbsp;suggenstions_

 

 

_Torsten_

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [September 16, 2013, 1:40am UTC](https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293/2 "2013-09-16T01:40:09Z")

</div>

Hi&nbsp;Torsten,&nbsp;  
&nbsp;Sorry&nbsp;we&nbsp;can’t&nbsp;recreate&nbsp;the&nbsp;issue&nbsp;in&nbsp;our&nbsp;end.&nbsp;We&nbsp;try&nbsp;to&nbsp;use&nbsp;the&nbsp;different&nbsp;languages&nbsp;to&nbsp;replace&nbsp;the&nbsp;file&nbsp;path&nbsp;includes&nbsp;in&nbsp;German&nbsp;but&nbsp;all&nbsp;of&nbsp;them&nbsp;can&nbsp;be&nbsp;found.&nbsp;  
&nbsp;Could&nbsp;you&nbsp;recreated&nbsp;it&nbsp;in&nbsp;your&nbsp;end&nbsp;or&nbsp;provide&nbsp;us&nbsp;more&nbsp;details&nbsp;about&nbsp;the&nbsp;error&nbsp;like&nbsp;the&nbsp;calls&nbsp;track&nbsp;from&nbsp;exception,&nbsp;error&nbsp;file&nbsp;path,&nbsp;or&nbsp;even&nbsp;the&nbsp;tiff&nbsp;file?&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;Johnny&nbsp;

---

<div class="post-metadata">

**Author:** ![Torsten](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/8e8cbc/32.png) [@Torsten](https://community.thinkgeo.com/u/Torsten)\
**Post date:** [September 16, 2013, 5:21am UTC](https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293/3 "2013-09-16T05:21:57Z")

</div>

Hi&nbsp;Johnny,  
  
I&nbsp;don’t&nbsp;get&nbsp;an&nbsp;Exception&nbsp;-&nbsp;only&nbsp;the&nbsp;Messagebox&nbsp;as&nbsp;shown&nbsp;in&nbsp;the&nbsp;attached&nbsp;word-file.&nbsp;We&nbsp;create&nbsp;another&nbsp;Directory&nbsp;(without&nbsp;german&nbsp;chars)&nbsp;and&nbsp;copied&nbsp;the&nbsp;tif-file&nbsp;(also&nbsp;tfw)&nbsp;in&nbsp;this&nbsp;Directory&nbsp;-&nbsp;there&nbsp;are&nbsp;no&nbsp;errors.  
  
Then&nbsp;I&nbsp;changed&nbsp;my&nbsp;Code&nbsp;and&nbsp;use&nbsp;"LibraryType&nbsp;=&nbsp;GeoTiffLibraryType.ManagedLibTiff"&nbsp;instead&nbsp;of&nbsp;"GeoTiffLibraryType.UnmanagedLibTiff".&nbsp;There&nbsp;are&nbsp;also&nbsp;no&nbsp;Errors.&nbsp;So&nbsp;I&nbsp;think,&nbsp;this&nbsp;is&nbsp;a&nbsp;Problem&nbsp;with&nbsp;the&nbsp;"unmanaged"&nbsp;code.  
  
  
  
Regards&nbsp;Torsten  
  
&nbsp;  
  
[\_Problem\_LoadGeoTiff\_GermanPathChars.docx](https://community.thinkgeo.com/uploads/default/original/2X/e/e754a9fdd620802fb190fdd39ab645382ded8286.docx) (287 KB)

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [September 17, 2013, 4:44am UTC](https://community.thinkgeo.com/t/error-loading-geotiffrasterlayer/2293/4 "2013-09-17T04:44:17Z")

</div>

Hi&nbsp;Torsten,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;still&nbsp;can’t&nbsp;recreate&nbsp;the&nbsp;issue.&nbsp;We&nbsp;test&nbsp;on&nbsp;a&nbsp;new&nbsp;XP&nbsp;machine,&nbsp;open&nbsp;a&nbsp;tif&nbsp;file&nbsp;with&nbsp;a&nbsp;domain&nbsp;network&nbsp;path&nbsp;with&nbsp;german&nbsp;chars&nbsp;which&nbsp;is&nbsp;like&nbsp;the&nbsp;customer’s&nbsp;error&nbsp;image&nbsp;includes.&nbsp;And&nbsp;if&nbsp;it&nbsp;is&nbsp;really&nbsp;a&nbsp;bug&nbsp;in&nbsp;the&nbsp;“unmanaged”&nbsp;code,&nbsp;it&nbsp;is&nbsp;hard&nbsp;to&nbsp;say&nbsp;we&nbsp;can&nbsp;fix&nbsp;it&nbsp;as&nbsp;we&nbsp;are&nbsp;using&nbsp;the&nbsp;geotiff.dll&nbsp;which&nbsp;is&nbsp;from&nbsp;GDAL.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;any&nbsp;inconvenience.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Best&nbsp;regards,&nbsp;  
&nbsp;Johnny&nbsp;
