Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I debug a Windows Service in .Net 2005?

After instaling the process through CMD > installutil -i process.exe

i am geting JIT error. Sayign that do i need to debugg the process.
If i say yes and chose CLR 2005 debugg

Its gives a error " No symbols are loaded for any call stack frame.The source code cannot be displayed."

Pleas help ..

if i am trying to attach a process in VS 2005
i am geting a error
" The following module was built either with optimizations enabled or without debug information."

please help
Posted
Updated 2-Aug-10 20:11pm
v4
Comments
Dalek Dave 2-Aug-10 4:01am    
Edited for Minor Errors

See here[^].
 
Share this answer
 
Comments
William Winner 2-Aug-10 15:07pm    
Reason for my vote of 5
that definitely answers the question. Too bad Manas.rn couldn't do a simply google search.
Manas.rn 3-Aug-10 0:52am    
Dude. I have done that still geting the error.
Thats way in put it in blog. FYI
Manas.rn 3-Aug-10 1:30am    
Hay william, That link was usefull.
But that didnt solve my problem.

please help man.
By setting a break point and then stepping through code from there.
 
Share this answer
 
I have put the breakpoint. "ON start up."

but still i am not able to debug.

Note: My services is already installed.

Do i need to unstall that and install through vs command promt?
 
Share this answer
 
Comments
Christian Graus 2-Aug-10 3:33am    
Don't push 'answer' to add questions. The startup has to have occurred for you to have a process to connect to, right ? So, that won't work.
Manas.rn 2-Aug-10 3:47am    
Not clear
Sandeep Mewara 2-Aug-10 7:38am    
Reason for my vote of 1
Not an answer but a Comment to an answer.
I am geting a JIT debuger while running my windows services.
and if i chose debug yes then i am geting this message
"The following module was built either with optimization enabled or without debug information:
C:\program Files\....\..\app.exe

To gebug this module, Change its project built configuration to debug mode. "

please help...
 
Share this answer
 
Comments
Sandeep Mewara 2-Aug-10 7:39am    
Reason for my vote of 1
Inspite of being told by others to not PUSH answer button if it is not, you do it!
Not an answer but a Comment to an answer.
Manas.rn 3-Aug-10 0:50am    
Comman man insteed of helping someone you guyes re weting time in writing comments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900