error occurred while establishing a connection to SQL Server

前端 未结 8 1299
谎友^
谎友^ 2020-12-18 21:35

If I have my connection string in the web.config like this (added line feeds for better readability):



        
8条回答
  •  无人及你
    2020-12-18 22:09

    Check the version of the reference System.Data between the empty project that works, and your project that does not work. You can use the solution explorer to check this. Are both projects using the same version?

    enter image description here

提交回复
热议问题