Wrox Programmer Forums
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2007, 01:53 AM
Authorized User
 
Join Date: Jun 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to find line number

I had written coding to fetch line number of an exception. The line number is returned as 0 when the line number cannot be determined. This works fine with normal forms, where the correct line number of the exception is returned successfully. However when I apply the same technique to an object invoked through Remoting, it is not able to fetch the line number. It returns line number as 0 always.

Please give me any ideas/suggestions
 
Old June 13th, 2007, 09:06 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Where are you getting this line number? Are you getting it from the error information in the stack?

Line number and actual code is only available in the stack for assemblies compiled with debug information that also have their accompanying PDB symbols files with them in the execution directory. So it is likely that your remoting destination doesn't have the debug information with it.

-Peter
 
Old June 15th, 2007, 05:19 AM
Authorized User
 
Join Date: Jun 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Peter, That solved my problem! Thanks for your advice.






Similar Threads
Thread Thread Starter Forum Replies Last Post
line number in xml using xsl and html link mrame XSLT 3 June 17th, 2008 01:36 PM
XSLT - xml difference with line number mrame XSLT 1 June 4th, 2008 05:49 PM
Find Disk Serial Number M_Mentz Pro VB.NET 2002/2003 2 October 19th, 2005 08:18 PM
Counting number of spaces in a line Suomi Access VBA 3 September 9th, 2005 02:34 PM
find maximum number Abhinav_jain_mca SQL Server 2000 4 September 28th, 2004 08:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.