RE: WCF Proxy Server settings not working
- From: stcheng@xxxxxxxxxxxxxxxxxxxx ("Steven Cheng")
- Date: Thu, 02 Oct 2008 05:38:02 GMT
Thanks for your reply Clint,
Based on your further descrpition, we can get that it is in the #1
approach("Research" service), the running security account is not the
correct one, that cause the proxy authentication failed.
Why are you changing the "anonymous user account" in IIS? Anonymous user
just represent the account that will be associated with each request(when
anonymous is enabled in IIS). However, for ASP.NET application(host
webservice or WCF), if you haven't do impersonate on the application or
each thread(by web.config or programmatically), that account won't affect
the security context of your ASP.NET web application. Also, from IIS
security perspective, it is always not good idea to set "anonymous account"
to a privileged one.
For your scenario, since you are using IIS5/XP, I think you should try
changing the worker process account of your ASP.NET web application. That
can be done by the <processModel> element in machine .config file. Here are
some reference articles which explains this:
#Process and request identity in ASP.NET
http://support.microsoft.com/kb/317012
#processModel Element (ASP.NET Settings Schema)
http://msdn.microsoft.com/en-us/library/7w2sway1.aspx
Assign an account which is valid to the remote proxy server in the
username/password attributes of the <processModel> element:
this is different from IIS6(Where you can use ApplicationPool to specify
the process account you want to use).
If there is anything unclear, please feel free to let me know.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: =?Utf-8?B?Q2xpbnQ=?= <cmueller@xxxxxxxxxxxxx><8r4#2l5IJHA.4172@xxxxxxxxxxxxxxxxxxxxxx>
References: <FAF4E578-3A44-4B50-8954-C8FBDAE4BDC0@xxxxxxxxxxxxx>
Subject: RE: WCF Proxy Server settings not working
Date: Wed, 1 Oct 2008 08:46:01 -0700
info,
Hi Steven,
Thanks for your reply! I looked into what you suggested about the user
and found that when I checked the Environment.UserName property under1,
approach 2, I see my username. When I check that property under approach
it shows ASPNET. I changed the anonymous username in IIS (5.1 under XP) toa
domain account that has rights to the proxy server, and reran my tests.Still
the same thing - ASPNET shows up as the user.in
I've attached the code I'm using below, as well as the relevent sections
my Web.config file:client.GetIndustryProfile(1234);
In Test Project:
[Test]
public void GetFullIndustryProfile()
{
// ResearchClient is the top level "Research" WCF service that is
referenced by a Service Reference
using (ResearchClient client = new ResearchClient())
{
IndustryResearchResponse response =
// clipped Asserts
}
}
.
- Follow-Ups:
- RE: WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- References:
- WCF Proxy Server settings not working
- From: Clint
- RE: WCF Proxy Server settings not working
- From: "Steven Cheng"
- RE: WCF Proxy Server settings not working
- From: Clint
- WCF Proxy Server settings not working
- Prev by Date: RE: WCF Proxy Server settings not working
- Next by Date: RE: WCF Proxy Server settings not working
- Previous by thread: RE: WCF Proxy Server settings not working
- Next by thread: RE: WCF Proxy Server settings not working
- Index(es):
Relevant Pages
|
Loading