Print Page | Close Window

Connectionstring missing

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=941
Printed Date: 27-Jan-2026 at 7:17pm


Topic: Connectionstring missing
Posted By: yrod
Subject: Connectionstring missing
Date Posted: 19-Sep-2008 at 7:01am
Hello,

i trying to run the tutorials, but i get this message:(German)

"Der Parameter 'connectionString' ist ungültig. Zeichenfolgenargumente dürfen nicht leer sein.
Parametername: connectionString"


can anybody tell me, how i solve dies problem?

Thanks

Yovanny



Replies:
Posted By: kimj
Date Posted: 19-Sep-2008 at 12:19pm
Double-check the edmKey(s) in the app.config file in the AppHelper project, the connection string value might have been erased.   The keys originally probably looked similar to this:
 
            <edmKey connection="metadata=res://ServerModelNorthwindIB/ServerModelNorthwindIB.csdl|res://ServerModelNorthwindIB/ServerModelNorthwindIB.ssdl|res://ServerModelNorthwindIB/ServerModelNorthwindIB.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=NorthwindIB;Integrated Security=True;MultipleActiveResultSets=True&quot;"
                containerName="ServerModelNorthwindIB.ServerModelNorthwindIBContext"
                logTraceString="false" name="NorthwindIB" tag="">
                <probeAssemblyNames>
                    <probeAssemblyName name="DomainModel" />
                    <probeAssemblyName name="ServerModelNorthwindIB" />
                </probeAssemblyNames>
            </edmKey>
            <edmKey connection="metadata=res://ServerModelAw2000/ServerModelAw2000.csdl|res://ServerModelAw2000/ServerModelAw2000.ssdl|res://ServerModelAw2000/ServerModelAw2000.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=AdventureWorks2000;Integrated Security=True;MultipleActiveResultSets=True&quot;"
                containerName="ServerModelAw2000.ServerModelAw2000Context"
                logTraceString="false" name="Aw2000" tag="">
                <probeAssemblyNames>
                    <probeAssemblyName name="DomainModel" />
                    <probeAssemblyName name="ServerModelAw2000" />
                </probeAssemblyNames>
            </edmKey>


Posted By: yrod
Date Posted: 22-Sep-2008 at 2:21am
It works thanks a lot.



Print Page | Close Window