我在 Web.config 中有以下连接字符串:
<add name="CTRS2Entities" connectionString="metadata=res://*/Edmx.CTRS2.csdl|res://*/Edmx.CTRS2.ssdl|res://*/Edmx.CTRS2.msl;provider=System.Data.SqlClient;provider connection string="Data Source=SYS2-PC;Initial Catalog=CTRS2;user id=**;password=***;Integrated Security=True;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
它在开发模式下运行良好。但是,当我将其部署到 IIS 时,出现以下错误:
Format of initialization string does not conform to specification starting at index 0.