=?Utf-8?B?RWQgU2huZWtlbmRvcmY=?=
<EdShnekendorf@discussions.microsoft.com> wrote in
news:4A2175A3-E498-47A8-8138-ACC56A2CFB45@microsoft.com:
> <userNameAuthentication
> userNamePasswordValidationMode="Custom"
> customUserNamePasswordValidatorType="MyValidator, App_code"/>
This line looks a bit fishy... I think you didn't set your validator type
correctly.
I could be wrong ... Since I normally use a web application project.
When you set a breakpoint in your validation code - is it being hit?
Ed Shnekendorf - 13 Nov 2007 15:09 GMT
Hi,
The problem is that I'm not even getting this far.... I've generated the
service host and I can see the WSDL when I browse to it. I then use the Add
Service Reference wizard in the client to generate a proxy class and the
proxy class is not generated with access to credentials.
I've seen samples where people set credentials like this:
ChannelFactory<IMDMSInterface> factory =
new ChannelFactory<IMDMSInterface>("MyBinding");
factory.Credentials.UserName.UserName = "test1";
factory.Credentials.UserName.Password = "1tset";
IMyService service = factory.CreateChannel();
But I was thinking that I shouldn't have to do this and should be able to
access the Credentials object directly from the generated proxy class.
Any thoughts? Thanks,
Ed
> =?Utf-8?B?RWQgU2huZWtlbmRvcmY=?=
> <EdShnekendorf@discussions.microsoft.com> wrote in
[quoted text clipped - 10 lines]
>
> When you set a breakpoint in your validation code - is it being hit?