Monthly Archives: March 2010

Access Denied when Starting Service

I’ve just migrated a .NET app from WinXP to Win7, and have had my first battle with the User Account Control (UAC). My problem was that I was unable to start a service on my local machine. When calling the … Continue reading

Posted in Tips and Tricks | Tagged , | Leave a comment

C# Useful Attributes

Attributes are a great tool in any C# developers toolbox. I confess I don’t use them enough and often struggle to remember their names. The short list below are attributes that I’ve found useful, including a few examples of their … Continue reading

Posted in Reference | Tagged | 2 Comments

ASP.NET Location Based Authorization

When using ASP.NET forms authentication it is easy to restrict users from accessing pages in certain folders. I usually add a Web.Config file containing the Authorization block to each folder. If we wanted to allow the Admin role in a … Continue reading

Posted in Tips and Tricks | Tagged | Leave a comment