Problem accessing the Internet from a web part
-
Wednesday, May 16, 2012 9:18 AM
Hi I have a problem accessing the Internet from a couple of web parts. I think it is being blocked by our company firewall.
I have read that you can change the web.config but this seems extreme. Is there another way of enabling the Internet access? Specifying a proxy or something?
All Replies
-
Wednesday, May 16, 2012 10:27 AM
You can set up your request to use a proxy.
Scot
Author, Professional Business Connectivity Services
Author, Inside SharePoint 2010 Blog, www.shillier.com
Twitter, @ScotHillier
SharePoint Trainer, Critical Path Training -
Wednesday, May 16, 2012 12:47 PM
Is there not a way around it Scot?
What I mean is without writing code
-
Wednesday, May 16, 2012 2:36 PM
I have found that the Dilbert is sourced from a Universal Data Connection File I think, with it being a Data Connection library.
I just cannot find where the link is set.
-
Wednesday, May 16, 2012 4:55 PM
This forum section is for programming/code solutions to sharepoint problems. If that's not an option I would suggest using one of the other SharePoint sub-forums.Is there not a way around it Scot?
What I mean is without writing code
-
Wednesday, May 16, 2012 8:10 PM
Hi Dan,
If you suspect the content for your web part is being "blocked" by your firewall, then you'll need to speak to the administrators of your firewall to ensure the content is being allowed through. You are correct with your other statement, the way SharePoint becomes "Proxy aware" is by letting it know in the web.config for your web application that your network is using a proxy. You can add the code below to enable this.
<system.net> <defaultProxy> <proxy autoDetect="true" proxyaddress="add your proxy ip or FQDN" bypassonlocal="true" /> </defaultProxy> </system.net>
Paul Turner http://redmanta.co.uk/blog Twitter: @RedMantaUK MCTS:WSS,MOSS,2010 MCITP:2010.
Please remember to click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.- Marked As Answer by Qiao WeiMicrosoft Contingent Staff, Moderator Friday, May 25, 2012 9:30 AM

