Not able to install service fabric runtime version 9.1.1653, getting null reference exception

Bharat Kumar Makhija 20 Reputation points Microsoft Employee
Getting this exception.

,Error,Exception type: System.NullReferenceException, Message: Object reference not set to an instance of an object., Stack:    at Microsoft.ServiceFabric.InstallFabricRuntime.Program.GetLegacyFabricUninstallString()
   at Microsoft.ServiceFabric.InstallFabricRuntime.Program.TryUninstallFabric()
   at Microsoft.ServiceFabric.InstallFabricRuntime.Program.TryUninstallFabricWrapper()
   at Microsoft.ServiceFabric.InstallFabricRuntime.Program.Main(String[] args)

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
253 questions
{count} votes

Accepted answer
  1. deherman-MSFT 34,521 Reputation points Microsoft Employee

    @Bharat Kumar Makhija

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.


    Not able to install service fabric runtime version 9.1.1653, getting null reference exception

    KtLogger and LeasLayr was running which was not allowing deletion of C:\Program Files\Microsoft Service Fabric folder.

    After running below 2 commands and deleting C:\Program Files\Microsoft Service Fabric folder it resolved the issue.

    Open an elevated (as admin) command prompt

    1. run this command sc.exe stop KtlLogger
    2. run this command sc.exe stop LeasLayr
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful