I use IWSTrust13SyncContract as the service for WSTrustServiceContract.  I'll 
be honest, you are going to have a very difficult time using this with castle 
xml config.

On Mar 19, 2011, at 9:34 AM, Scott_M wrote:

> Craig, how do you register the WSTrustServiceContract?  This is what I did 
> but don't think it's correct because it fails to resolve properly at runtime.
> 
> web.config
> <!-- wif wstrust service -->
> <component id="WSTrustService" lifestyle="transient" service="" 
> type="Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract, 
> Microsoft.IdentityModel"/>
> 
> <!-- sts configuration (construction dependency of WSTrustService)-->
> <component id="StsConfiguration" lifestyle="transient" 
> service="Microsoft.IdentityModel.Configuration.SecurityTokenServiceConfiguration,
>  Microsoft.IdentityModel" 
> type="ACME.Services.Wcf.Api.Security.TokenIssuers.Default.Impl.DefaultTokenIssuerConfiguration,
>  ACME.Services.Wcf.Api.Security.TokenIssuers.Default.Impl">
>       <parameters>
>         <tokenEncryptionCertDN>CN=WCF Token Encryption Cert (FOR TEST 
> ONLY)</tokenEncryptionCertDN>
>         <tokenSigningCertDN>CN=ACME Anonymous User Token Issuer Signing Cert 
> (FOR TEST ONLY)</tokenSigningCertDN>
>         <tokenIssuerName>ACME Sts</tokenIssuerName>
>       </parameters>
> </component>
> 
> 
> Additional information: The service '/sts/sts.svc' cannot be activated due to 
> an exception during compilation.  The exception message is: The service type 
> provided could not be loaded as a service because it does not have a default 
> (parameter-less) constructor. To fix the problem, add a default constructor 
> to the type, or pass an instance of the type to the host..
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Castle Project Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to