The reason for the above problem in my case is that my Web application is using HTTPS on localhost, but the self signed certificate biinding to HTTPs is from my old VHD and in wrong domain.
To fix the problem I have to recreate a self signed certificate and add it to the binding of your locally hosted site.