Microsoft Knowledge Base Email Alertz

(892950) - Describes a problem that occurs because InfoPath 2003 hosts ActiveX controls in the Internet security zone.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 892950 - Last Review: September 22, 2011 - Revision: 4.0

ActiveX controls that perform cross-domain data binding cannot be used in InfoPath

SYMPTOMS

ActiveX controls that perform cross-domain data binding cannot be used in Microsoft Office InfoPath 2007 or in Microsoft Office InfoPath 2003. When you add an ActiveX control to an InfoPath form, you receive the following error message:
Safety settings on this machine prohibit accessing a data source on another domain.

CAUSE

This problem occurs because InfoPath hosts ActiveX controls in the Internet security zone. Therefore, if an ActiveX control tries to perform cross-domain data binding, the binding is unsuccessful. If your InfoPath form is located in one domain or is published in one domain and an ActiveX control tries to access a data source in another domain, you experience this problem.

Note By default, Microsoft Internet Explorer disables the Access data sources across domains setting in the Internet security zone.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to reproduce the problem

Add a Microsoft Office Spreadsheet 11.0 ActiveX control to an InfoPath 2003 form. To do this, follow these steps:
  1. Start InfoPath 2003.
  2. On the File menu, click Design a Form.
  3. In the Design a Form pane, click New Blank Form.
  4. On the Insert menu, click More Controls.
  5. In the Controls pane, click Add or Remove Custom Controls.
  6. In the Add or Remove Custom Controls dialog box, click Add.
  7. In the Add an ActiveX Control dialog box, click Microsoft Office Spreadsheet 11.0, and then click Next four times.
  8. Click Finish, and then click OK to add the ActiveX control to the Controls pane.
  9. In the Controls pane, add the Microsoft Office Spreadsheet 11.0 control to the form to create a new spreadsheet control.
  10. Double-click the new spreadsheet control. In the Microsoft Office Spreadsheet 11.0 Properties dialog box, click the Import tab.
  11. In the Data type box, click HTML.
  12. In the URL box, type the following:
    http://moneycentral.msn.com/scripts/webquote.dll?iPage=qd&Symbol=msft
  13. Click Import Now.

    You receive the error message that is mentioned in the "Symptoms" section.

    Note If you receive a Microsoft Office 2003 Web Components message box, click Cancel.

For additional information about security guidelines for InfoPath 2003 forms, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/aa662303(office.11).aspx (http://msdn2.microsoft.com/en-us/library/aa662303(office.11).aspx)

APPLIES TO
  • Microsoft Office InfoPath 2007
  • Microsoft Office InfoPath 2003
Keywords: 
kbcontrol kbsecurity kbtshoot kbbug kbprb KB892950
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Ivan Report As Irrelevant  
Written: 8/29/2005 6:12 AM
This is error also occurs if you are using a disconnect XML data file using Pivot Table in conjunction with DataSource control. I was able to overcome the problem when adding the website as a trusted site.