Provider-hosted app deployment error

Hi,

I am developing a provider-hosted app which programmatically adds the app part on Home page of the site. I wrote the code for adding the app part in App Installed event. It works fine when i debug it on my development site. Then i made a catalog site and deployed it there following the instructions in this blog. 

http://blogs.msdn.com/b/russmax/archive/2014/06/26/part-2-intro-to-provider-hosted-apps-develop-package-and-deploy.aspx

After deploying the app on app catalog, when i try to add the app, i get the following error.

Log Name:      Application
Source:        Microsoft-SharePoint Products-SharePoint Foundation
Date:          3/18/2015 5:44:17 PM
Event ID:      8311
Task Category: Topology
Level:         Error
Keywords:      
User:          SP\Administrator
Computer:      SP2013.SP2013.LOCAL
Description:
An operation failed because the following certificate has validation errors:

Subject Name: CN=SP2013.SP2013.LOCAL
Issuer Name: CN=SP2013.SP2013.LOCAL
Thumbprint: 9D3D48F8D7ED5AE4CB187BEB3319C3E65A36340C

Errors:

 SSL policy errors have been encountered.  Error code '0x2'..
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />
    <EventID>8311</EventID>
    <Version>15</Version>
    <Level>2</Level>
    <Task>13</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-18T12:44:17.912561500Z" />
    <EventRecordID>24215803</EventRecordID>
    <Correlation ActivityID="{3A58A90C-2A9C-4128-A4CF-D07A9FEB48E8}" />
    <Execution ProcessID="980" ThreadID="688" />
    <Channel>Application</Channel>
    <Computer>SP2013.SP2013.LOCAL</Computer>
    <Security UserID="S-1-5-21-2707663415-3900761612-1761970234-500" />
  </System>
  <EventData>
    <Data Name="string0">CN=SP2013.SP2013.LOCAL</Data>
    <Data Name="string1">CN=SP2013.SP2013.LOCAL</Data>
    <Data Name="string2">9D3D48F8D7ED5AE4CB187BEB3319C3E65A36340C</Data>
    <Data Name="string3">SSL policy errors have been encountered.  Error code '0x2'.</Data>
  </EventData>
</Event>

I am deploying the app with non-system user. Is there any any limitation of using app installed event in app catalog or am i doing something wrong?

March 18th, 2015 12:50pm

Hi,

The following blog for you to check:

SharePoint 2013 Domain Certificate for Provider-Host App Development Environment

http://rwcchen.blogspot.com/2013/12/sharepoint-2013-domain-certificate-for.html

Or try to add the following line within <system.net> tag in your SharePoint site web.config:

<settings>
<servicePointManager
checkCertificateName="false"
checkCertificateRevocationList="false"/>
</settings>
Best Regards


Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 8:42am

Hi,

The following blog for you to check:

SharePoint 2013 Domain Certificate for Provider-Host App Development Environment

http://rwcchen.blogspot.com/2013/12/sharepoint-2013-domain-certificate-for.html

Or try to add the following line within <system.net> tag in your SharePoint site web.config:

<settings>
<servicePointManager
checkCertificateName="false"
checkCertificateRevocationList="false"/>
</settings>
Best Regards


March 27th, 2015 1:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics