![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| Thread Tools | |
| |