Test Foro de elhacker.net SMF 2.1

Programación => Programación General => .NET (C#, VB.NET, ASP) => Mensaje iniciado por: PFLOPS en 9 Octubre 2008, 21:10 PM

Título: Error en C#
Publicado por: PFLOPS en 9 Octubre 2008, 21:10 PM
Estoy trabajando en C# pero hay algo que no puedo solucionar, cuando voy a ejecutar el form me da este error:(http://i526.photobucket.com/albums/cc348/Peliflor/error-1.jpg)

Gracias por la ayuda que me puedan brindar :)
Título: Re: Error en C#
Publicado por: Rentero en 11 Octubre 2008, 14:17 PM
No se si funcionaran.
http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/1a89d2df-0c57-4bb2-8c1a-b619e6cbb065/

CitarHi all

Seems Like I have found the Solution, Here is what you do........

Open solution  in V2005, then go to Project -> Properties.

In this, Go to build, and then check the "Output" section at the bottom End

Browse for correct Directory Path. "Default is Bin\debug" you may want to change it where the actual exe / dll is.

this has solved my problem as my Build environment was keeping the Target Exe Somewhere else and the code somewhere else..

Let me Know

Amol Wankhede
CitarI had the same problem and the real solution was embarrassingly easy:

If, in your project, Visual Studio has never successfully compiled the program (before finding the first bug), you will get this error. What I did was remove all offending code (in my case, leaving just a simple button1_Click with no code). Run/Compile the code one time; exit the running program, and this message goes away.

The Compiler builds various directories and files on a first successful compile and these are used by the debugger.  I am now recommending with all new projects, define the form, compile, close, and then begin coding.