# Raster Product Format(RPF) throw an excpetion in FDO extensions

**URL:** <https://community.thinkgeo.com/t/raster-product-format-rpf-throw-an-excpetion-in-fdo-extensions/1789>\
**Category:** WinForms\
**Created:** [September 13, 2011, 3:03pm UTC](https://community.thinkgeo.com/t/raster-product-format-rpf-throw-an-excpetion-in-fdo-extensions/1789 "2011-09-13T15:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard3](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/b5a626/32.png) [@Richard3](https://community.thinkgeo.com/u/Richard3)\
**Post date:** [September 13, 2011, 3:03pm UTC](https://community.thinkgeo.com/t/raster-product-format-rpf-throw-an-excpetion-in-fdo-extensions/1789/1 "2011-09-13T15:03:51Z")

</div>

I&nbsp;am&nbsp;trying&nbsp;to&nbsp;open&nbsp;a&nbsp;CADRG&nbsp;file&nbsp;using&nbsp;the&nbsp;FDO&nbsp;Samples&nbsp;application.&nbsp;&nbsp;My&nbsp;understanding&nbsp;is&nbsp;that&nbsp;CADRG&nbsp;is&nbsp;in&nbsp;the&nbsp;Raster&nbsp;Product&nbsp;Format&nbsp;(RPF).&nbsp;&nbsp;My&nbsp;data&nbsp;file&nbsp;are&nbsp;"indexed"&nbsp;in&nbsp;a&nbsp;root&nbsp;directory&nbsp;"RPF"&nbsp;by&nbsp;a&nbsp;file&nbsp;named&nbsp;"A.TOC".&nbsp;&nbsp;When&nbsp;the&nbsp;sample&nbsp;application&nbsp;attempts&nbsp;to&nbsp;draw&nbsp;the&nbsp;bitmap&nbsp;using&nbsp;the&nbsp;StaticLayers&nbsp;of&nbsp;the&nbsp;MapEngine,&nbsp;an&nbsp;exception&nbsp;with&nbsp;the&nbsp;text&nbsp;"Exception&nbsp;jas&nbsp;been&nbsp;thrown&nbsp;by&nbsp;the&nbsp;target&nbsp;of&nbsp;an&nbsp;invocation".&nbsp;&nbsp;I&nbsp;am&nbsp;using&nbsp;the&nbsp;GdalRasterLayer&nbsp;class&nbsp;to&nbsp;define&nbsp;the&nbsp;layer&nbsp;for&nbsp;this&nbsp;file.&nbsp;&nbsp;There&nbsp;is&nbsp;an&nbsp;inner&nbsp;exception&nbsp;is&nbsp;the&nbsp;Exception&nbsp;object&nbsp;with&nbsp;a&nbsp;message&nbsp;"panBandMap[0]&nbsp;=&nbsp;1,&nbsp;this&nbsp;band&nbsp;does&nbsp;not&nbsp;exist&nbsp;on&nbsp;the&nbsp;dataset"&nbsp;&nbsp;from&nbsp;a&nbsp;Source&nbsp;of&nbsp;"OSGeo.FDO".&nbsp;

Is&nbsp;there&nbsp;anyway&nbsp;to&nbsp;determine&nbsp;what&nbsp;the&nbsp;error&nbsp;message&nbsp;means&nbsp;or&nbsp;how&nbsp;to&nbsp;fix&nbsp;the&nbsp;code&nbsp;or&nbsp;data&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;display&nbsp;this&nbsp;data&nbsp;file?

Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;assistance.

&nbsp;

Richard

&nbsp;

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [September 14, 2011, 10:07am UTC](https://community.thinkgeo.com/t/raster-product-format-rpf-throw-an-excpetion-in-fdo-extensions/1789/2 "2011-09-14T10:07:12Z")

</div>

Richard,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Our&nbsp;Fdo&nbsp;extension&nbsp;is&nbsp;based&nbsp;on&nbsp;a&nbsp;third&nbsp;part&nbsp;open&nbsp;source&nbsp;project&nbsp;fdo&nbsp;assemblies,&nbsp;and&nbsp;the&nbsp;error&nbsp;is&nbsp;thrown&nbsp;from&nbsp;it,&nbsp;so&nbsp;that&nbsp;I&nbsp;think&nbsp;probably&nbsp;your&nbsp;data&nbsp;files&nbsp;are&nbsp;not&nbsp;supported&nbsp;by&nbsp;it,&nbsp;and&nbsp;we&nbsp;have&nbsp;not&nbsp;much&nbsp;way&nbsp;to&nbsp;figure&nbsp;out&nbsp;the&nbsp;really&nbsp;problem.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;inconvenience.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;James
