TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Мария Графова
NA
17
876
problem with connection string
Oct 6 2016 9:30 AM
Hi, i have problem with my win form entity framework based application. When i run program everything is ok but when i create and install setup have problem. I start application and receive error message:<span name="subject" style="font-size: 14pt;"><br />No connection string named "PhonebookEntities" could be found in the application config file<br /></span><div>I use SQL Server 2012 with server name:<strong> NT2\SQLEXPRESS1 </strong>and DBcontext name= <strong>PhonebookEntities</strong><br /><div class="dp-highlighter"><ol start="1" class="dp-xml"><li class=""><span><span class="tag"><</span><span class="tag-name">add</span><span> </span><span class="attribute">name</span><span>=</span><span class="attribute-value">"PhonebookEntities"</span><span> </span><span class="attribute">connectionString</span><span>="meta</span><span class="attribute-value">data</span><span>=res://*/PhoneModel.csdl|res://*/PhoneModel.ssdl|res://*/PhoneModel.msl;provider=System.Data.SqlClient;provider connection string="data </span><span class="attribute">source</span><span>=</span><span class="attribute-value">NT2</span><span>\SQLEXPRESS1;initial </span><span class="attribute">catalog</span><span>=</span><span class="attribute-value">Phonebook</span><span>;integrated </span><span class="attribute">security</span><span>=</span><span class="attribute-value">True</span><span>;</span><span class="attribute">MultipleActiveResultSets</span><span>=</span><span class="attribute-value">True</span><span>;</span><span class="attribute">App</span><span>=EntityFramework</span><span class="attribute-value">""</span><span> </span><span class="attribute">providerName</span><span>=</span><span class="attribute-value">"System.Data.EntityClient"</span><span> </span><span class="tag">/></span><span> <br /></span></span></li></ol></div></div><div><span name="subject" style="font-size: 14pt;"></span> <img src="https://i1.social.s-msft.com/globalresources/Images/trans.gif?cver=0%0d%0a" alt="" /></div><div>What i make wrong?</div><div> </div><div> </div>
Reply
Answers (
3
)
MSBI Online Training
unable to update my profile information in c-sharp corner .