nlog using the connectionStringName for database logging

后端 未结 1 763
逝去的感伤
逝去的感伤 2021-01-02 06:22

here is my nlog.config file. I have turned on the throwsException.



        
相关标签:
1条回答
  • 2021-01-02 06:39

    Add System.Data.SqlClient to attribute ProviderName in your connection string in web.config/app.config:

    <add name="ApplicationConnectionString" 
    providerName="System.Data.SqlClient"
    connectionString="server=.\SQLExpress;database=Movie;integrated security=true;"/>
    
    0 讨论(0)
提交回复
热议问题