Most .NET 4 shared hosting providers offering their customers a medium trust environment. This is not a problem for most web applications unless the applications uses MySQL in combination with the .NET MySQL driver (MySQL.Data.dll). The MySQL driver connects to the MySQL database using a socket. However, sockets are not allowed in medium trust. The application will throw a SecurityException with the following message:
Request for the permission of type 'System.Net.SocketPermission, System, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Continue reading Fix .NET 4 SocketPermission for MySQL driver in Medium Trust
Today I finally assembled my HTPC. There were some stock issues with the case I ordered, so after a week I ordered another. Although the motherboard is passively cooled I decided to enable one of the two case fans. Unfortunately the fans are very noisy when directly connected to the motherboard, so I placed a simple Zalman fancontroller between the fan and motherboard.
After building the HTPC I first installed Ubuntu 10.10 using a USB stick. Then I used this guide to install XBMC.
Continue reading Building a Home Theater PC part 2