473,378 Members | 1,420 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,378 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 3677
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...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.