Page 1 of 1

Connection string parsing error

Posted: Fri 20 Feb 2015 16:17
by brucecallen
FYI if you split the connection string line in web.config into multiple lines you will get an error:
Unknown connection string parameter ' Password'
For example this connection string will fail:

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" />
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

Re: Connection string parsing error

Posted: Tue 24 Feb 2015 08:41
by Shalex
We cannot reproduce the problem in our environment. Please specify the call stack of the error and send us a small test project for reproducing the issue.