Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 5th, 2005, 06:20 AM
Registered User
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Proxy Authentication Required in ASP.Net appln.


I am trying to read a XML file over the internet from behind a firewall. The calling program is coming up with this error:

The remote server returned an error: (407) Proxy Authentication Required.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

Source Error:

Line 38: Dim ds As New DataSet
Line 39: 'ds.ReadXml("http://www.asp.net/modules/articleRss.aspx?count=7&mid=64")
Line 40: ds.ReadXml("http://www.rediff.com/rss/inrss.xml")
Line 41: DataGrid3.DataSource = ds.Tables(2).DefaultView
Line 42: DataGrid3.DataBind()

Any idea how I can provide the proxy authentication within the vb.net code when reading a XML file?


Old March 2nd, 2007, 02:43 AM
Registered User
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts


I am an asp.net developer.I have also facing same problem for reading an XML from a given link. i have try it for another link it is ok. but the link which have authentication to open is not read into dataset.
i have put code like below

dim ds as new dataset
ds.readxml(link as string)

i have put the authenticated link directly to the browser. it the prompted for user name and password. there when i give the uname and pwd it is open.

but how can i authenticate the XML at the time of read xml in dataset in asp.net through coding.
Can any body know the process? then please help me. and send details code and procedure

waiting for kind reply


Old March 2nd, 2007, 09:12 AM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Use the System.Net.WebProxy object to pass credentials to a proxy server.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
================================================== =========
Why can't Programmers, program??
================================================== =========

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integrating from of Vb.net with C# appln pady123 C# 2 September 27th, 2007 07:50 PM
Problem after installing the setup of a .NET appln sarboo General .NET 0 June 20th, 2006 04:02 PM
Generate Proxy with Authentication rodmcleay .NET Web Services 0 April 12th, 2005 01:40 AM
Windows Authentication through a Proxy richsabel General .NET 2 March 2nd, 2005 12:00 PM
Help required for Directory Authentication MSUser General .NET 2 March 29th, 2004 03:56 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.