I have created on my local machine with targetframework 4 in visual studio a simple website using the default template (the one with css problem solved here http://stackoverflow.com/questions/3897781/google-maps-api-in-asp-net-masterpage-why-it-stays-blank)
I uploaded it to my IIS 7 server which was first configured for .NET 2 so in web.config I deleted the line
<compilation debug="false" targetFramework="4.0" />
so that it can run on .NET 2.
Until then that was fine.
Then I edited in ISS7 my website to use .NET 4. When testing the site again, I got this error:
Failed to generate a user instance of SQL Server due to
failure in retrieving the user's local application data path.
I hadn't told you that I didn't install any sql server yet so this message may be normal but why didn't I get it with .NET 2 ? Could I configure something in .NET 4 so that this error is ignored like on .NET 2 ?