An X.509 certificate for the local service provider hasn't been configured

Hi all, could you please help me? I use the companentspace and give the error on the production:

ComponentSpace.SAML2.Exceptions.SAMLConfigurationException: An X.509 certificate for the local service provider hasn’t been configured.
at ComponentSpace.SAML2.Configuration.SAMLConfiguration.GetLocalServiceProviderCertificate(String partnerIdentityProviderName)
at ComponentSpace.SAML2.InternalSAMLServiceProvider.SendAuthnRequest(HttpResponse httpResponse, XmlElement authnRequestElement, String relayState, String singleSignOnServiceUrl)
at ComponentSpace.SAML2.InternalSAMLServiceProvider.InitiateSSO(HttpResponse httpResponse, String relayState, String partnerIdP, SSOOptions ssoOptions, String assertionConsumerServiceUrl, String singleSignOnServiceUrl)
at Webropol.Lapa.Library.Saml.SamlServiceProvider.InitiateLogin(String returnUrl, ShibbolethActionType shibbolethActionType)
at Webropol.Lapa.Interfaces.BL.Shibboleth.ShibbolethLoginService.InitiateLogin(String providerAlias, String returnUrl, ShibbolethActionType shibbolethActionType, String transactionId)
at Webropol.Web.Lapa.Controllers.ShibbolethController.SuomiAuthentication(String transactionId)
at lambda_method(Closure , ControllerBase , Object[] )

Configuration located in the config file:

<SamlSettings
serviceProviderName=“xxx”
serviceProviderCertificatePath=“_saml\xxx.pfx”
serviceProviderCertificatePassword=“xxx”
assertionConsumerServiceUrl=“~/xxx/AssertionConsumerService”
identityProviderCertificateFolder=“”>


And I have very simple code



certificatPath = _samlSettings.ServiceProviderCertificatePath;
_samlCertificateManager.SetServiceProviderCertificate(certificatPath, _samlSettings.ServiceProviderCertificatePassword);
SAMLConfiguration.Current.CertificateManager = _samlCertificateManager;



Interesting that all works nicely on the alpha environmental.

What could be causing this error?

Just to confirm, are you setting the CertificateManager prior to any SSO calls including the call to SAMLServiceProvider.InitiateSSO?
Assuming so, please enable SAML trace and send the generated log file as an email attachment to support@componentspace.com.
http://www.componentspace.com/Forums/17/Enabing-SAML-Trace
Please mentioned your forum post.