My sharepoint site has been migrated to SSL? RRS feed

  • General discussion


    My sharepoint site has been migrated to SSL after that I am not able to deploy same web part which i have successfully deployed to sharepoint site earlier without SSL
    Getting below error

    "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"

    Anybody Help me......

    • Edited by T Ravi Kumar Wednesday, September 14, 2011 12:37 PM
    Wednesday, September 14, 2011 6:28 AM

All replies

  • Hi,

    Are you deploying the web parts using Visual Studio 2010 deploy option? If so, your site url has been referring to old URL that is "http//". you need to change the url of your site in ".csproj.user" file which will be available under your project folder.

    Also try to retract and remove the feature/web part from the site collection and then try to re-deploy manually using powershell command i.e. "Add-SPSolution -LiteralPath <SolutionPath>"



    Wednesday, September 28, 2011 7:09 AM
  • HI,

    I have solved above error using below code.

     ServicePointManager.ServerCertificateValidationCallback = delegate(Object sende, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
                        return true;

    Wednesday, February 15, 2012 1:34 PM