# Get Pink Screen when using IFrame

**URL:** <https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394>\
**Category:** WebForms\
**Created:** [July 13, 2010, 12:16pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394 "2010-07-13T12:16:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![GNak](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@GNak](https://community.thinkgeo.com/u/GNak)\
**Post date:** [July 13, 2010, 12:16pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/1 "2010-07-13T12:16:25Z")

</div>

We&nbsp;have&nbsp;a&nbsp;web&nbsp;application&nbsp;within&nbsp;which&nbsp;there&nbsp;is&nbsp;a&nbsp;Iframe&nbsp;where&nbsp;I&nbsp;am&nbsp;calling&nbsp;another&nbsp;website.&nbsp;The&nbsp;website&nbsp;that&nbsp;is&nbsp;being&nbsp;displayed&nbsp;within&nbsp;Iframes&nbsp;uses&nbsp;ThinkGeo&nbsp;Web&nbsp;Edition&nbsp;controls&nbsp;and&nbsp;Bing&nbsp;imagery.&nbsp;The&nbsp;site&nbsp;gets&nbsp;displayed&nbsp;within&nbsp;the&nbsp;Iframe&nbsp;fine&nbsp;except&nbsp;that&nbsp;when&nbsp;a&nbsp;user&nbsp;pans&nbsp;the&nbsp;map&nbsp;or&nbsp;performs&nbsp;any&nbsp;action&nbsp;on&nbsp;the&nbsp;map&nbsp;control&nbsp;the&nbsp;tiles&nbsp;go&nbsp;pink.

If&nbsp;the&nbsp;same&nbsp;website&nbsp;is&nbsp;displayed&nbsp;outside&nbsp;of&nbsp;the&nbsp;Iframe&nbsp;everything&nbsp;works&nbsp;great.

How&nbsp;can&nbsp;I&nbsp;get&nbsp;around&nbsp;the&nbsp;issue&nbsp;without&nbsp;opening&nbsp;the&nbsp;page&nbsp;in&nbsp;a&nbsp;seperate&nbsp;window?&nbsp;I&nbsp;want&nbsp;the&nbsp;site&nbsp;to&nbsp;be&nbsp;displayed&nbsp;on&nbsp;the&nbsp;same&nbsp;page.&nbsp;

Thanks,

GNak

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [July 13, 2010, 10:19pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/2 "2010-07-13T22:19:29Z")

</div>

Hi,&nbsp;GNak&nbsp;  
&nbsp;&nbsp;  
&nbsp;You&nbsp;mentioned&nbsp;another&nbsp;website,&nbsp;do&nbsp;you&nbsp;mean&nbsp;another&nbsp;aspx&nbsp;page&nbsp;or&nbsp;another&nbsp;website&nbsp;which&nbsp;is&nbsp;hosted&nbsp;on&nbsp;the&nbsp;same&nbsp;server&nbsp;with&nbsp;your&nbsp;web&nbsp;app&nbsp;or&nbsp;another&nbsp;remote&nbsp;web&nbsp;server?&nbsp;&nbsp;  
&nbsp;All&nbsp;of&nbsp;the&nbsp;three&nbsp;scenarios&nbsp;I&nbsp;have&nbsp;tested,&nbsp;it&nbsp;works&nbsp;well.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’m&nbsp;not&nbsp;sure&nbsp;whether&nbsp;this&nbsp;problem&nbsp;is&nbsp;caused&nbsp;by&nbsp;cross-domain?&nbsp;I&nbsp;suggest&nbsp;that&nbsp;you&nbsp;give&nbsp;a&nbsp;try&nbsp;for&nbsp;the&nbsp;local&nbsp;aspx&nbsp;page&nbsp;or&nbsp;web&nbsp;server&nbsp;and&nbsp;if&nbsp;it&nbsp;also&nbsp;can’t&nbsp;work,&nbsp;please&nbsp;send&nbsp;us&nbsp;your&nbsp;code&nbsp;so&nbsp;that&nbsp;we&nbsp;could&nbsp;address&nbsp;it&nbsp;quickly.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Khalil

---

<div class="post-metadata">

**Author:** ![Adam1](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/a/7ba0ec/32.png) [@Adam1](https://community.thinkgeo.com/u/Adam1)\
**Post date:** [July 14, 2010, 12:47pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/3 "2010-07-14T12:47:46Z")

</div>

We&nbsp;have&nbsp;figured&nbsp;out&nbsp;that&nbsp;the&nbsp;issue&nbsp;is&nbsp;with&nbsp;our&nbsp;scale&nbsp;bar.&nbsp;Our&nbsp;scale&nbsp;bar&nbsp;is&nbsp;contained&nbsp;in&nbsp;a&nbsp;LayerOverlay&nbsp;all&nbsp;on&nbsp;its&nbsp;own.&nbsp;When&nbsp;IE&nbsp;requests&nbsp;the&nbsp;layer's&nbsp;image&nbsp;(via&nbsp;the&nbsp;ThinkGeo.MapSuite.WebEdition.GeoResourceFactory&nbsp;axd),&nbsp;it&nbsp;does&nbsp;not&nbsp;include&nbsp;.png&nbsp;as&nbsp;a&nbsp;valid&nbsp;return&nbsp;type.&nbsp;The&nbsp;simple&nbsp;solution&nbsp;should&nbsp;be&nbsp;to&nbsp;set&nbsp;the&nbsp;LayerOverlay&nbsp;for&nbsp;the&nbsp;scale&nbsp;bar&nbsp;to&nbsp;have&nbsp;a&nbsp;different&nbsp;WebImageFormat,&nbsp;but&nbsp;the&nbsp;only&nbsp;option&nbsp;other&nbsp;than&nbsp;png&nbsp;is&nbsp;jpeg.&nbsp;The&nbsp;issue&nbsp;with&nbsp;using&nbsp;jpeg&nbsp;is&nbsp;that&nbsp;it&nbsp;doesn't&nbsp;support&nbsp;transparency,&nbsp;and&nbsp;so&nbsp;the&nbsp;LayerOverlay&nbsp;containing&nbsp;the&nbsp;scale&nbsp;bar&nbsp;puts&nbsp;a&nbsp;giant&nbsp;black&nbsp;box&nbsp;over&nbsp;everything.

Is&nbsp;there&nbsp;another&nbsp;means&nbsp;of&nbsp;resolving&nbsp;this&nbsp;issue?

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [July 19, 2010, 1:56am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/4 "2010-07-19T01:56:51Z")

</div>

Adam,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;delay&nbsp;response.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;don’t&nbsp;what&nbsp;you&nbsp;mean&nbsp;by&nbsp;saying&nbsp;that&nbsp;“Our&nbsp;scale&nbsp;bar&nbsp;is&nbsp;contained&nbsp;in&nbsp;a&nbsp;LayerOverlay”.&nbsp;I&nbsp;guess&nbsp;that&nbsp;you&nbsp;mean&nbsp;the&nbsp;ScaleBarAdornmentLayer&nbsp;or&nbsp;your&nbsp;own&nbsp;ScaleBar&nbsp;layer&nbsp;inherited&nbsp;from&nbsp;ScaleBarAdornmentLayer.&nbsp;Anyway,&nbsp;I&nbsp;have&nbsp;got&nbsp;your&nbsp;problem.&nbsp;There&nbsp;are&nbsp;two&nbsp;options&nbsp;for&nbsp;you:&nbsp;  
&nbsp;One&nbsp;is&nbsp;that&nbsp;you&nbsp;could&nbsp;use&nbsp;the&nbsp;ScaleLine&nbsp;map&nbsp;tool&nbsp;in&nbsp;WebEdtion&nbsp;product,&nbsp;the&nbsp;code&nbsp;likes&nbsp;below:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map1.MapTools.ScaleLine.Enabled&nbsp;=&nbsp;true;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Other&nbsp;one&nbsp;is&nbsp;that&nbsp;you&nbsp;still&nbsp;use&nbsp;ScaleBarAdornmentLayer&nbsp;or&nbsp;your&nbsp;own&nbsp;layer,&nbsp;and&nbsp;LayerOverlay&nbsp;has&nbsp;its&nbsp;own&nbsp;ImageFormat&nbsp;of&nbsp;Png,&nbsp;using&nbsp;like&nbsp;the&nbsp;code&nbsp;below:&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ScaleBarAdornmentLayer&nbsp;layer&nbsp;=&nbsp;new&nbsp;ScaleBarAdornmentLayer();&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;LayerOverlay&nbsp;overlay&nbsp;=&nbsp;new&nbsp;LayerOverlay();&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overlay.IsBaseOverlay&nbsp;=&nbsp;false;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overlay.TileType&nbsp;=&nbsp;TileType.SingleTile;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;overlay.Layers.Add(layer);&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;I&nbsp;misunderstand&nbsp;your&nbsp;meaning&nbsp;please&nbsp;correct&nbsp;me.&nbsp;  
&nbsp;If&nbsp;you&nbsp;still&nbsp;have&nbsp;any&nbsp;problems&nbsp;about&nbsp;it,&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Khalil&nbsp;

---

<div class="post-metadata">

**Author:** ![GNak](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@GNak](https://community.thinkgeo.com/u/GNak)\
**Post date:** [July 20, 2010, 4:27pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/5 "2010-07-20T16:27:48Z")

</div>

We&nbsp;still&nbsp;have&nbsp;the&nbsp;pink&nbsp;tile&nbsp;issue&nbsp;now&nbsp;it&nbsp;can&nbsp;be&nbsp;recreated&nbsp;even&nbsp;without&nbsp;the&nbsp;Iframe.&nbsp;Looks&nbsp;like&nbsp;the&nbsp;pink&nbsp;tiles&nbsp;are&nbsp;caused&nbsp;due&nbsp;to&nbsp;the&nbsp;Overlays&nbsp;that&nbsp;are&nbsp;being&nbsp;added.&nbsp;We&nbsp;are&nbsp;unable&nbsp;to&nbsp;recreate&nbsp;this&nbsp;issue&nbsp;locally&nbsp;in&nbsp;order&nbsp;to&nbsp;debug&nbsp;it&nbsp;but&nbsp;when&nbsp;the&nbsp;code&nbsp;is&nbsp;on&nbsp;the&nbsp;server&nbsp;the&nbsp;issue&nbsp;can&nbsp;be&nbsp;recreated&nbsp;more&nbsp;often.

This&nbsp;issue&nbsp;needs&nbsp;to&nbsp;be&nbsp;fixed&nbsp;and&nbsp;we&nbsp;are&nbsp;unable&nbsp;to&nbsp;find&nbsp;the&nbsp;cause&nbsp;of&nbsp;it.  
I&nbsp;have&nbsp;added&nbsp;more&nbsp;information&nbsp;in&nbsp;the&nbsp;attachment&nbsp;with&nbsp;screenshots.

&nbsp;

[Pink\_tile\_issue.doc](https://community.thinkgeo.com/uploads/default/original/2X/7/79e943d65f7e039e770ec86cb96b3ad2878838ee.doc) (387 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:** [July 22, 2010, 12:09am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/6 "2010-07-22T00:09:22Z")

</div>

&nbsp;

GNak,  
Please&nbsp;right-click&nbsp;on&nbsp;one&nbsp;tile&nbsp;and&nbsp;copy&nbsp;the&nbsp;image&nbsp;request&nbsp;URL,&nbsp;and&nbsp;then&nbsp;request&nbsp;a&nbsp;single&nbsp;image&nbsp;with&nbsp;the&nbsp;URL&nbsp;copied,&nbsp;it&nbsp;will&nbsp;give&nbsp;the&nbsp;exception&nbsp;list,&nbsp;please&nbsp;send&nbsp;it&nbsp;to&nbsp;us.&nbsp;See&nbsp;the&nbsp;picture&nbsp;below:

 ![](https://community.thinkgeo.com/uploads/default/original/2X/b/b13cbc160712180ef52e0136fbafbbc06bc1bfd9.png)  
Also&nbsp;we&nbsp;also&nbsp;made&nbsp;a&nbsp;sample&nbsp;about&nbsp;it,&nbsp;but&nbsp;unable&nbsp;to&nbsp;recreate&nbsp;it,&nbsp;Can&nbsp;you&nbsp;change&nbsp;the&nbsp;attached&nbsp;sample&nbsp;based&nbsp;on&nbsp;your&nbsp;scenario,&nbsp;and&nbsp;then&nbsp;send&nbsp;it&nbsp;back?&nbsp;That&nbsp;will&nbsp;be&nbsp;helpful&nbsp;to&nbsp;determine&nbsp;the&nbsp;reason.  
Thanks,  
Johnny

---

<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:** [July 22, 2010, 12:12am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/7 "2010-07-22T00:12:13Z")

</div>

GNak,

Sorry&nbsp;that&nbsp;i&nbsp;missed&nbsp;the&nbsp;sample&nbsp;just&nbsp;now.

Thanks,

Johnney

[IframeMap.zip](https://community.thinkgeo.com/uploads/default/original/2X/d/d895d9ce0bc1e264392e4cd24a536aadfdac7add.zip) (9.12 KB)

---

<div class="post-metadata">

**Author:** ![GNak](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/d2c977/32.png) [@GNak](https://community.thinkgeo.com/u/GNak)\
**Post date:** [July 22, 2010, 12:57pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/8 "2010-07-22T12:57:44Z")

</div>

I&nbsp;sent&nbsp;an&nbsp;email&nbsp;with&nbsp;a&nbsp;movie&nbsp;capture&nbsp;of&nbsp;the&nbsp;issue&nbsp;to&nbsp;[support@thinkgeo.com](mailto:support@thinkgeo.com).&nbsp;Please&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;received&nbsp;it.&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [July 27, 2010, 1:50am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/9 "2010-07-27T01:50:36Z")

</div>

GNak,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;have&nbsp;got&nbsp;that,&nbsp;and&nbsp;we&nbsp;will&nbsp;focus&nbsp;on&nbsp;that.&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;information&nbsp;about&nbsp;that.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Khalil

---

<div class="post-metadata">

**Author:** ![Lishan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@Lishan](https://community.thinkgeo.com/u/Lishan)\
**Post date:** [September 10, 2010, 1:00pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/10 "2010-09-10T13:00:30Z")

</div>

Hi&nbsp;Johnny,

I&nbsp;am&nbsp;having&nbsp;a&nbsp;similar&nbsp;problem&nbsp;while&nbsp;embedding&nbsp;a&nbsp;map&nbsp;object&nbsp;in&nbsp;the&nbsp;html&nbsp;page&nbsp;with&nbsp;iframe.&nbsp;[![](https://community.thinkgeo.com/uploads/default/original/2X/2/29ea34596c01f0b693d9f61943ec6cbb33b6bf80.PNG)](https://community.thinkgeo.com/DesktopModules/ActiveForums/viewer.aspx?portalid=1&moduleid=623&attachid=2522)

It&nbsp;shows&nbsp;only&nbsp;pink&nbsp;tiles&nbsp;if&nbsp;I&nbsp;don't&nbsp;have&nbsp;the&nbsp;map&nbsp;opened&nbsp;seperately&nbsp;in&nbsp;another&nbsp;tab.

the&nbsp;map&nbsp;and&nbsp;the&nbsp;iframe&nbsp;are&nbsp;on&nbsp;different&nbsp;domains.&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;clicked&nbsp;on&nbsp;the&nbsp;pink&nbsp;tile&nbsp;and&nbsp;got&nbsp;the&nbsp;addres&nbsp;url&nbsp;in&nbsp;the&nbsp;window&nbsp;like&nbsp;the&nbsp;above&nbsp;screen&nbsp;shot&nbsp;(10.0.90.2:2178/tile\_GeoResource.axd?OVERLAYID=CustomOverlay&FORMAT=image%2Fpng&CACHEID=CustomOverlay&PAGENAME=Default&STYLES=&CLIENTID=Map1&EXTRA=10105702572&SRS=EPSG%3A4326&BBOX=-13702246.304342,6299118.1829215,-13682713.721835,6318650.7654285&WIDTH=256&HEIGHT=256&ZOOM=8),&nbsp;pasted&nbsp;it&nbsp;in&nbsp;the&nbsp;IE&nbsp;browser&nbsp;URl&nbsp;bar&nbsp;and&nbsp;entered.&nbsp;it&nbsp;gave&nbsp;me&nbsp;a&nbsp;blank&nbsp;page..&nbsp;no&nbsp;error..&nbsp;

&nbsp;

Your&nbsp;help&nbsp;would&nbsp;be&nbsp;much&nbsp;appreciated!

Thank&nbsp;you!

Roson

---

<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 13, 2010, 2:24am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/11 "2010-09-13T02:24:10Z")

</div>

&nbsp;

Hi,  
Do&nbsp;you&nbsp;deploy&nbsp;the&nbsp;application&nbsp;on&nbsp;IIS?&nbsp;I&nbsp;tried&nbsp;placing&nbsp;the&nbsp;map&nbsp;into&nbsp;html&nbsp;page&nbsp;with&nbsp;IFrame,&nbsp;and&nbsp;publishing&nbsp;the&nbsp;application&nbsp;to&nbsp;different&nbsp;domains,&nbsp;but&nbsp;all&nbsp;works&nbsp;fine.&nbsp;Here&nbsp;as&nbsp;following&nbsp;is&nbsp;the&nbsp;browse&nbsp;URLs:  
Map&nbsp;Application:&nbsp;[localhost/InframeMap/Map.aspx](http://localhost/InframeMap/Map.aspx)  
Map&nbsp;in&nbsp;IFrame&nbsp;Application:&nbsp;[localhost:8080/Default.htm](http://localhost:8080/Default.htm)  
The&nbsp;IIS&nbsp;looks&nbsp;like:  
&nbsp;

 ![](https://community.thinkgeo.com/uploads/default/original/2X/e/eee2f7ce70cc0053cdafb756739066e5f17cd491.png)  
&nbsp;  
The&nbsp;attached&nbsp;is&nbsp;the&nbsp;sample&nbsp;applications&nbsp;that&nbsp;I&nbsp;used&nbsp;for&nbsp;test.&nbsp;Please&nbsp;check&nbsp;it.&nbsp;Can&nbsp;you&nbsp;send&nbsp;you&nbsp;error&nbsp;application&nbsp;to&nbsp;[forumsupport@thinkgeo.com](mailto:forumsupport@thinkgeo.com)&nbsp;?  
Thanks,  
Johnny  
  
[001\_IframeMap.zip](https://community.thinkgeo.com/uploads/default/original/2X/b/ba6010e1fd06f9f1d3c8aaba03cdfae1e43c3cd4.zip) (14.5 KB)

---

<div class="post-metadata">

**Author:** ![Lishan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@Lishan](https://community.thinkgeo.com/u/Lishan)\
**Post date:** [September 13, 2010, 4:44pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/12 "2010-09-13T16:44:31Z")

</div>

Thank&nbsp;you&nbsp;Johnny.&nbsp;

I&nbsp;have&nbsp;attached&nbsp;the&nbsp;html&nbsp;page&nbsp;where&nbsp;the&nbsp;iframe&nbsp;Map&nbsp;is&nbsp;and&nbsp;the&nbsp;embeded&nbsp;map&nbsp;shows&nbsp;pink&nbsp;tiles&nbsp;if&nbsp;without&nbsp;a&nbsp;map&nbsp;opened&nbsp;seperately&nbsp;in&nbsp;another&nbsp;tab.&nbsp;&nbsp;I&nbsp;have&nbsp;this&nbsp;html&nbsp;on&nbsp;a&nbsp;different&nbsp;server&nbsp;(different&nbsp;ip)&nbsp;from&nbsp;where&nbsp;the&nbsp;map&nbsp;application&nbsp;is.&nbsp;&nbsp;

Thanks!

&nbsp;

Lishan

[pinkTiles.html](https://community.thinkgeo.com/uploads/default/original/2X/6/67d3c858e93d3cbdb8795ba6a42a6cbace0d1b68.html) (539 Bytes)

---

<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 14, 2010, 2:24am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/13 "2010-09-14T02:24:44Z")

</div>

&nbsp;

Hi&nbsp;Lishan,  
Thanks&nbsp;for&nbsp;providing&nbsp;the&nbsp;sample,&nbsp;but&nbsp;I’m&nbsp;unable&nbsp;to&nbsp;connect&nbsp;to&nbsp;your&nbsp;server&nbsp;[10.0.\*.\*:2178/](http://10.0.*.*:2178/).&nbsp;I&nbsp;tried&nbsp;publishing&nbsp;two&nbsp;application&nbsp;to&nbsp;two&nbsp;different&nbsp;machine,&nbsp;but&nbsp;all&nbsp;works&nbsp;fine.&nbsp;How&nbsp;about&nbsp;the&nbsp;sample&nbsp;on&nbsp;your&nbsp;machine?&nbsp;Here&nbsp;as&nbsp;following&nbsp;are&nbsp;my&nbsp;deployment&nbsp;steps:  
1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create&nbsp;“New&nbsp;Application”&nbsp;on&nbsp;IIS7.5,&nbsp;Windows&nbsp;7&nbsp;X64.  
2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make&nbsp;the&nbsp;application&nbsp;navigate&nbsp;to&nbsp;the&nbsp;application&nbsp;folder&nbsp;and&nbsp;the&nbsp;“Application&nbsp;pool”&nbsp;is&nbsp;“DefaultAppPool”.  
3.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Change&nbsp;the&nbsp;permission&nbsp;to&nbsp;“Everyone”&nbsp;for&nbsp;test.  
Additionally,&nbsp;can&nbsp;you&nbsp;let&nbsp;us&nbsp;know&nbsp;your&nbsp;PC&nbsp;setting&nbsp;or&nbsp;the&nbsp;steps&nbsp;about&nbsp;deployment?&nbsp;Thanks,  
Johnny

---

<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 14, 2010, 2:26am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/14 "2010-09-14T02:26:26Z")

</div>

One&nbsp;more&nbsp;thing,&nbsp;can&nbsp;you&nbsp;let&nbsp;us&nbsp;know&nbsp;your&nbsp;test&nbsp;result&nbsp;with&nbsp;my&nbsp;sample.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Johnny

---

<div class="post-metadata">

**Author:** ![Lishan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@Lishan](https://community.thinkgeo.com/u/Lishan)\
**Post date:** [September 14, 2010, 6:10pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/15 "2010-09-14T18:10:24Z")

</div>

Hi&nbsp;Johnny,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;do&nbsp;deploy&nbsp;both&nbsp;the&nbsp;Map&nbsp;application&nbsp;and&nbsp;the&nbsp;iframe&nbsp;on&nbsp;IIS.&nbsp;&nbsp;Map&nbsp;on&nbsp;IIS&nbsp;6&nbsp;and&nbsp;iframe&nbsp;on&nbsp;IIS&nbsp;5.1.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;published&nbsp;your&nbsp;samples&nbsp;on&nbsp;IIS&nbsp;5.1.&nbsp;&nbsp;I&nbsp;got&nbsp;the&nbsp;following&nbsp;message&nbsp;when&nbsp;I&nbsp;tried&nbsp;to&nbsp;access&nbsp;the&nbsp;IframeMap&nbsp;by&nbsp;localhost/IframeMap/Map.aspx&nbsp;&nbsp;  
&nbsp;"XML&nbsp;Parsing&nbsp;Error:&nbsp;not&nbsp;well-formed&nbsp;  
&nbsp;Location:&nbsp;localhost/IframeMap/Map.aspx&nbsp;  
&nbsp;Line&nbsp;Number&nbsp;1,&nbsp;Column&nbsp;2:\<%@&nbsp;Page&nbsp;Language=“C#”&nbsp;AutoEventWireup=“true”&nbsp;CodeBehind=“Map.aspx.cs”&nbsp;Inherits=“IframeMap.Map”&nbsp;%\>&nbsp;  
&nbsp;"&nbsp;  
&nbsp;and&nbsp;I&nbsp;don’t&nbsp;see&nbsp;the&nbsp;option&nbsp;for&nbsp;creating&nbsp;a&nbsp;new&nbsp;application…&nbsp;&nbsp;for&nbsp;MapInFrame…&nbsp;&nbsp;=(&nbsp;  
&nbsp;&nbsp;  
&nbsp;10.0.\*.\*:2178/&nbsp;…&nbsp;the&nbsp;server&nbsp;is&nbsp;a&nbsp;node&nbsp;of&nbsp;an&nbsp;intranet…&nbsp;I&nbsp;think&nbsp;it&nbsp;probably&nbsp;can&nbsp;only&nbsp;be&nbsp;accessed&nbsp;within&nbsp;the&nbsp;network…&nbsp;=(&nbsp;&nbsp;sorry&nbsp;about&nbsp;that…&nbsp;  
&nbsp;&nbsp;  
&nbsp;for&nbsp;deployment,&nbsp;i&nbsp;just&nbsp;publish&nbsp;the&nbsp;map&nbsp;application&nbsp;to&nbsp;a&nbsp;local&nbsp;folder.&nbsp;copy&nbsp;and&nbsp;paste&nbsp;the&nbsp;folder&nbsp;to&nbsp;the&nbsp;server&nbsp;IIS&nbsp;(wwwroot)&nbsp;where&nbsp;it’s&nbsp;being&nbsp;hosted.&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;sorry&nbsp;about&nbsp;my&nbsp;limited&nbsp;info…&nbsp;any&nbsp;more&nbsp;thoughts?&nbsp;  
&nbsp;&nbsp;  
&nbsp;&nbsp;  
&nbsp;Roson&nbsp;  
&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [September 15, 2010, 2:55am UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/16 "2010-09-15T02:55:12Z")

</div>

Hi,&nbsp;Lishan

Thanks&nbsp;for&nbsp;your&nbsp;information&nbsp;about&nbsp;this&nbsp;problem.  
We&nbsp;have&nbsp;done&nbsp;many&nbsp;scenarios,&nbsp;such&nbsp;as&nbsp;the&nbsp;iFrame&nbsp;page&nbsp;and&nbsp;the&nbsp;server&nbsp;on&nbsp;the&nbsp;same&nbsp;domain&nbsp;or&nbsp;in&nbsp;the&nbsp;different&nbsp;domain&nbsp;etc.  
&nbsp;  
I&nbsp;have&nbsp;attached&nbsp;one&nbsp;sample&nbsp;for&nbsp;visit&nbsp;maps.thinkgeo.com&nbsp;using&nbsp;iFrame,&nbsp;and&nbsp;can&nbsp;you&nbsp;have&nbsp;a&nbsp;test&nbsp;on&nbsp;your&nbsp;local&nbsp;machine?&nbsp;If&nbsp;it&nbsp;also&nbsp;can't&nbsp;work,&nbsp;so&nbsp;I&nbsp;guess&nbsp;there&nbsp;are&nbsp;some&nbsp;configuration&nbsp;problems&nbsp;about&nbsp;your&nbsp;server&nbsp;machine&nbsp;or&nbsp;your&nbsp;client&nbsp;browser,&nbsp;for&nbsp;example,&nbsp;when&nbsp;the&nbsp;security&nbsp;settings&nbsp;of&nbsp;the&nbsp;client&nbsp;browser&nbsp;set&nbsp;to&nbsp;high&nbsp;in&nbsp;IE8&nbsp;and&nbsp;maybe&nbsp;you&nbsp;can't&nbsp;see&nbsp;anything&nbsp;anymore.&nbsp;So&nbsp;please&nbsp;set&nbsp;the&nbsp;security&nbsp;settings&nbsp;to&nbsp;low&nbsp;and&nbsp;give&nbsp;full&nbsp;Permissions&nbsp;to&nbsp;everyone&nbsp;for&nbsp;the&nbsp;deployment&nbsp;server&nbsp;and&nbsp;the&nbsp;shape&nbsp;file&nbsp;data&nbsp;source&nbsp;you&nbsp;are&nbsp;consuming.&nbsp;  
&nbsp;  
If&nbsp;it&nbsp;also&nbsp;can’t&nbsp;work,&nbsp;please&nbsp;publish&nbsp;your&nbsp;server&nbsp;using&nbsp;one&nbsp;public&nbsp;IP&nbsp;and&nbsp;so&nbsp;we&nbsp;can&nbsp;visit&nbsp;it&nbsp;remotely.  
&nbsp;  
Have&nbsp;you&nbsp;done&nbsp;a&nbsp;test&nbsp;on&nbsp;the&nbsp;machine&nbsp;where&nbsp;the&nbsp;map&nbsp;server&nbsp;had&nbsp;deployed?&nbsp;Please&nbsp;tell&nbsp;us&nbsp;the&nbsp;results&nbsp;about&nbsp;it.  
&nbsp;  
If&nbsp;you&nbsp;have&nbsp;additional&nbsp;questions,&nbsp;please&nbsp;let&nbsp;us&nbsp;know.  
&nbsp;  
Thanks,  
&nbsp;  
Khalil  
  
[pinkTiles.htm](https://community.thinkgeo.com/uploads/default/original/2X/f/fba3675f21818557b1a9d8d69f5522262b485f5d.htm) (318 Bytes)

---

<div class="post-metadata">

**Author:** ![Lishan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@Lishan](https://community.thinkgeo.com/u/Lishan)\
**Post date:** [September 15, 2010, 7:01pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/17 "2010-09-15T19:01:55Z")

</div>

Hi&nbsp;Khalil,

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

I&nbsp;tried&nbsp;your&nbsp;attached&nbsp;sample,&nbsp;it&nbsp;worked&nbsp;fine&nbsp;on&nbsp;my&nbsp;machine.&nbsp;(showed&nbsp;everything&nbsp;properly)

I&nbsp;have&nbsp;done&nbsp;a&nbsp;test&nbsp;on&nbsp;the&nbsp;machine&nbsp;where&nbsp;the&nbsp;map&nbsp;server&nbsp;had&nbsp;deployed.&nbsp;&nbsp;it&nbsp;idid&nbsp;not&nbsp;work&nbsp;either.&nbsp;&nbsp;It&nbsp;also&nbsp;displayed&nbsp;pink&nbsp;tiles..

I&nbsp;tried&nbsp;to&nbsp;lower&nbsp;my&nbsp;browsers&nbsp;privacy&nbsp;to&nbsp;low&nbsp;and&nbsp;it&nbsp;worked.&nbsp;&nbsp;(didn't&nbsp;show&nbsp;pink&nbsp;tiles&nbsp;any&nbsp;more..&nbsp;)&nbsp;Any&nbsp;thoughts&nbsp;on&nbsp;this?

Is&nbsp;there&nbsp;any&nbsp;other&nbsp;way&nbsp;to&nbsp;solve&nbsp;this&nbsp;problem?&nbsp;cuz&nbsp;it's&nbsp;very&nbsp;undesirable&nbsp;to&nbsp;ask&nbsp;clients&nbsp;to&nbsp;change&nbsp;their&nbsp;browser's&nbsp;settings&nbsp;to&nbsp;make&nbsp;an&nbsp;application&nbsp;work...&nbsp;is&nbsp;it&nbsp;something&nbsp;to&nbsp;do&nbsp;with&nbsp;the&nbsp;Map&nbsp;server&nbsp;configuration&nbsp;(i&nbsp;already&nbsp;set&nbsp;permission&nbsp;to&nbsp;"public&nbsp;website")?&nbsp;&nbsp;btw,&nbsp;does&nbsp;any&nbsp;of&nbsp;your&nbsp;API&nbsp;use&nbsp;cookies&nbsp;or&nbsp;require&nbsp;information&nbsp;from&nbsp;the&nbsp;client&nbsp;side&nbsp;(projection?..)?&nbsp;

&nbsp;

thanks&nbsp;a&nbsp;lot!

&nbsp;

Roson

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [September 18, 2010, 9:39pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/18 "2010-09-18T21:39:27Z")

</div>

Hi,&nbsp;Lishan

If&nbsp;you&nbsp;lower&nbsp;your&nbsp;browsers&nbsp;privacy&nbsp;to&nbsp;low,&nbsp;and&nbsp;can&nbsp;it&nbsp;work&nbsp;as&nbsp;you&nbsp;have&nbsp;expected?  
&nbsp;  
I&nbsp;guess&nbsp;this&nbsp;is&nbsp;the&nbsp;limitation&nbsp;for&nbsp;clients’&nbsp;browser&nbsp;and&nbsp;not&nbsp;for&nbsp;the&nbsp;server.  
Also&nbsp;we&nbsp;don’t&nbsp;use&nbsp;cookies&nbsp;or&nbsp;require&nbsp;information&nbsp;from&nbsp;client&nbsp;side&nbsp;in&nbsp;WebEdition&nbsp;product.&nbsp;Only&nbsp;some&nbsp;JavaScript&nbsp;files&nbsp;will&nbsp;be&nbsp;rejected&nbsp;into&nbsp;the&nbsp;page&nbsp;of&nbsp;client.  
&nbsp;  
Thanks,  
&nbsp;  
Khalil

---

<div class="post-metadata">

**Author:** ![Lishan](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@Lishan](https://community.thinkgeo.com/u/Lishan)\
**Post date:** [September 20, 2010, 12:08pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/19 "2010-09-20T12:08:12Z")

</div>

Hi&nbsp;Kahlil,

Yes.&nbsp;It&nbsp;works&nbsp;as&nbsp;expected&nbsp;if&nbsp;I&nbsp;lower&nbsp;the&nbsp;browsers&nbsp;privacy&nbsp;to&nbsp;low.

I&nbsp;found&nbsp;that&nbsp;there's&nbsp;another&nbsp;way&nbsp;that&nbsp;seems&nbsp;to&nbsp;make&nbsp;it&nbsp;work&nbsp;as&nbsp;expected&nbsp;instead&nbsp;of&nbsp;setting&nbsp;the&nbsp;browsers&nbsp;privacy&nbsp;to&nbsp;low.&nbsp;&nbsp;&nbsp;that&nbsp;is,&nbsp;add&nbsp;the&nbsp;following&nbsp;line&nbsp;of&nbsp;code&nbsp;in&nbsp;the&nbsp;Default.aspx.cs&nbsp;&nbsp;.&nbsp;&nbsp;"It&nbsp;will&nbsp;set&nbsp;**P3P&nbsp;(Platform&nbsp;for&nbsp;Privacy&nbsp;Preferences&nbsp;Project)**&nbsp;header.&nbsp;It&nbsp;allows&nbsp;the&nbsp;browser&nbsp;(specially&nbsp; **Internet&nbsp;Explorer** )&nbsp;to&nbsp;through&nbsp;all&nbsp;the&nbsp; **third-party&nbsp;cookies** &nbsp;(which&nbsp;may&nbsp;be&nbsp;set&nbsp;through&nbsp; **iFrame** )."&nbsp;-&nbsp;[viralpatel.net/blogs/2008/12...frame.html](http://viralpatel.net/blogs/2008/12/how-to-set-third-party-cookies-with-iframe.html)

`HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSPCOR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");`

It&nbsp;works.&nbsp;It&nbsp;seems&nbsp;to&nbsp;be&nbsp;doing&nbsp;something&nbsp;equivalent&nbsp;to&nbsp;setting&nbsp;the&nbsp;broswer&nbsp;privacy&nbsp;to&nbsp;low&nbsp;and&nbsp;it's&nbsp;done&nbsp;behind&nbsp;the&nbsp;scene&nbsp;in&nbsp;the&nbsp;code?&nbsp;What&nbsp;do&nbsp;you&nbsp;think&nbsp;about&nbsp;this?&nbsp;&nbsp;Thanks!

Roson

---

<div class="post-metadata">

**Author:** ![Khalil](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/bc8723/32.png) [@Khalil](https://community.thinkgeo.com/u/Khalil)\
**Post date:** [September 20, 2010, 9:21pm UTC](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394/20 "2010-09-20T21:21:06Z")

</div>

Hi,&nbsp;Lishan

Thanks&nbsp;for&nbsp;your&nbsp;feedback&nbsp;about&nbsp;this&nbsp;problem.  
We&nbsp;don’t&nbsp;have&nbsp;the&nbsp;environment&nbsp;(such&nbsp;as&nbsp;IE&nbsp;6)&nbsp;to&nbsp;test&nbsp;it&nbsp;so&nbsp;that&nbsp;I&nbsp;don’t&nbsp;know&nbsp;how&nbsp;it&nbsp;works.  
Apparently,&nbsp;it’s&nbsp;a&nbsp;hack&nbsp;for&nbsp;your&nbsp;problem.&nbsp;I&nbsp;also&nbsp;need&nbsp;to&nbsp;state&nbsp;that&nbsp;we&nbsp;don’t&nbsp;use&nbsp;any&nbsp;cookies&nbsp;to&nbsp;store&nbsp;any&nbsp;information&nbsp;in&nbsp;WebEdition&nbsp;product,&nbsp;so&nbsp;that&nbsp;I&nbsp;don’t&nbsp;know&nbsp;what&nbsp;it&nbsp;has&nbsp;fixed.&nbsp;Anyway,&nbsp;it&nbsp;resolves&nbsp;your&nbsp;problem&nbsp;and&nbsp;also&nbsp;I&nbsp;think&nbsp;it&nbsp;won’t&nbsp;cause&nbsp;secure&nbsp;problem&nbsp;if&nbsp;you&nbsp;don’t&nbsp;store&nbsp;any&nbsp;sensitive&nbsp;information&nbsp;on&nbsp;the&nbsp;client-side.  
&nbsp;  
Thanks,  
&nbsp;  
Khalil

[Next page](https://community.thinkgeo.com/t/get-pink-screen-when-using-iframe/5394.md?page=2)
