473,401 Members | 2,146 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,401 software developers and data experts.

Debugging on a machine one doesn't have access to

I have a prospective client who can't get my WinForms app running on his
machine. I sent him some sample .Net apps and they run fine. The error
coming up is very cryptic and doesn't help me resolve the problem.

My "traditional" way of debugging like this would be to create a special
version of the software that would simply write out designated milestones in
the app, like "1", "2", "3", etc. This info and maybe a little more
peripheral text would get written into a text file. Using this method I
could narrow down where the app was crashing.

But I'm thinking that .Net may have a superior way to resolve such a
situation. Does anyone know of one?

--
Robert W.
Vancouver, BC
www.mwtech.com

Jun 8 '06 #1
4 1089
Hi,

What error are you getting?

Can you post the text of the exception?

Send him a debug version (and send the .dbp too ) , make sure you are
intercepting all the exceptions ( AppDomain.UnHandledException,
Application.ThreadException ) and create a log with them.
log both the Message and the StackTrace , also make sure you check
Exception.InnerException.

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have a prospective client who can't get my WinForms app running on his
machine. I sent him some sample .Net apps and they run fine. The error
coming up is very cryptic and doesn't help me resolve the problem.

My "traditional" way of debugging like this would be to create a special
version of the software that would simply write out designated milestones
in
the app, like "1", "2", "3", etc. This info and maybe a little more
peripheral text would get written into a text file. Using this method I
could narrow down where the app was crashing.

But I'm thinking that .Net may have a superior way to resolve such a
situation. Does anyone know of one?

--
Robert W.
Vancouver, BC
www.mwtech.com

Jun 8 '06 #2
Ignacio,

The error msg he's getting reads:

Application has generated an exception that could not be handled.

Process id=0x980 (2432), Thread id=0x710 (1808)
Could you expand upon what you said: "make sure you are creating a log"? Is
there a special way to do this with .Net or just as I described earlier?

--
Robert W.
Vancouver, BC
www.mwtech.com

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

What error are you getting?

Can you post the text of the exception?

Send him a debug version (and send the .dbp too ) , make sure you are
intercepting all the exceptions ( AppDomain.UnHandledException,
Application.ThreadException ) and create a log with them.
log both the Message and the StackTrace , also make sure you check
Exception.InnerException.

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have a prospective client who can't get my WinForms app running on his
machine. I sent him some sample .Net apps and they run fine. The error
coming up is very cryptic and doesn't help me resolve the problem.

My "traditional" way of debugging like this would be to create a special
version of the software that would simply write out designated milestones
in
the app, like "1", "2", "3", etc. This info and maybe a little more
peripheral text would get written into a text file. Using this method I
could narrow down where the app was crashing.

But I'm thinking that .Net may have a superior way to resolve such a
situation. Does anyone know of one?

--
Robert W.
Vancouver, BC
www.mwtech.com


Jun 8 '06 #3
Ignacio,

Is this the kind of custom exception handling you were thinking of:
http://www.c-sharpcorner.com/Code/20...onHandling.asp

--
Robert W.
Vancouver, BC
www.mwtech.com

"Robert W." wrote:
Ignacio,

The error msg he's getting reads:

Application has generated an exception that could not be handled.

Process id=0x980 (2432), Thread id=0x710 (1808)
Could you expand upon what you said: "make sure you are creating a log"? Is
there a special way to do this with .Net or just as I described earlier?

--
Robert W.
Vancouver, BC
www.mwtech.com

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

What error are you getting?

Can you post the text of the exception?

Send him a debug version (and send the .dbp too ) , make sure you are
intercepting all the exceptions ( AppDomain.UnHandledException,
Application.ThreadException ) and create a log with them.
log both the Message and the StackTrace , also make sure you check
Exception.InnerException.

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.com...
I have a prospective client who can't get my WinForms app running on his
machine. I sent him some sample .Net apps and they run fine. The error
coming up is very cryptic and doesn't help me resolve the problem.

My "traditional" way of debugging like this would be to create a special
version of the software that would simply write out designated milestones
in
the app, like "1", "2", "3", etc. This info and maybe a little more
peripheral text would get written into a text file. Using this method I
could narrow down where the app was crashing.

But I'm thinking that .Net may have a superior way to resolve such a
situation. Does anyone know of one?

--
Robert W.
Vancouver, BC
www.mwtech.com


Jun 8 '06 #4
Hi,

"Robert W." <Ro*****@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
Ignacio,

The error msg he's getting reads:

Application has generated an exception that could not be handled.

Process id=0x980 (2432), Thread id=0x710 (1808)
This message says nothing, you need to see the Exception.Message &
Exception.StackTrace.
Try to run the app from a prompt, not double clicking it in win Explorer.

Could you expand upon what you said: "make sure you are creating a log"?
Is
there a special way to do this with .Net or just as I described earlier?


Just create a file to log any exception info. You could also use a
EventLogger
Remember to use the debug version along with the dbp

--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Jun 9 '06 #5

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

Similar topics

7
by: wh | last post by:
Can somebody confirm that you have to be in the Administrators group to be able to debug an ASP.NET application? Wayne.
3
by: Steve Wark | last post by:
I have a Windows 2003 Web server on which I was debugging remotely with no problems. I then moved this server to a different domain and now remote debugging will not work, the error is; ...
0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
10
by: Shawn | last post by:
JIT Debugging failed with the following error: Access is denied. JIT Debugging was initiated by the following account 'PLISKEN\ASPNET' I get this messag in a dialog window when I try to open an...
7
by: Frank | last post by:
I'm running a mixed ASP / ASP.NET environment. I can use the debugger in for the ASP.NET code, no problems. But when I turn on ASP Debugging for the project, I get the error message: "Error...
14
by: | last post by:
I cannot for the life of me get remove debugging to work. I continue to receive "Error while trying to run project: Unable to start debugging on the web server. Access is denied. Verify that you...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
3
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I have the folloving code: Public class MyForm : Form { …… void SomeMethod() { a = new Obj1(this);
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.