Error in InfoPath forms which access SharePoint web services over a secured connection


When an InfoPath web enabled form tries to access a SharePoint web services (usually for getting user profile information, values from custom list etc.) from a web application using a secured connection (SSL), it may show the following error.

You do not have permissions to access a Web service that provides data required for this form to function correctly.

In the ULS log or Windows Event Viewer in the web front end server you will see the following error.

An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=<some text>, OU=<some text>, O=<some text>, L=<some text>, S=<some text>, C=<some text>\nIssuer Name: CN=<some text>, O="<some text>", C=US\nThumbprint: <some text>\n\nErrors:\n\n The root of the certificate chain is not a trusted root authority..

This is because, when you use SSL certificate for your web application URL, the certificate needs to be imported into SharePoint trusted root certificate store (if you are using NTLM). If you are using claims based authentication, you may need to import the certificate you used for token signing. I have explained how you can in export the certificate and import it into SharePoint trusted root certificate store in this article.

Advertisements

2 thoughts on “Error in InfoPath forms which access SharePoint web services over a secured connection

  1. Pingback: Post Links 05/23/2014 | dlowedown

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s