Invalid character in a Base-64 string for connection string

后端 未结 1 1370
执笔经年
执笔经年 2021-01-28 23:41

I have a Sql Server 2008 R2 connection string that looks like

  

        
相关标签:
1条回答
  • 2021-01-29 00:36

    I think there is the problem

    connString =ConnectionStrings.ConnectionStrings["ConnectionString"];
    

    It should be

    connString =ConnectionStrings.ConnectionStrings["DBConnectionString"];
    

    Since you have key DBConnectionString in you configuration file not ConnectionString.

    Useful link:

    1. Read connection string from web.config
    0 讨论(0)
提交回复
热议问题