here is my nlog.config file. I have turned on the throwsException.
Add System.Data.SqlClient to attribute ProviderName in your connection string in web.config/app.config:
System.Data.SqlClient
ProviderName