Windows 7和Visual Basic 2010 Express:调试 [英] Windows 7 and Visual Basic 2010 Express: Debug

查看:98
本文介绍了Windows 7和Visual Basic 2010 Express:调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想知道您是否可以帮助我解决问题.您看,我已经在笔记本电脑上安装了VB 2010 Express.它运行.

但是,我在尝试执行/调试(F5)程序时遇到问题,它会生成错误消息:

该应用程序无法正确启动...单击确定"以关闭该应用程序"

问候,
Ant

Hi,

I was wondering if you could help me with a problem. You see, I have installed VB 2010 express on a laptop. It runs.

However I am picking up problems when trying to execute/ debug (F5) a program, it generates an error message:

"the application was unable to start correctly...click OK to close the application"

Regards,
Ant

推荐答案

更少的信息!可能是由于任何原因.

现在,我可以建议:
使用DEBUGGER并查看代码是否开始执行.
在事件查看器中检查事件日志.
验证Bin中是否存在所有引用的DLL(版本).

最后,查看搜索结果
Way less info! It could be because of any reason.

For now, I can suggest:
Use DEBUGGER and see if code execution starts.
Check event logs in Event viewer.
Verify that all the referenced DLL''s(versions) are there in Bin.

lastly, have a look at search result here.[^]


查看器中没有错误.请注意,我是新手:).

这是代码:

使用系统;
使用System.Collections.Generic;
使用System.Linq;
使用System.Text;

命名空间ConsoleApplication1
{
课程计划
{
静态void Main(string [] args)
{
Console.WriteLine("edfdfdf");
Console.ReadLine();
There are no errors in the viewer. Please note I am a newbee :).

Here is the coding:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("edfdfdf");
Console.ReadLine();


我希望您已经编译了解决方案并且没有语法错误.您已经提到了VB,并且代码段位于C#中.请检查语言.一个VB控制台应用程序,如果F5不起作用,或者,您可以尝试使用VB编译器(vbc)运行该程序.为此,请转到Visual Studio .NET命令提示符类型,如下所示(替换路径)

c:\ examples> vbc example1.vb
I hope you have compiled your solution & there are no syntax errors.You have mentioned VB & the code snippet is in C#.Please check for the language.For a VB console application,if F5 is not working,alternatively, you can try running the program using the VB compiler (vbc). To do that, go to the Visual Studio .NET command prompt type as below (replace your path instead)

c:\examples>vbc example1.vb


这篇关于Windows 7和Visual Basic 2010 Express:调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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