I had a problem with very long first load of my ASP.NET MVC webpage with SQL Server Compact when I deployed it to IIS. In Visual Studio it was working quite OK, but after deploy to IIS load took about 40 seconds.
I browsed Internet without success, but after few days I found this blog which solved my problem! Thank you ErikEj!
I haven’t configured internet proxy for local system account which was needed for CRL checking during load (netsh winhttp set proxy proxyServer:port “<local>”)