In some cases there may be the requirement to run the InfoPathService web service under a SharePoint site in IIS. This article guides the user to perform the correct steps as well as provides the type of error messages that can be expected if it is not done correctly or not done at all. Helps specifically to resolve the error: The SOAP response indicates that an error occurred on the server: System.Security.SecurityException: Security Error.

When configuring the InfoPathService web service to run under a SharePoint site in IIS, the following error message may appear when the InfoPath form is submitted:

“The SOAP response indicates that an error occurred on the server: System.Security.SecurityException: Security Error.”

To resolve this error or to set up the InfoPathService correctly, follow the link to the article below and follow the steps provided.

How to enable an ASP.Net application to run on a SharePoint virtual server