Home > Microsoft .Net Development Tips > Application Testing and Security > Hints for troubleshooting .NET applications
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

APPLICATION TESTING AND SECURITY

Hints for troubleshooting .NET applications


Brian Eastwood, Site Editor
07.28.2006
Rating: --- (out of 5)


Office Development Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Back in college, at the turn of the millennium, my computer was a PowerBook 520c. Despite its age, it ran well enough for me to check e-mail and bang out essays. One day at startup, though, Mac OS simply would not run, thanks to something called error type 41. I had no idea what that meant, and, rather than investigate further, I packed the laptop back into its bag and never turned it on again. Eventually I paid $5 for it to be recycled.

No developer in his or her right mind would approach application troubleshooting in this manner -- not when there are end users, customers, business partners and bosses who depend on those applications and expect them to run smoothly.

Steve Schofield, a veteran of ASP and ASP.NET development, offers a helpful guide to application troubleshooting here in his blog. "I've been hanging out in the newsgroups lately and it kind of surprised me the same thing about trying to find out 'what's wrong.' Sometimes getting started is the hardest part," he writes.

Schofield offers three main hints to developers and administrators alike.

  • First, look in any and all log files available -- event logs, SQL logs and any custom logs you created for the application -- and figure out where exactly the problem occurred. Schofield recommends a few utilities from Sysinternals that will review files, registries and other records for "access denied" errors.
  • Next, identify and record all the errors that come up. As this post and discussion thread on SecretGeek points out, error messages, exceptions and the stack call for exceptions offer a pretty good snapshot of what went wrong -- and not remembering what they are will only lead to additional frustration and embarrassment. It's akin to telling a doctor that you are in pain but not saying what part of the body hurts and how long it has hurt.
  • Finally, hit the search engines. "I wager a good portion of the time you'll find the solution or an article about your issue," Schofield says. Type in the exact text of your error message into a search engine and see what emerges. Look for forums related to your platform or component and see if anyone has confronted the same issue. Try general forums such as the ITKnowledge Exchange and post messages ...

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    .NET Framework security best practices
    New features in Windows 7 bring new UI considerations for developers
    Podcast: Windows CardSpace authors speak
    Book excerpt: Java EE and .NET security interoperability
    Book excerpt: Advanced Windows Debugging
    Book excerpt: Pragmatic unit testing in C# with NUnit
    Security interoperability with .NET/WSE and WebLogic Workshop 8.1
    Windows Developments: Product news, December 2007
    How to avoid regression bugs while adding new features
    VB code: New additions, November 2007
    VB code: Application security downloads

    Application Testing and Security
    Test-driven development in .NET yields complete unit test coverage
    How to write installers in Vista that work correctly under UAC
    How to elevate programs' privileges correctly using Vista's UAC
    Internet Explorer 8 beta's development tools add source visualizations
    Microsoft previews new features in Visual Studio 2010
    Advanced Windows Debugging Book Chapter and Podcast
    Book excerpt: Advanced Windows Debugging
    Book excerpt: Pragmatic unit testing in C# with NUnit
    Security interoperability with .NET/WSE and WebLogic Workshop 8.1
    How to avoid regression bugs while adding new features

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    common test platform  (SearchWinDevelopment.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary


    there. Search the vendor Web site as well. And if all else fails, ask a colleague -- he or she may not have an immediate solution, but a second set of eyes may notice something that you have not.

Application troubleshooting can be a veritable nuisance, but it is a necessary one, given the time and money that enterprises and developers devote to their applications. With that at stake, the options I chose -- surrender, pack up the system and pretend that nothing happened -- are really not options at all.

Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts