ARRRRHHHHHH !!!!! This is the second time I came across this, grrrh - wasted this time.
Mistake:
The server encountered an error processing the request. Exception message: "Keyword not supported:" start directory, MyDatabase; data source. See Server Logs for more information. Exception stack trace:
Stacktrace:
in System.Data.Common.DbConnectionOptions.ParseInternal (Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) in System.Data.Common.DbConnectionOptions..ctor (String connectionString, Synonyms Hashtable, Boolean useOdc. Data.SqlClient.SqlConnectionString..ctor (String connectionString) in System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (String connectionString, DbConnectionOptions previous) at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGectionPontConnectionObConnection DocConnectionDbConnectionDbConnectionDbConnection in System.Data.SqlClient.SqlConnection.ConnectionString_Set (DbConnectionPoolKey key) in System.Data.SqlClient.SqlConnection.set_ConnectionString (string value) in System.Data.SqlClient.SqlConnection..ctor (String connectionString, SqlCredential credentials)
This was my erroneous connection string:
<add name="Production" connectionString="Password=Secret;Persist Security Info=True;User ID=MyUserID;Initial Catalog;MyDatabase;Data Source=aquickborwnfoxjumpedover.us-west-2.rds.amazonaws.com,1433" providerName="System.Data.SqlClient" />
Looks nice? WRONG
In the end, I noticed a colon here:
Start Directory, MyDatabase
To fix this, I used an equal sign:
Start Directory = MyDatabase
The correct connection string is:
<add name="ConnString" connectionString="Password=Secret;Persist Security Info=True;User ID=MyUserID;Initial Catalog=MyDatabase;Data Source=aquickborwnfoxjumpedover.us-west-2.rds.amazonaws.com,1433" providerName="System.Data.SqlClient" />
Jeremy thompson
source share