PSM: Error when connecting to SSMS 2012 - Value cannot be null
101
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:02 PM
Symptom
When using PSM to connect to SQL Server Management Studio 2012, the following error is received:
Value cannot be null.
Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.1;12.2;12.6;12.7;13.0 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSM
SSMS 2012
Cause
AppLocker rules may be preventing certain .NET executables from running.
Resolution
To validate this, please check the AppLocker logs on the PSM server under Applications and Services Logs\Microsoft\Windows\AppLocker. You might see errors such as:
%WINDIR%\MICROSOFT.NET\FRAMEWORK\V4.0.30319\CSC.EXE was prevented from running.
If this is the case, you will need to clear the existing AppLocker settings on the PSM server and add an exclusion for the executable being blocked:
1. Run secpol.msc
2. Go to Application Control Policies
3. Right-click AppLocker and select Clear Policy
4. Add an exclusion to the PSMConfigureAppLocker.xml file as the last line in the SQL Server Management Studio 2012 processes section, similar to the following:
<Application Name="CSC" Type="Exe" Path="c:\windows\MICROSOFT.NET\FRAMEWORK\V4.0.30319\CSC.EXE" Method="Publisher" />
5. Save the configuration file, then rerun PSMConfigureAppLocker.ps1
Additional Information
Details
SYMPTOM:
When using PSM to connect to SQL Server Management Studio 2012, the following error is received:
Value cannot be null.
Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)
PROBLEM:
AppLocker rules may be preventing certain .NET executables from running
SOLUTION:
To validate this, please check the AppLocker logs on the PSM server under Applications and Services Logs\Microsoft\Windows\AppLocker. You might see errors such as:
%WINDIR%\MICROSOFT.NET\FRAMEWORK\V4.0.30319\CSC.EXE was prevented from running.
If this is the case, you will need to clear the existing AppLocker settings on the PSM server and add an exclusion for the executable being blocked:
1. Run secpol.msc
2. Go to Application Control Policies
3. Right-click AppLocker and select Clear Policy
4. Add an exclusion to the PSMConfigureAppLocker.xml file as the last line in the SQL Server Management Studio 2012 processes section, similar to the following:
<Application Name="CSC" Type="Exe" Path="c:\windows\MICROSOFT.NET\FRAMEWORK\V4.0.30319\CSC.EXE" Method="Publisher" />
5. Save the configuration file, then rerun PSMConfigureAppLocker.ps1