Archives for January 2011

Easily Save and Retrieve Application and User Settings in VB.NET or C# Apps

  We used to save our application or user settings in an INI file (dark ages) or more recently in XML files using our own code or classes borrowed from other developers. But applications built with the .NET framework using Visual Studio can take advantage of built-in tools to simplify or speed up access and saving of runtime values. Once common example is saving database connection string information in a configuration file so that it may be changed without need to recompile the application. Here are some simple examples in VB.NET. C# code uses a slightly different syntax the concepts … [Read more...]

500 – Internal server error from IIS 7.5 on Windows 2008 R2

You are running an ASP or ASP.NET web application on IIS on Windows 2008 R2 from a remote web browser and you constantly see following error message. While this is the proper results for a production server (you never want to show remote users the details of an error), it is not helpful while testing a new installationā€¦as a developer you need to see the error messages on the remote browser. There is an obscure setting that controls this for both ASP and ASP.NET. I hope the following will help anyone needing to see error details on a remote connected browser. For Classic ASP Errors In … [Read more...]