Sample Code

ExampleWinFormsApp.zip
This zip contains everything necessary to compile and run an example Windows Forms Application created with Visual Studio 2010 using VB.NET. I quickly wrote this application to demonstrate the following concepts:

- Reading from an XML settings file
- Creating an initial XML settings file if none is present
- Robust, clean, global and intuitive error trapping
- Random data generation
- Selection of a subset of data from the randomly generated data
- Interaction with a WebService
- Calling WebMethods
- Example of returning an error dump from the WebService
- Splash Screen
- Error Details screen with ability to copy
- Clean application structure
ExampleWebApp.zip
This zip contains everything necessary to compile and run an example Web Application created with Visual Studio 2010 using ASP.NET and VB.NET. The applicaiton is the default web application with the addition of a custom WebService. This webservice contains a number of public WebMethods. I call this WebService from the Windows Forms Application above. The WebService demonstrates the following concepts:

- Public WebMethod implementation
- Robust, clean and intuitive error trapping
- Returning of formatted error messages including line numbers to the calling application

This WebService is currently running here:
http://www.toddmariana.com/ExampleWebApp/ExampleWebService.asmx