[已解决]Visual Studio打开文件时出现“向程序发送命令时出现问题

问题现象:

通过鼠标右键选择Visual Studio 2010打开某个文件或者直接打开VS2010关联的文件(比如:.aspx文件)时,出现“向程序发送命令时出现问题(There was a problem sending the command to the program)”错误提示窗口,VS2010虽然启动了,但文件没有打开。

解决方法:

运行regedit打开注册表编辑器,进入[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\DDECache\VisualStudio.10.0\system],如下图:

将WindowsClassName与WindowName的值都改为DDEHandler,就能解决问题,如下图:

原文地址:https://www.cnblogs.com/dudu/p/vs2010_there_was_a_problem_sending_the_command_to_the_program.html