Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

WCF / IIS 6

Update your Vista Drivers Update Your Drivers Now!!
 
 
Thread Tools Display Modes
Old 03-01-2007   #1 (permalink)
dani.meier@gmail.com
Guest


 

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
Guest


 

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
Guest


 

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
 
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes





Vistax64.com 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 2005-2008