web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Help: CRM 2011 - Dashboard iFrame - Red 'X'

(0) ShareShare
ReportReport
Posted on by 185

I am trying to create an iFrame (aspx page) that contains a System.Web.UI.DataVisualization.Charting.Chart and place it in my Dashboard.  I have not been able to find very much information regarding this.

I am trying to pull data from a different database in which, my ASPX page contains the appropriate values on the chart, but when I create a new Dashboard item, add my iFrame, and map it to my local web app, I get a Red 'X' in the created frame and it appears to dump the Image File to my local webApp directory. 

Could this be a security issue or am I doing something wrong?

 

Thanks,

 

Jason

*This post is locked for comments

I have the same question (0)
  • Gustaf Westerlund Profile Picture
    on at

    Have you tried checking it out by using F12 and maybe putting it in a custom made HTML-page with an IFrame with the same syntax as CRM has for the Iframe to see what setting makes it break? Some cross-frame scripting issue perhaps?

  • Jason Goldsmith Profile Picture
    185 on at

    Thanks for the comment, but that didn't work.  I created a HTML page and placed an IFrame control with my charted page embedded within the IFrame tag.  Instead of getting a Red 'X', I just get a <blank> page.  Going back to my original solution, I did notice that 'Restrict cross-frame scripting' is selected, but it's disabled, so I cannot unselect it.  Any additional assistance, would be greatly appreciated.  Thanks!!!

  • Suggested answer
    Gustaf Westerlund Profile Picture
    on at

    Hi again,

    Yes, I think it is a security issue. Try hosting the webpage you are setting up in a real website (if you have one available) and try to make sure that your IE has the the same security zone for both sites. It will not be very satisfied if you have different security zones between the hostpage and the Ifamed page.

  • Jason Goldsmith Profile Picture
    185 on at

    Thanks a ton...Unfortunately, I do not have access to our CRM server, so I'm working with my network team.  But do you think placing my web page(s) in the ISV folder would resolve the issue????

    To your point, if I point my new dashboard frame's iFrame to something like Bing, it pulls it up correctly.  So, I was either thinking it was a Security issue (CRM server not being able to fully communicate with my local webpage) or there was an issue with how the Chart was setup.

  • Suggested answer
    Gustaf Westerlund Profile Picture
    on at

    Well, the point is that IE has different levels of security set up for different sites. These zones are Internet, Trusted Sites, Intranet, Restricted Sites. Which sites are in put in each zone is usually handled by which URL they have but there are also some rules, especially for Local Intranet which tries to detect which sites might be local, and also Internet which almost all site which are not in the other site will belong to.

    If your host page (CRM) has a different zone than the Iframe site, IE will block certain things from it, like some scripting. Your Iframe site might be checking for this and this might be why you are seeing the Red cross.

  • Verified answer
    Jason Goldsmith Profile Picture
    185 on at

    I got it.  I had to go into the Customization (Settings + Solution + Dashboards OR Settings + Customizations + Customize this System + Dashboards) to clear the 'Restrict Cross-frame scripting' checkbox - it was disabled.  I originally created my New Dashboard item by going into Workplace + Dashboards and creating a New Dashboard that way.  Thank you for all your help - while it wasn't the absolute solution - it did lead me down the right path.

    Once I cleared the 'Restrict Cross-frame scripting' my iFrame displays appropriately.

  • Gustaf Westerlund Profile Picture
    on at

    I'm happy we were able to help you. As you started the thead, please mark one of the suggested answers as an answer to show that the thread is answered.

  • Suggested answer
    Santosh bhagat Profile Picture
    464 on at

    Create new dashboard then uncheck Restrict Cross-frame scripting then add ypur html or .xap page as webresource.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans