Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

web publish causes issues with entity framework

$
0
0

 Hi,

I have 2 projects, the WebUI and domain (containing the entity framework)

I don't want WP3 to do anything to my connection strings, (the asp membership one in WebUI and the other one in domain), yet web deploy insists in modifying the web config(domainCS_DatabasePublish + domainCS, I used domainCS in my app config in the domain project) and I then get an error

Server Error in '/' Application.

Format of the initialization string does not conform to specification starting at index 81.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Format of the initialization string does not conform to specification starting at index 81.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Format of the initialization string does not conform to specification starting at index 81.]
   System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue) +6374820
   System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey) +253
   System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules) +134
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +103
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionStr

 

any ideas?

 

     <add name="domainCS" connectionString="Server=localhost\sqlexpress; Database=s; Integrated Security=SSPI;Persist Security Info=True&quot; providerName=&quot;System.Data.SqlClient&quot; " providerName="System.Data.SqlClient" />
        <add name="domainCS_DatabasePublish" connectionString="Server=localhost\sqlexpress; Database=s; Integrated Security=SSPI;Persist Security Info=True&quot; providerName=&quot;System.Data.SqlClient&quot; " providerName="System.Data.SqlClient" />
    


Viewing all articles
Browse latest Browse all 27852

Trending Articles