Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

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.[^]
 
Share this answer
 
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();
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900