HighTechTalks DotNet Forums  

WCF: Host on IIS

Dotnet Distributed Applications microsoft.public.dotnet.distributed_apps


Discuss WCF: Host on IIS in the Dotnet Distributed Applications forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
connvision
 
Posts: n/a

Default WCF: Host on IIS - 03-01-2007 , 11:10 AM






Hi

I hope I'm right here with me WCF-question...

I have a WCF-Service that is hosted on Win 2003 / IIS 6. I'm using
message-security with a custom username-authentication. As long as I have the
client and the host on the same machine, all works fine (doesn't matter if
IIS 6 or 7).

But if the client is on a different machine, I got the following exception
on the client:
"System.ServiceModel.FaultException: An error occured when verifying
security for the message. "

What do I have to do to make this working?

Here's the service-configuration I'm using:
<system.serviceModel>
<services>
<service behaviorConfiguration="RmsServiceBehavior"
name="connvision.CvSystem.Core.Services.RangeManag erService.RangeManagementService">
<endpoint binding="wsHttpBinding"

contract="connvision.CvSystem.Core.Services.RangeM anagerService.ServiceContracts.IRangeManagementSer vice"
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.Pro viderServiceCredentials,
Services.Common.ServiceImplementation">
<userNameAuthentication
userNamePasswordValidationMode="Custom"

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

Dani / connvision




Reply With Quote
  #2  
Old   
connvision
 
Posts: n/a

Default RE: WCF: Host on IIS - 03-06-2007 , 04:15 AM






Ok I solved this. The problem was 'cause of a too big clock skew between the
client and the server... *argh*

Thank you anyway
Dani / connvision

"connvision" wrote:

Quote:
Hi

I hope I'm right here with me WCF-question...

I have a WCF-Service that is hosted on Win 2003 / IIS 6. I'm using
message-security with a custom username-authentication. As long as I have the
client and the host on the same machine, all works fine (doesn't matter if
IIS 6 or 7).

But if the client is on a different machine, I got the following exception
on the client:
"System.ServiceModel.FaultException: An error occured when verifying
security for the message. "

What do I have to do to make this working?

Here's the service-configuration I'm using:
system.serviceModel
services
service behaviorConfiguration="RmsServiceBehavior"
name="connvision.CvSystem.Core.Services.RangeManag erService.RangeManagementService"
endpoint binding="wsHttpBinding"

contract="connvision.CvSystem.Core.Services.RangeM anagerService.ServiceContracts.IRangeManagementSer vice"
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.Pro viderServiceCredentials,
Services.Common.ServiceImplementation"
userNameAuthentication
userNamePasswordValidationMode="Custom"

customUserNamePasswordValidatorType="connvision.Cv System.Core.Services.Common.ProviderCredentialsVal idator,
Services.Common.ServiceImplementation" /
serviceCertificate findValue="localhost"
storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectName" /
/serviceCredentials
/behavior
/serviceBehaviors
/behaviors
/system.serviceModel

Dani / connvision




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.