.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Proxy Authentication Required

Posted By:      Posted Date: October 14, 2010    Points: 0   Category :SharePoint

Hi guys,

I have an error at RSSWebPart:

"Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )"

Now web.config looks like:

<defaultProxy useDefaultCredentials="true">
      <proxy usesystemdefault="false" proxyaddress="http://<proxy>:8080" bypassonlocal="true" />

And user account under which Application pool is running has internet access.

Any ideas? Can I set user credentials in web.config?

View Complete Post

More Related Resource Links

The request failed with HTTP status 407: Proxy Authentication Required (the ISA server requires auth


I'm new to webservice. I writed an example to work with a web service which is supplied on Internet (its url: http://ws.cdyne.com/delayedstockquote/delayedstockquote.asmx ) when i tried running i got an error message as System.Net.WebException was unhandled
  Message="The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )."

I had found some solutions such as:
+ using ISA firewall
+ configuring proxy from Machine.config
+ inside coding

The first:  I used ISA firewall but i still got the same error, my problem didn't resolve. I guessed that is because ISA firewall needn't use Credentials (username/password).

The second:
 I tried coding in my source, it was okie. This solution is good because following this way i can get defaultCredentials from cache but needn't define straightforwardly my credentials as username/password
my code is as follows:

DelayedStockQuote wsStock =

WebServiceBindingAttribute is required on proxy classes.

  I created a soap based web service and create a function named SetclientCredential which set the client credential using Microsoft.Web.Services3.Security.Tokens.UsernameToken the code sample is given below: <System.ComponentModel.DesignerCategoryAttribute("code")> _ <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _ <System.Web.Services.WebServiceBinding(Name:="LocalBinding", Namespace:="http://tempuri.org/Service", Location:="http://tempuri.org/Service.asmx?wsdl")> _ <ToolboxItem(False)> _ Public Class Service Inherits System.Web.Services.Protocols.SoapHttpClientProtocol <SoapDocumentMethod(Action:="http://tempuri.org/SetClientCredential", _ RequestNamespace:="http://tempuri.org/", _ RequestElementName:="GetUserNameRequest", _ ResponseNamespace:="http://tempuri.org/", _ ResponseElementName:="GetUserNameResponse"), _ WebMethod(Description:="Obtains the User Name")> _ Public Sub SetClientCredential(ByVal username As String, ByVal userpass As String) username = "ADMIN" userpass = "password" Dim usernametoken As New Microsoft.Web.Services3.Security.Tokens.UsernameToken(username, userpass) Dim cProxy As New Microsoft.Web.Services3.WebServicesClientProtocol cProxy.SetClientCredential(usernametoken)

Authentication required, redirect to login page

Hi,I want authentication required for all webpages in a site. If i copy the url of any of the web page in the current site and paste it in the url address i should redirect to login page. If you have any solution please suggest it.

silverlight + WCF Service + Dynamic proxy(custom binding) + basic authentication on iis

hi all, I am having an issue with how to get windows identity in silverlight project. Below is my scenario: the silverlight application need to get data from server via WCF service, i used the way that built dynamic proxy at runtime and aslo used custombinding in this case. Now my application need to deploy on iis and chosen "basic authentication" as a authentication mode. Thus i have chosen authentication mode in WCF was " <security authenticationMode="UserNameOverTransport">". At the client side where kind of project is silverlight that i need have to dynamic proxy with custombinding. My question is: In basic authentication how can i get windows identity to set to chanelfactory.Credentials: _channelFactory = new ChannelFactory<TWebService>(this._binding, new EndpointAddress(_endpointAddress));            _channelFactory.Credentials.UserName = new UserNamePasswordClientCredential();            _channelFactory.Credentials.UserName.UserName = "username";            _channelFactory.Credentials.UserName.Password = "password"; actually, i do not want to use Windows a

Lotus Notes users get "Authentication Required" when viewing an alert email with a graphic

(This is a SharePoint 2007 question, but I only see SharePoint 2010 in the Forum options...kind of odd since SharePoint 2010 has not been released.)If our users open email alerts in Lotus Notes, and the email has an image, they are presented with a prompt for credentials that says:"Authentication RequiredEnter your username for Unkown at sharepoint.ourcompany.comUsername________________________Password________________________[ ] Save these in an Account in my address book[OK][Cancel]"Emails without graphics do not prompt for credentials.Does anybody know why this happens, or how we can fix it?

Proxy Authentication

Hi guys, I need a little help.I am working on my project as I am create a if statement that if there is no string in the textbox, displaying the messagebox otherwisse connect to the proxy. Here it is the code:   Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Create a new request to the mentioned URL. Dim a As HttpWebRequest = DirectCast(HttpWebRequest.Create("http://whatismyip.com/automation/n09230945.asp"), HttpWebRequest) ' Obtain the 'Proxy' of the Default browser. Dim Proxy As New WebProxy(Address1.Text, Integer.Parse(Ports.Text)) ' Print the Proxy Url to the console. Dim myProxy As New WebProxy() Try If ProxyAddress1.Text Is Nothing Then MsgBox("plz enter the address and ports") Else a.Proxy = New WebProxy(Address1.Text, Integer.Parse(Ports.Text)) Dim c As HttpWebResponse = DirectCast(a.GetResponse(), HttpWebResponse) Dim reader As New StreamReader(c.GetResponseStream()) Dim ip As String = reader.ReadToEnd() MsgBox(ip) If Proxy.Credentials.GetCredential Then myProxy.Credentials = New NetworkCredential(ProxyUsername.Text, ProxyPassword.Text) a.Proxy = Proxy End If End If Catch ex As Exception MsgBox("proxy server fails") End Try End Sub   My problem is that how can I check if the proxy ser

Proxy Authentication in svcutil

Hi, i want to use svcutil (or VS2008 Add Service Reference) to generate a proxy client class for a internet public wcf service, the thing is im behind a proxy, and svcutil fails:    Error de la solicitud con el código de estado HTTP 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).And VS2008 also fails:The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).Error en el servidor remoto: (407) Se requiere autorización del proxy.How can i add a service reference or create a proxy class thru the proxy server ?Thanks!!

Required authentication

Hello, Is there a way to remove the message of authentication required each time I want to access a report. Thanks in advance Regards Aya

Determine if the page required authentication?


I'm using Forms Authentication.  Is there a way to determine whether a page (or request) required authentication or not?  My site has logged-in areas, and logged-out areas (all set in web.config under authorization sections), and I'd like a good way to know if asp.net required authentication to be set or not.

I'm using ASP.Net 2.0

ASP.NET PageMethods - Back Button Causing 'Authentication Required' Prompt


Since last week I've had a really odd issue with PageMethods and the back button which i've never seen before.

Essentially, I have a 'home page' which on document.ready (using jQuery), loads some data through PageMethods, and then renders a list - from which you can click through to a details page about  the item. In general use, it works fine. However, using the back button after clicking through (ie: going back to the home page), it throws a PageMethods error. The browser's 'authentication required' prompt appears, and if you click cancel, the server returns a 404. The error returned by PageMethods on the client side is 'authentication failed'.

Just FYI, the application is using ASP.NET forms authentication. The weird thing is, this happens as soon as you click the link and click back. It's not like the authentication cookie has expired or anything, and if you click cancel when the prompt appears and refresh the page, it works fine. I just can't work out what is going on.

I've tried disabling caching on the page [as I thought it was something to down with some browsers' caches of the DOM), but the same thing happens.

One workaround i've had is to redirect the page to itself if the PageMethods error is 'authentication failed', which does work - but only when you cancel the authentic

authentication required


 i have a website where anonymous access is enabled, yet when i run it i get a box titled 'Authentication Required' and I have to enter a username and password


the text in the window says

enter username and password for "" at http://localhost


if i click cancel, the page starts to load, but the authentication window pops up again.  This happens several times, each time i cancel and eventually the page loads up ( a login page!) but its not being displayed correctly.


How can I get rid of this authentication window ?? 

Authentication issues with clients behind proxy


I am having an issue with clients behind a proxy and Windows Integrated authentication on IIS 7.5 - as far as I know this was never an issue when the site was on IIS 6.

Essentially, their credentials are not passing for resources in _layouts or _themes and they are repeatedly prompted.  The IIS log file never shows their credentials for these requests (shows a 401 status), but it does show for the aspx pages (with a 200 status).

When accessing without the proxy, everything is good - so I know it's not an authorization issue.

Why would these resource folders behave differently? Has anyone else seen this? I know there are issues with WIA through a proxy but why did IIS 6 not have a problem?  Google did not turn up much ...

Windows authentication using SSRS 2008 R2 on separate machine from SQL db engine - Kerberos required


Is this still an issue in SSRS 2008 R2:  Can't use Windows authentication (integrated security) when the SQL database server is on a different machine than Reporting Services -- unless you (1) use Kerberos security, or (2) store credentials, or (3) use credentials supplied by the user when running report AND use as Windows credentials to impersonate?

I have SSRS 2008 R2 set up on a different machine than MSSQLServer 2008 R2.  When I create a report on the SSRS server that uses a data source specifying Windows integrated security, my symptom is that I get the following  error:

Cannot create a connection to data source 'myDataSource'. ---> System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

Here is a blog describing the problem under SSRS 2005 (with IIS): http://blogs.msdn.com/b/jgalla/archive/2006/03/16/reporting-services-and-windows-authentication.aspx



Richard Thompson

create proxy client with SvcUtil from service using https+cert authentication


Hi all,

I have build two web services one is wcf hosted in iis and the other one is java web service (jax-ws ri) hsted on tomcat. Both of the services uses https and certificate authentication.The certificates are valid and when I check the wsdl's from the browser I can see them without any warning.

So I want to create a wcf client for the services with svcutil. I have created the necessary config file for svcutil (svcutil.exe.config).

When I try to create the proxy files for the java service (svcutil http://JavaServiceIpAddress/service?wsdl) I receive

"metadata contains a reference that cannot be resolved .

<Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/" >
   <faultcode xmlns:a="http://www.w3.org/2003/05/soap-envelope" xmlns="">a:Client</faultcode>
   <faultstring xmlns="">Cannot find dispatch method for {}</faultstring>

the request was aborted: Could not create ssl/tls secure channel"


When I execute svcutil http://WcfServiceIpAddress/service.svc the proxy and configs file are created smoothly. When I try svcutil http://WcfServiceIpAddress/service.svc?wsdl

"error: cannot obtain metadata from http://WcfServiceIpAddress/service.svc?wsdl


Getting responce as "Full authentication is required" when sent request via SOAPUI.


I am new to SoapUI.

 I created a project, imported WSDL given to me by developer. Enabled the “Authenticate preemptively” flag under “preferences -> HTTP Settings”.

But on sending the request, I am getting responce "This request requires HTTP authentication (Full authentication is required to access this resource)".

How can I resolve this?

Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend