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