"Object reference not set to an instance of an object." during SSMS startup
pw1
Posts: 1 New member
in SQL Prompt
Immediately after starting SQL Server Management Studio I get an UI error report dialogue stating that "Object reference not set to an instance of an object.".
The log file of SQL prompt says:
The log file of SQL prompt says:
<div>2022-02-24 11:16:12.868 +01:00 [Information] Logging level set to 'Information'</div><div>2022-02-24 11:16:13.670 +01:00 [Information] Launching package entry point Ssms18 (version 15.0.18390.0) for SQL Prompt 10.11.2.26629.</div><div>2022-02-24 11:16:13.742 +01:00 [Information] Initialising DTE and AddIn connections.</div><div>DTE.FullName: C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe</div><div>DTE.Version: 2019.0150</div><div>DTE.CommandLine: </div><div>Current culture: de-AT</div><div>Current UI culture: en-US</div><div>2022-02-24 11:16:14.783 +01:00 [Error] Report error dialog UI shown</div><div>System.NullReferenceException: Object reference not set to an instance of an object.</div><div> at Format.Engine.Styles.Saving.StyleFilePathGenerator.GetFilePath(FormattingStyle style)</div><div> at Format.Engine.Styles.Upgrading.StyleFileNamesUpgrader.<Upgrade>d__5.MoveNext()</div><div> at Format.Engine.Styles.Upgrading.StylesUpgrader.Upgrade()</div><div> at RedGate.SQLPrompt.CommonUI.Shell.StartUpActions.UpgradeFormattingStyles(ILog logger, IStylesUpgrader stylesUpgrader)</div><div> at RedGate.SQLPrompt.CommonUI.Shell.StartUpActions.Run(DevelopmentEnvironment developmentEnvironment)</div><div> at RedGate.SqlPrompt.EntryPointCommon.BaseConnect.Initialize(IKernel kernel, DTE2 dte)</div><div> at RedGate.SqlPrompt.SsmsCommon.AbstractSsmsConnect.Initialize(IKernel kernel, DTE2 dte)</div><div> at RedGate.SqlPrompt.SsmsCommon.AbstractSsmsConnect.VsPackageInitialize(IKernel kernel, DTE dte)</div><div> at RedGate.SQLPrompt.SsmsPackage18.SQLPromptSsmsPackage18.<Initialize>b__2_0(ILog logger, IKernel kernel, Action`1 onTabsRestored)</div><div> at RedGate.SqlPrompt.EntryPointCommon.Startup.<>c__DisplayClass0_0.<Initialize>b__0()</div><div> at RedGate.SQLPrompt.UsageReporting.ErrorReporting.ErrorReporterWithUI.Do(Action action)</div>
I already tried to reinstall SQL Prompt to no avail. Any ideas what could be the reason for this error? I can't use SQL Prompt at all right now.
Tagged:
Answers
Could you let us know the path that you have set for your styles? As you can't start SQL Prompt, you will have to get this from the registry:
Could you also look in the directory set in that key in the registry and show us a directory listing of the files in there?
Redgate Software