Hidden Attribute causes UnauthorizedAccessException in File.Copy

If you are getting "System.UnauthorizedAccessException: Access to the path 'destFileName' is denied" when you call File.Copy to copy and overwrite a file, the two more obvious possible causes are documented on MSDN: Exception Condition UnauthorizedAccessException The caller does not have the required permission. -or- destFileName is read-only. I ran into a third possible cause last week. If the … Continue reading Hidden Attribute causes UnauthorizedAccessException in File.Copy

Troubleshooting Windows System Process CPU Spike

In this blog post, we will look at a case of Windows system process CPU spike and the procedure to troubleshoot it. In general, if the system process on your Windows system is having high CPU usage, you want to Determine the thread in the system process that taking up the CPU resource and Identify the driver … Continue reading Troubleshooting Windows System Process CPU Spike

Using PostgreSQL with Entity Framework in ASP.NET MVC

In this blog post we are going to learn how to use PostgreSQL with Entity Framework in an ASP.NET MVC application. Introduction: I wanted to investigate using Entity Framework with PostgreSQL in an ASP.NET MVC application quickly. Instead of writing a trivial demo that simply read and write data from the database, I decided a better … Continue reading Using PostgreSQL with Entity Framework in ASP.NET MVC