Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Debugging info
4 replies. Latest Post by philsal on July 4, 2009.
(0)
philsal
Member
85 points
124 Posts
07-01-2009 10:23 PM |
Hi
I'm trying to get the line numbers of exceptions that occur on my web server. I have a couple of elusive bugs that only occur in production. I have tried using the system.diagnostics.stacktrace to get the line numbers (this works in vs2005) but the line numbers are always 0 on my production server.
Any ideas?
SharpGIS
Contributor
3387 points
611 Posts
07-01-2009 10:41 PM |
Silverlight does not run on the server, but on the client. You should be able to just open your project in visual studio, then open the app in the browser from the server (don't hit Run in VS!). When IE is up and running, go to the debug menu, select "attach to process" and select the IE process. You should now be able to set breakpoints in your application. However it is important that you didn't change the source files since your generated the xap that is residing on your production server.
nirav_20...
274 points
105 Posts
07-02-2009 2:45 AM |
Hi, You can debug your silverlight application using the same way the last post suggests, but addition to that you also have to make sure that the xap file in production is the same version as it exists in your development environment. If both xap files are not same then build your silverlight application again and copy that xap on production. Now Delete the browser history. If you do not delete your browser history, you may not be able to debug. So do that and follow the steps given in previous post.
Regards,
Nirav
07-02-2009 11:30 AM |
Clearing your browser history will have absolutely no effect. Don't you mean your browser cache?
07-04-2009 6:23 PM |
I was actually talking about the wcf server component. Anyway I figured out you needed to upload the program database. Thanks