473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Unable to debug C# programs

Hi there,

I'm having a problem whereby when a line of code raises an exception etc
VS 2005 wont debug the line (highlight the error) but to actually
display a message along the lines of

'vshost.exe has stopped working.' if i switch off vs hosting i get the
name of my program instead.

This happens to all (C#) programs i'm working on.

How do I fix this?

Thanks,
Simon.
Aug 9 '07 #1
2 3673
Simon,

Are you trying to debug in release mode or debug mode? If you are
running in release mode, then you won't be able to debug programs from the
IDE.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Simon Jefferies" <ne********@cooltoolsonline.co.ukwrote in message
news:O7**************@TK2MSFTNGP06.phx.gbl...
Hi there,

I'm having a problem whereby when a line of code raises an exception etc
VS 2005 wont debug the line (highlight the error) but to actually display
a message along the lines of

'vshost.exe has stopped working.' if i switch off vs hosting i get the
name of my program instead.

This happens to all (C#) programs i'm working on.

How do I fix this?

Thanks,
Simon.

Aug 9 '07 #2
Nicholas Paldino [.NET/C# MVP] wrote:
Simon,

Are you trying to debug in release mode or debug mode? If you are
running in release mode, then you won't be able to debug programs from the
IDE.

I'm trying both debug and release - both bring up the same problem.

Simon.
Aug 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ravi Shankar | last post by:
Hi, I get the below error while I press F5 from Microsoft Visual Studio .NET Enterprise Architect IDE. This doesn't allow me to debug the application. But I am able to launch any other C#...
1
by: Tom wilson | last post by:
I've been through everything with this error and cannot get the debugger to work remotely. The only thing I can trace it down to is that RPC is not communicating between servers. So after many,...
1
by: PengYu.UT | last post by:
Hi, I'm using g++3.4 on linux with gdb. I'm wondering how to debug programs which use STL? Should I compile the program with some extra options? Best wishes, Peng
1
by: PengYu.UT | last post by:
I found that it is extremely unproductive to debug programs using templates a lot. Although I could manually define some types to help printing out type informations, it is still tedious for me....
2
by: TM | last post by:
When I run an ASP.Net application I am getting the following error: "Error while trying to run project: Unable to start debugging on the web server. The project is not configured to be debugged."...
1
by: SXL | last post by:
I just upgraded my VS.NET 2002 to VS.NET 2003. I converted an old ASP.NET web application (a C# project), which was created in VS.NET 2002, to VS.NET 2003. Everything seems to go smoothly, but I...
3
by: =?Utf-8?B?SmVmZnJleQ==?= | last post by:
Just started to test a VB.net 2002 project for ASP.net application. After successfully installed the VS.net 2002 and tested the IIS 5.1 on XP Pro SP2 for some classical ASP programs, I am starting...
0
by: Simon Jefferies | last post by:
Hi there, I'm having a problem whereby when a line of code raises an exception etc VS 2005 wont debug the line (highlight the error) but to actually display a message along the lines of ...
2
by: call_me_anything | last post by:
We have an application which we build on linux and windows. In one particular set of operations (not necessary to describe here), the application crashes in Windows but not in Linux. I am not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.