Windows error 0x80070520, -2147023584

Detailed Error Information

NO_SUCH_LOGON_SESSION[1]

MessageA specified logon session does not exist. It may already have been terminated.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code1312 (0x0520)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00000520.

Questions

8votes
2answers

Configure SSRS for SSL

I have a SSRS instance, running SSRS 2014, and I want configure it for usage over SSL. The server is available at http://reports.mydomain2.com I purchased a multi SSL certificate from GoDaddy, on domain www.mydomain.com, and I added reports.mydomain2.com as SAN I generated the SSL certificate from GoDaddy as for IIS, [...] read more
ssl
reporting-services
ssl-certificate
ssrs-2014
5votes
2answers

Add a generated certificate to the store and update an IIS site binding

I'm running into the following and after feeling like I've exhausted various avenues of research on Google and Stack Overflow I decided to just ask my own question about it. I'm trying to generate a personal certificate (using BouncyCastle) based on a CA certificate that I already have and own. [...] read more
c#
ssl
iis
bouncycastle
x509certificate2
4votes
1answer

Adding certificates to Azure VM Scale Set

Basically I'm trying to follow this guide.. http://ronaldwildenberg.com/custom-domain-name-and-certificate-for-your-azure-service-fabric-cluster/ It says here (regarding Resource Explorer): > If you save (PUT) the updated VM Scale Set resource description, the > certificate will be installed to all VMs in the scale set. I've done this (adding my new cert to the key vault, [...] read more
c#
azure-service-fabric
azure-vm-scale-set
4votes
3answers

Certificate Trust Lists and IIS7

I need to generate a CTL for use with IIS7. I generated a CTL file using MakeCTL (on Win2k3 SDK) and put only my own RootCA certificate in the CTL. However, when I then use adsutil.vbs to set my website to use this CTL, I get: ErrNumber: -2147023584 (0x80070520) Error [...] read more
iis-7
ssl
ctl
3votes
1answer

What could cause IIS7 to reject binding to certificates that don't allow private key export?

A while ago I tried installing a certificate into IIS7 on an new Windows 2008 server at work. The import went well but when I tried to bind a site to use the new certificate I got a dialog box with the following message: There was an error while performing [...] read more
windows-server-2008
iis
iis-7
2votes
1answer

Dynamically adding a website with an HTTPS binding pointing to a dynamically generated self-signed certificate

I'm currently attempting to dynamically add a new website using the Microsoft.Web.Administration library provided by IIS7+. This is going to be a part of an installation process in which a self-signed certificate needs to be added and bound to the HTTPS binding of this website. My research took me to [...] read more
c#
iis-7
ssl-certificate
x509certificate
bouncycastle
2votes
0answers

Getting exception on adding SSL binding to IIS site through code "A specified logon session does not exist. It may already have been terminated."

I have a scenario where I need to start an IIS Site with SSL binding on a code condition. Below the code snippet ServerManager serverManager = new ServerManager(); var webService = serverManager.Sites["webService"]; if (webService != null) { serverManager.Sites.Remove(webService); } serverManager.Sites.Add("webService", "http", "*:8000:", phyPath); serverManager.Sites["webService"].Bindings.Add("*:8001:", certificate.GetCertHash(), "My"); serverManager.CommitChanges(); It all executes [...] read more
c#
asp.net
ssl
iis
ssl-certificate
1vote
1answer

Our master/slave servers are unable to sync after SSL certificates were installed and then removed, what is this down to?

We have two servers with Rackspace running IIS 8, a master and slave. Previously the master would sync with the slave through the method described here: https://community.rackspace.com/products/f/25/t/641 The above was installed by a very nice man at Rackspace a couple of years ago despite it not being part of his [...] read more
iis
windows-server-2012
ssl-certificate
certificate
synchronization
1vote
1answer

How can I use msbuild to add a security certificate that I can use in IIS

I have this target <Target Name = "AddLocalCertificate"> <MSBuild.ExtensionPack.Security.Certificate TaskAction="Add" FileName="$(CertificateLocation)" CertPassword="$(CertificatePassword)"> <Output TaskParameter="Thumbprint" PropertyName="CertificateHash"/> </MSBuild.ExtensionPack.Security.Certificate> </Target> and in another target this binding statement <MSBuild.ExtensionPack.Web.Iis7Binding CertificateHash="$(CertificateHash)" TaskAction="Add" MachineName="$(MachineName)" Name="$(SiteName)" BindingInformation="*:$(HttpsPort):$(SiteName)" BindingProtocol="https"/> However when I run the targets I get the error > Creating binding with certificate: thumb print > 'DBE4964B4C4D0F185E8B1D421D736390AE586EBF' [...] read more
security
deployment
iis-7
msbuild
msbuildextensionpack
0votes
1answer

iis error code 0x80070520. A specified logon session does not exist

I have received that error when I'm trying to bind a certificate on a website. I have read some information about it. But they did not work for me. They said to set all permissions to the actual account (administrator) on C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys but, when I apply the permissions on the [...] read more
windows
iis
ssl-certificate
0votes
0answers

Use server-side certificate from Smart Card in IIS

I have a Smart Card (actually a USB dongle, called a Feitian ePass2003) with a certificate and its accompanying private key on it, and I want to use this certificate to serve my SSL site in IIS. To me, this seems like a good idea, because I am protecting my [...] read more
iis
iis-7
ssl-certificate
smartcard
0votes
1answer

Error binding ssl cert to website in IIS7.5, is the fix a security risk?

I created a new website on my new install of Windows Server Enterprise 2008 R2. I can get to the default web site using SSL using the autogenerated cert that was created at some point in the install and configuration of the OS. I exported our SSL cert from our [...] read more
windows
windows-server-2008
iis
ssl
0votes
0answers

Starting Excel Interop Error 0x80070520 A specified logon session does not exist

We have a task which starts a PowerShell script that uses Excel Interop to extract regularly some graphs from Excel. But since updating from Win10_2004 to Win10_20H2 the following error occurs: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070520 A specified [...] read more
excel
powershell
scheduled-tasks
0votes
0answers

How to search a CLSID in windows component services?

I get this error: System.Runtime.InteropServices.COMException (0x80070520): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070520 A specified logon session does not exist. It may already have been terminated. Some one gave me a hint to find the CLSID in the Component Services [...] read more
asp.net
.net
windows
security
0votes
1answer

Microsoft Word COM interop from console application

I've got a .NET Core 3.1 console application that's using Word COM interop, except when it tries to create the Microsoft.Office.Interop.Word.Application object it throws an exception: System.Runtime.InteropServices.COMException (0x80070520): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070520 A specified logon session does [...] read more
c#
.net-core
ms-word
com
0votes
0answers

"A specified logon session does not exist" in Powershell script called via Python in Windows Scheduled Task

I'm running Windows 10 Pro. I have a python script that calls a PowerShell script like this: p = subprocess.Popen( [ "C:\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", "D:\\src\\powershell\\Script-Name.ps1", "-ScriptParam1", ] + additional_script_params, stdout=log_file, stderr=log_file, ) p.communicate() The PowerShell script takes filename parameters for images and converts them to JPG. Inside there is a chunk of [...] read more
python
powershell
windows-10
scheduled-tasks
0votes
0answers

Error while selecting SSL certificate in Plesk

I am trying to install an SSL Certificate on my Plesk panel inside the Godaddy server, I followed all the steps but when I am trying to select my certificate from hosting during applying it gives an error. I have talked multi-time with customer services of Godaddy company and they [...] read more
server
plesk
server-administration
0votes
0answers

IIS will not bind certificate

Using the BouncyCastle API I create certificates and add them to the certificate store, marking the Private Key persisted and exportable. My key shows up in the local machine's personal store and is a selectable option inside IIS manager, however, when I click OK to bind my certificate, I get [...] read more
c#
iis
bouncycastle
0votes
0answers

IIS 10 - Import SSL certificate using Powershell - "A specified logon session does not exist"

Importing a .pfx-file to IIS using Powershell is pretty straight forward thanks to guidelines such as this one Use PowerShell to install SSL certificate on IIS. But I do run into an issue when trying to bind port 443 using the imported certificate: Error: "A specified logon session does not [...] read more
powershell
ssl
iis
0votes
1answer

Adding https binding from ASP.NET MVC application hosted

I have an Application hosted in IIS website TestWebsite and i am using Microsoft.Web.Administration for IIS Automation. I have to do following operations with bindings of the SAME website TestWebsite from TestWebsite 1. Add HTTPS binding with SSL certificate to the website "TestWebsite" from same application (code to add binding [...] read more
c#
asp.net-mvc
iis
iis-8
iis-10
0votes
1answer

Attach SSL certificate to site in IIS programmatically

I've searching for a solution to my problem for a couple days now and have found almost nothing. Here's the issue: I need to attach an SSL certificate to a website in IIS 6. I can set the https binding but every time I try to set the certificate's thumbprint, [...] read more
vb.net
ssl-certificate
iis-6
0votes
2answers

SSL not working after Generalizing Azure Windows VM

I configured SSL on my original Windows 2016 server test website to work with HTTPS traffic. After generalizing the VM, when I created a new Windows VM from the generalized VHD, I'm unable to browse through HTTPS traffic. When I tried to edit the Binding for HTTPS, I got the [...] read more
azure
ssl
iis
load-balancing
autoscaling
0votes
0answers

MICROSOFT DYNAMICS CRM 2011 installation

1133 I'm installing MS DYNAMICS 2011 fresh on MS2012 webserver and I keep getting this error: Action Microsoft Crm Setup Server Configure Web Server Action failed. A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT:0x80070520) RETRY CANCEL are my only options? I'm installing [...] read more
microsoft-dynamics
-1votes
2answers

COM-Exception 0x80070520 when opening MS Word in IIS

I have a .NET Web Service (SOAP) running on IIS that opens a MS Word application via COM. Out of a sudden this fails on one of our test machines in the integration build with the following exception: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due [...] read more
.net
iis
ms-word
com
ms-office

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0