Visual Studio独立Shell应用程序无法启动,加载菜单时出现问题 [英] Visual Studio Isolated Shell Application Fails to Start, Problem occurred when loading menu

查看:335
本文介绍了Visual Studio独立Shell应用程序无法启动,加载菜单时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio Isolated shell应用程序,在启动时已经开始给我以下消息


(加载'***'菜单时出现问题。  ;要解决此问题,请从命令提示符运行'***。exe / resetsettings'。注意:此命令会重置您的环境设置。)。 


如果我从Visual Studio(2013)中的调试器运行应用程序,或者如果我从命令行运行可执行文件,则会出现此错误。我已经尝试过(从命令行)运行resetsettings但是这只是尝试启动应用程序并在启动时给
我相同的弹出消息。 我也去了,C:\ Users \ UserName \ AppData \Roaming\Microsoft \ AppName并删除了该文件夹。这也不起作用。 关于如何修复此错误的任何想法都将不胜感激。

解决方案


欢迎来到MSDN论坛。


您是如何从命令行运行应用程序的?


此外,其他人会收到类似的错误消息并通过以下步骤修复它:


  1. 在搜索中,搜索然后选择:系统(控制面板)
  2. 点击高级系统设置 link.
  3. 点击  环境变量。在系统变量部分中,找到  PATH 环境变量并选择它。点击&的修改。当PATH变量大于2048个字符时。
    解决方案是从PATH变量中删除一些项目。
  4. 在  编辑系统变量中(或新系统变量)窗口,指定  PATH变量的值。点击&的确定。点击  确定关闭所有剩余的窗口。
  5. 重新启动计算机


注意:您可以在更改之前将PATH变量复制到记事本。


祝你好运,


Joyce


I have a Visual Studio Isolated shell application that has started giving me the following message when starting

(A problem occurred when loading the '***' menu.  To fix this problem run '***.exe /resetsettings' from the command prompt.  Note: This command resets your environment settings.). 

I get this error if I run the application from the debugger in Visual Studio (2013) or if i run the executable from the command line. I have tried (from the command line) to run the resetsettings but that just attempts to start the application and gives me the same popup message when starting.  I have also gone too, C:\Users\UserName\AppData\Roaming\Microsoft\AppName and removed that folder. That did not work either.  Any ideas on how I fix this error would be greatly appreciated.

解决方案

Hi,

Welcome to MSDN forum.

How did you run your application from command line?

Please run your application without debug(ctrl+F5)

Besides, the other who get the similar error message and fix it by the following steps:

  1. In Search, search for and then select: System (Control Panel)
  2. Click the Advanced system settings link.
  3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit. when the PATH variable becomes bigger than 2048 character. The solution was to remove some items from the PATH variable.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH variable. Click OK. Close all remaining windows by clicking OK.
  5. restarting the computer

Note: you could copy the PATH variable to notepad before you change it.

Best regards,

Joyce


这篇关于Visual Studio独立Shell应用程序无法启动,加载菜单时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆