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

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

Authentication issues with clients behind proxy

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

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 ...

View Complete Post

More Related Resource Links

authentication issues using exchange web service within sql CLR functions

Hi Hope this is the right forum for this question, we have a VB assembly we have written to perform simple email functions via calls to EWS. We use a high level user who has rights to impersonate the normal exchange users, and this usually works OK, but what we are seeing is that occasional email messages are being created in the wrong user's draft folders. We belive this is because the impersonating account information is getting overwritten within our code when multiple users access the functions at the same time Example call to the WS is... <Microsoft.SqlServer.Server.SqlProcedure()> _ Public Shared Sub InsertEmail( _ ByVal Impersonate As String, _ ByVal Subject As String, _ ByVal Body As String, _ ByVal ToAddress As String, _ ByVal CCAddress As String, _ ByVal BCCAddress As String, _ ByVal HTMLEmail As Boolean, _ <Out()> ByRef ItemID As String, _ <Out()> ByRef ChangeKey As String) 'ByVal CCAddress As String, _ 'ByVal BCCAdddress As String, _ Using esb As Helper = New Helper(Impersonate) ' Create the CreateItem request. Dim createEmailRequest As New ews.CreateItemType() ' Specifiy how the e-mail will be handled. createEmailRequest.MessageDisposition = ews.MessageDispositionType.SaveOnly createEmailRequest.MessageDispositionSpecified

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

Authentication issues when moving to IIS 7

I am having a strange authentication issue moving sites from IIS 6 to 7. I am still very new to IIS 7 and have not been able to find a reason for this. The site is running with form authentication and windows authentication enabled and anonymous disabled just as it was in IIS 6. I did not find any useful posts here or on the IIS site, so I am hoping someone might know the answer to this. When accessing the site I can get to any page on the first level of directories just fine, whether its protected by by forms authentication or if all authenticated users have access, IE http://mysite/directory1. But if i try to access any subdirectories I always get sent to the page listed in the web.config for the loginURL even on pages that are not protected, IE http://mysite/directory1/subdirectory. If I turn off forms authentication I can access the public pages just fine but the protected pages throw up a windows login prompt. So the issue seems to be with the forms authentication in IIS 7. Has anyone encountered this behavior when transitioning .net sites to IIS 7 or have a possible resolution for this? Any help is appreciated.

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!!

IIS7 anonymous authentication issues (401 Unauthorized Error)


I am trying to get anonymous access to my asp.net MVC web application.  My application pool is running as 'Network Service' adn I have given this account full access to my website root folder.  I have also enabled Anonymous Authentication within IIS for my website.  I have also given the 'IUSR' account full control of my website root folder (I understand that IIS runs as this account with anonymous access). 

What am I missing?  I continuously get the following 401 ERROR :

HTTP Error 401.0 - Unauthorized

You do not have permission to view this directory or page.

  • The authenticated user does not have access to a resource needed to process the request.
Logon Method  Anonymous
Logon User Anonymous
Module ManagedPipelineHandler
Notification ExecuteRequestHandler
Handler UrlRoutingHandler
Error Code


Proxy Authentication Required


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?

troubleshooting client certificate authentication issues



i am using self created certs for client authentication. for one of the cert it works fine but ith another cert it does work. i get an error, can't rer connect to server.

is there any way/tool to troubleshoot cert issue?



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


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 =

SSRS 2008 reporting service proxy issues


Hi friends,

We are facing the following issues after upgrading web reference to ReportService2010.asmx reporting service.


  1. The type or namespace name 'ReportParameter' could not be found (are you missing a using directive or an assembly reference?)   
  2. The type or namespace name 'ItemTypeEnum' could not be found (are you missing a using directive or an assembly reference?)    

Have any of you faced the same issues while upgrading the service reference?  Are there any alternative classes for the same. 

One alternative to the error no. 2 has been given in the following link.


But I am not able to find solution for error 1.  Please provide your views.



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.NET Forms Authentication - Part 1

Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.

Web Matrix + Windows Authentication


I'm curious if its possible to get windows auth working with asp.net webpages/webmatrix.

I've got it published to IIS with windows auth turned on and anonymous/forms/basic turned off.

I'm guessing the WebSecurity Helper probably won't work here but can you access User.Identity.Name etc?

Sorry for the newbie questions, I've only just started working with asp.net ^^,

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