Connection string parsing error

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
brucecallen
Posts: 6
Joined: Tue 17 Feb 2015 20:31

Connection string parsing error

Post by brucecallen » 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:
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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Connection string parsing error

Post by Shalex » Tue 24 Feb 2015 08:41

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.

Post Reply