As I had the same problem before, always be careful if you install an ASP.NET website on a server where Sharepoint is already running.
Sharepoint removes some modules from the request pipeline. So if you need these modules, explicitly re-add them in the web.config of your ASP.NET application.
One to remember!