<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Scott's Breeze Blog - RFID, BizTalk  - WCF LOB Adapters</title>
    <link>http://blogs.breeze.net/scotts/</link>
    <description>...and everything in between</description>
    <language>en-us</language>
    <copyright>Breeze Training</copyright>
    <lastBuildDate>Mon, 22 Sep 2008 13:31:09 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>scotts@breezetraining.com.au</managingEditor>
    <webMaster>scotts@breezetraining.com.au</webMaster>
    <item>
      <trackback:ping>http://blogs.breeze.net/scotts/Trackback.aspx?guid=1d53295f-f342-4e66-a33e-162ddb23aa51</trackback:ping>
      <pingback:server>http://blogs.breeze.net/scotts/pingback.aspx</pingback:server>
      <pingback:target>http://blogs.breeze.net/scotts/PermaLink,guid,1d53295f-f342-4e66-a33e-162ddb23aa51.aspx</pingback:target>
      <dc:creator>Scott Scovell</dc:creator>
      <wfw:comment>http://blogs.breeze.net/scotts/CommentView,guid,1d53295f-f342-4e66-a33e-162ddb23aa51.aspx</wfw:comment>
      <wfw:commentRss>http://blogs.breeze.net/scotts/SyndicationService.asmx/GetEntryCommentsRss?guid=1d53295f-f342-4e66-a33e-162ddb23aa51</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Had a strange error appear last week when using the WCF LOB Adapter for Oracle and
spent an hour of my life I will never get back. When attempting to connect to an Oracle
DB we kept getting the following error:
</p>
        <blockquote>
          <p>
            <em>ORA-12154: TNS:could not resolve the connect identifier specified</em>
          </p>
        </blockquote>
        <p>
This occurred when we:
</p>
        <ol>
          <li>
Tried to generate metadata in our BizTalk project using the Add Generated Items wizard.</li>
          <li>
Tried to generate metadata in a Class Library project using the Add Adapter Service
Reference wizard.</li>
          <li>
Connect to an Oracle DB using the Oracle Explorer.</li>
        </ol>
        <p>
We had all the latest versions/patches of the Oracle client and WCF LOB Adapter (Oh,
yeah. Thanks Oracle for packaging patches in easy to consume 1GB downloads...love
your work!!)
</p>
        <p>
We could however, connect to Oracle using the Oracle SQL Developer Tool. So we knew
something was happening (or not happening inside of VS).
</p>
        <p>
It turns out the issue relates to the install directory of VS2005. In our case it
was 
</p>
        <blockquote>
          <p>
            <em>C:\Program Files (x86)\...</em>
          </p>
        </blockquote>
        <p>
This triggers an *undocumented feature* in the Oracle Data Provider for .Net (ODP.NET)
so that applications with a parenthesis in their (exe) path fail to connect to the
server.
</p>
        <p>
The solution was to uninstall VS2005 and reinstall using a different install directory
*one that did not have (x86) in it*.
</p>
        <p>
          <img alt="smile_confused" src="http://spaces.live.com/rte/emoticons/smile_confused.gif" /> ...
I know, I did not want to believe it either, but if you want to save yourself time
and hair try this solution first.
</p>
        <img width="0" height="0" src="http://blogs.breeze.net/scotts/aggbug.ashx?id=1d53295f-f342-4e66-a33e-162ddb23aa51" />
      </body>
      <title>WCF LOB Adapter for Oracle on 64-bit OS</title>
      <guid isPermaLink="false">http://blogs.breeze.net/scotts/PermaLink,guid,1d53295f-f342-4e66-a33e-162ddb23aa51.aspx</guid>
      <link>http://blogs.breeze.net/scotts/2008/09/22/WCFLOBAdapterForOracleOn64bitOS.aspx</link>
      <pubDate>Mon, 22 Sep 2008 13:31:09 GMT</pubDate>
      <description>&lt;p&gt;
Had a strange error appear last week when using the WCF LOB Adapter for Oracle and
spent an hour of my life I will never get back. When attempting to connect to an Oracle
DB we kept getting the following error:
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
&lt;em&gt;ORA-12154: TNS:could not resolve the connect identifier specified&lt;/em&gt;
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
This occurred when we:
&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
Tried to generate metadata in our BizTalk project using the Add Generated Items wizard.&lt;/li&gt;
&lt;li&gt;
Tried to generate metadata in a Class Library project using the Add Adapter Service
Reference wizard.&lt;/li&gt;
&lt;li&gt;
Connect to an Oracle DB using the Oracle Explorer.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
We had all the latest versions/patches of the Oracle client and WCF LOB Adapter (Oh,
yeah. Thanks Oracle for packaging patches in easy to consume 1GB downloads...love
your work!!)
&lt;/p&gt;
&lt;p&gt;
We could however, connect to Oracle using the Oracle SQL Developer Tool. So we knew
something was happening (or not happening inside of VS).
&lt;/p&gt;
&lt;p&gt;
It turns out the issue relates to the install directory of VS2005. In our case it
was 
&lt;/p&gt;
&lt;blockquote&gt; 
&lt;p&gt;
&lt;em&gt;C:\Program Files (x86)\...&lt;/em&gt;
&lt;/p&gt;
&lt;/blockquote&gt; 
&lt;p&gt;
This triggers an *undocumented feature* in the Oracle Data Provider for .Net (ODP.NET)
so that applications with a parenthesis in their (exe) path fail to connect to the
server.
&lt;/p&gt;
&lt;p&gt;
The solution was to uninstall VS2005 and reinstall using a different install directory
*one that did not have (x86) in it*.
&lt;/p&gt;
&lt;p&gt;
&lt;img alt="smile_confused" src="http://spaces.live.com/rte/emoticons/smile_confused.gif"&gt; ...
I know, I did not want to believe it either, but if you want to save yourself time
and hair try this solution first.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blogs.breeze.net/scotts/aggbug.ashx?id=1d53295f-f342-4e66-a33e-162ddb23aa51" /&gt;</description>
      <comments>http://blogs.breeze.net/scotts/CommentView,guid,1d53295f-f342-4e66-a33e-162ddb23aa51.aspx</comments>
      <category>BizTalk General</category>
      <category>WCF LOB Adapters</category>
    </item>
  </channel>
</rss>