<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rock, Paper, Software &#187; Entity Framework</title>
	<atom:link href="http://software.tulentsev.com/category/entity-framework/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.tulentsev.com</link>
	<description>Random thoughts about programming</description>
	<lastBuildDate>Fri, 03 Feb 2012 13:47:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Entity Framework, SQLExpress and remote connections</title>
		<link>http://software.tulentsev.com/2008/12/entity-framework-sqlexpress-and-remote-connections/</link>
		<comments>http://software.tulentsev.com/2008/12/entity-framework-sqlexpress-and-remote-connections/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 00:04:42 +0000</pubDate>
		<dc:creator>Sergei Tulentsev</dc:creator>
				<category><![CDATA[Entity Framework]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://software.tulentsev.com/2008/12/entity-framework-sqlexpress-and-remote-connections/</guid>
		<description><![CDATA[Today I had to fight one small, but highly annoying problem. It is related to Entity Framework and SQL Server connection string. When you create a .edmx file with your model, the wizard automatically inserts proper connection string to your app.config or web.config file. Well, it is not always correct string. In my case, I [...]]]></description>
			<content:encoded><![CDATA[<p>Today I had to fight one small, but highly annoying problem. It is related to Entity Framework and SQL Server connection string. When you create a .edmx file with your model, the wizard automatically inserts proper connection string to your app.config or web.config file. Well, it is not always correct string.</p>
<p>In my case, I have .edmx file in a class library and it worked fine when I was using it from WinForms application. But then I decided to put it on a web site. And it ceased to work. The only thing I could get from it was</p>
<p><span style="color: #0080ff;">SQL Server 2005 SQLExpress error: &#8230;provider: Named Pipes Provider, error 40 &#8211; Could not open connection to SQL Server</span></p>
<p>I tried many things, but in the end it turned to be some mistreatment of a connection string. Mine looks this way:</p>
<p><a href="http://software.tulentsev.com/wp-content/uploads/2008/12/image1.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" src="http://software.tulentsev.com/wp-content/uploads/2008/12/image-thumb1.png" border="0" alt="image" width="590" height="113" /></a></p>
<p>The problem goes away when I put a backslash instead of slash in &#8220;./SQLEXPRESS&#8221;. It looks pretty weird, because they always used forward slash in such autogenerated connection strings, didn&#8217;t they?</p>
<p>P.S.: Sorry about connection string being image here. :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://software.tulentsev.com/2008/12/entity-framework-sqlexpress-and-remote-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

