Friday, September 15, 2006

Web Capture Issue

III.12.03 - A web capture web part that accesses information from an external site requires action from me. How can I avoid this?
A:
I am using a Web Capture part that gets information from news.bbc.co.uk. Every time I access the page containing this web part, a message box comes up with the following text

"This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?"

On Pressing OK, the part refreshes correctly.

However I want to avoid having to press OK every time I access the page. This is how to do it.

In Internet Explorer select Tools from the Menu line. Then

Internet OptionsSecuritywith Local Intranet selected click on 'Custom Level'In the Miscellaneous section change the value of 'Access Data Sources Across Domains' from Prompt to Enable

(Thanks to John Dougherty for asking a question that had been annoying me for weeks; thanks too to David McKenzie for supplying the answer)

Warning: Any effects on your sites/clients security caused by amending this security item in IE are your problem.

P.S. 'CINsyg' sent me this comment

"It can be done by adding the following line above the namespace in your code
[assembly:AllowPartiallyTrustedCallers]

(or by setting the web.config to Full trust, but that is not the way to go). "

No comments: