|
-
Apr 3rd, 2006, 05:14 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Debugging problem.
Hi,
I've come across a strange problem when trying to debug a solution. My solution contains two windows service projects.
When installing the services and trying to debug them i get an error relating to the breakpoints on one of the services.
The error is as follows:
"The breakpoint will not currently be hit no symbols have been loaded for this document"
I am not sure how to go about resolving this. The other service runs fine and can be debugged no problem. Can anyone provide any help on why this is happening and how i can resolve it.
Cheers
Grant
-
Apr 3rd, 2006, 05:25 AM
#2
Re: Debugging problem.
Debugging Windows Service is somewhat different than debugging normal applications in .NET. Take a look at How to: Debug Windows Service Applications
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Apr 3rd, 2006, 06:47 AM
#3
Thread Starter
Addicted Member
Re: Debugging problem.
Hi,
Thanks for getting back to me. I've read the article which you have posted. I was already aware of how to debug the service, as i can debug one of the projects in my solution fine. Its the second project that is giving me the error. As far as i can make out there are no problems with the code as i have simplified it as much as i can.
Are there any other suggestion.
Again, many thatnks for the prompt response.
Grant
-
Apr 3rd, 2006, 06:56 AM
#4
Re: Debugging problem.
ok then, here are few of the options that you can try
1. Check that you are in debug mode and not in release mode. For this you will have to check the Project Properties. (Configuration)
2. Check that the timestamp of the .pdb file is the same as the .exe that you are generating. If they are not, remove all of the binaries and recompile your entire solution.
Hope this helps.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Apr 3rd, 2006, 07:51 AM
#5
Thread Starter
Addicted Member
Re: Debugging problem.
Hi again,
Found teh problem. There were issues in the configuration of the solution (namespace's / projects included etc) I've messed about with the settings and now have it working.
Thanks for the other suggestions, i'll be sure to rate your post for the link to the above article as it was useful to read.
Thanks again
Grant
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|