Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF / IIS 6

 
 
Old 03-01-2007   #1 (permalink)
dani.meier@gmail.com


 
 

WCF / IIS 6

Hi

I'm trying to run a WCF-Service under Win 2003 / IIS 6 (on Vista / IIS
7 it works!).
But here I always get the exception:
System.ServiceModel.FaultException: An error occured when verifying
security for the message.

I am using message-security with a custom Username-Authentication:

<system.serviceModel>
<services>
<service behaviorConfiguration="RmsServiceBehavior"
name="connvision.CvSystem.Core.Services.RangeManagerService.RangeManagementService">
<endpoint binding="wsHttpBinding"

contract="connvision.CvSystem.Core.Services.RangeManagerService.ServiceContracts.IRangeManagementService"
bindingConfiguration="RmsBinding" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="RmsBinding">
<security mode="Message">
<message clientCredentialType="UserName"
establishSecurityContext="false" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="RmsServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceCredentials
type="connvision.CvSystem.Core.Services.Common.ProviderServiceCredentials,
Services.Common.ServiceImplementation">
<userNameAuthentication
userNamePasswordValidationMode="Custom"

customUserNamePasswordValidatorType="connvision.CvSystem.Core.Services.Common.ProviderCredentialsValidator,
Services.Common.ServiceImplementation" />
<serviceCertificate findValue="localhost"
storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectName" />
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>

As I said, this all works pretty fine in IIS 7 with the same settings.
Do I have to change something for IIS 6?


Greets
Dani


My System SpecsSystem Spec
Old 03-01-2007   #2 (permalink)
dani.meier@gmail.com


 
 

Re: WCF / IIS 6

I find out that it doesn't seem to be an IIS 6 problem (or maybe not
only).
If I run the client from the same machine, it works - but not from a
remote machine...

so...?

Dani

My System SpecsSystem Spec
Old 03-01-2007   #3 (permalink)
Joerg Jooss


 
 

Re: WCF / IIS 6

Thus wrote Dani,

> Hi
>
> I'm trying to run a WCF-Service under Win 2003 / IIS 6 (on Vista / IIS
> 7 it works!).
> But here I always get the exception:
> System.ServiceModel.FaultException: An error occured when verifying
> security for the message.
> I am using message-security with a custom Username-Authentication:
>
> <system.serviceModel>
> <services>
> <service behaviorConfiguration="RmsServiceBehavior"
> name="connvision.CvSystem.Core.Services.RangeManagerService.RangeManag
> ementService">
> <endpoint binding="wsHttpBinding"
> contract="connvision.CvSystem.Core.Services.RangeManagerService.Servic
> eContracts.IRangeManagementService"
> bindingConfiguration="RmsBinding" />
> </service>
> </services>
> <bindings>
> <wsHttpBinding>
> <binding name="RmsBinding">
> <security mode="Message">
> <message clientCredentialType="UserName"
> establishSecurityContext="false" />
> </security>
> </binding>
> </wsHttpBinding>
> </bindings>
> <behaviors>
> <serviceBehaviors>
> <behavior name="RmsServiceBehavior">
> <serviceMetadata httpGetEnabled="true" />
> <serviceDebug includeExceptionDetailInFaults="true" />
> <serviceCredentials
> type="connvision.CvSystem.Core.Services.Common.ProviderServiceCredenti
> als,
> Services.Common.ServiceImplementation">
> <userNameAuthentication
> userNamePasswordValidationMode="Custom"
> customUserNamePasswordValidatorType="connvision.CvSystem.Core.Services
> .Common.ProviderCredentialsValidator,
> Services.Common.ServiceImplementation" />
> <serviceCertificate findValue="localhost"
> storeLocation="LocalMachine" storeName="My"
> x509FindType="FindBySubjectName" />
> </serviceCredentials>
> </behavior>
> </serviceBehaviors>
> </behaviors>
> </system.serviceModel>
> As I said, this all works pretty fine in IIS 7 with the same settings.
> Do I have to change something for IIS 6?


Does the client trust the server certificate?

Also, try setting up the Windows SDK's UserName credentials WCF sample across
two machines.

Cheers,
--
Joerg Jooss
news-reply@joergjooss.de


My System SpecsSystem Spec
 

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46