Connection string parsing error
Posted: Fri 20 Feb 2015 16:17
FYI if you split the connection string line in web.config into multiple lines you will get an error:
If you try the same thing with a SqlClient connection string it will work.
This isn't a major issue but with the increased size and complexity of EntityFramework connection strings it is helpful to split these up into multiple lines to make them more readable.
Thank you
For example this connection string will fail:Unknown connection string parameter ' Password'
Code: Select all
connectionString="metadata=res://*/SalesForceDataModel.csdl
|res://*/SalesForceDataModel.ssdl
|res://*/SalesForceDataModel.msl;
provider=Devart.Data.Salesforce;
provider connection string="
User Id=xxxxxx;
Password=yyyyy;
Security Token=zzzzzz;
Client Id=AFG.Admin;
Persist Security Info=True;
Host=login.salesforce.com;
Data Cache=d:/web/admin/appdata/1.db;
Metadata Cache=d:/web/admin/appdata/1_metadata.db;""
providerName="System.Data.EntityClient" />
This isn't a major issue but with the increased size and complexity of EntityFramework connection strings it is helpful to split these up into multiple lines to make them more readable.
Thank you