Ας διευρύνω λιγάκι το post του Νίκου, ως εξής:
- Για να σου βγάλει line numbers ένα application όταν συμβαίνει ένα exception, αυτό θα πρέπει να έχει γίνει build σε debug mode. Ητοι, όπως λέει και ο Νίκος, να συνοδεύεται από τα .pdb αρχεία που συμβουλεύεται για να σου δείξει, μεταξύ άλλων, και τα line numbers.
Υπάρχουν δύο build modes: Release και Debug.
Στην τοπική σου εγκατάσταση, κάνεις build σε debug (ακόμα και αν δεν το έχεις αντιληφθεί). Αν όμως κάνεις publish σε web server και δεν έχεις line numbers στα exceptions, μυρίζει Release mode. Επιπλέον, δεν μυρίζει VS2008 αλλά VS2005. Για κοίτα λίγο εδώ: http://odetocode.com/blogs/scott/archive/2005/11/15/2464.aspx
Και για να γίνω πιό συγκεκριμένος, το VS2005 κατά το publish "πετάει" το site σου στο server σε release mode εξ'ορισμού. Κοίτα τι λέει ο Scott Allen για το publish σε VS2005:
When you are ready to deploy, you can publish the web site. The Publish command (Build -> Publish) will precompile a web application and place the results into a directory of your choosing. You can also publish to an IIS or FTP location. When you select the Publish command you’ll see a dialog box to choose a destination, and options for strong naming, fixed naming, etc. These options map directly to switches for the command line aspnet_compiler tool (see my article for more details). The aspnet_compiler tool also provides a switch to produce debugging symbols, but this option is not available from the Publish dialog. Publish will always precompile a release build without debugging symbols.
Προτείνω να διαβάσεις ολόκληρο το άρθρο που προανέφερα για να βρεις την καλύτερη λύση στο πρόβλημά σου.
Σωτήρης Φιλιππίδης
DotSee Web Services