I don't know what happened but when I build the project, this error showed up.
Does anyone know?
In my case, I have missed connection string details in web.config file.
I had <connectionStrings configSource=".\UmbracoConnectionDetails.config" />
in my web.config file but UmbracoConnectionDetails.config was missing in my root folder. Just has added file and working fine.