Value cannot be null, Parameter name: viewInfo

Check the environment value for Temp and TMP.

C:\Users\buck>set t

TEMP=C:\Users\buck\AppData\Local\Temp\2

TMP=C:\Users\buck\AppData\Local\Temp\2

Make sure the directory listed exist and your id has appropriate permission to write to that directory. Alternatively, through the control panel (Control Panel-> System and Security-> System -> Advanced system settings), you can change the default directories that are assigned to TEMP and TMP.


When I've seen this issue, it is usually because the Drive that SSMS is installed on has run out of free space. Deleting some old Log files clears the issue up.

Doing that quick check might be worthwhile before going forward with a re-install.


Right click on the SSMS icon and click 'run as administrator'. At the SSMS console verify that the error is gone by clicking on the 'Databases' tree node. The error should now be permanently fixed and you do not need to run SSMS as admin anymore. Next time just start SSMS normally and it should work fine.


I got this error on our remote shared server. Turned out that our C drive did not have any space left.

I got it working by asking my colleague to close his SQL Server Management Studio session and it cleared up 7 GB right away! I could login then! Woot woot!