<?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>TimWeb &#187; Database</title>
	<atom:link href="http://tim.bellette.net/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://tim.bellette.net</link>
	<description>Tim Bellette on the Internets</description>
	<lastBuildDate>Fri, 13 Aug 2010 13:00:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Unable To Instantiate TRIM Database: 80040154</title>
		<link>http://tim.bellette.net/2010/04/04/unable-to-instantiate-trim-database-80040154/</link>
		<comments>http://tim.bellette.net/2010/04/04/unable-to-instantiate-trim-database-80040154/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 23:12:25 +0000</pubDate>
		<dc:creator>Tim Bellette</dc:creator>
				<category><![CDATA[Fix]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[80040154]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[TRIM]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Work Around]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://tim.bellette.net/?p=685</guid>
		<description><![CDATA[I recently came across this]]></description>
			<content:encoded><![CDATA[<p>I recently came across this error while attempting to connect to TRIM 6 R2 via the TRIMSDK: <em>Retrieving the COM class factory for component with CLSID {8A354548-6BCB-11D3-B273-00A0C9FC3DC0} failed due to the following error: 80040154</em>.</p>
<p>This was a little alarming because it was using the same data adapter as a few other TRIM projects, which were working fine; the only difference between the project was that this particular project was a WPF application, and all of the other applications were ASP.NET applications. This particular application had also previously worked fine, the only change was that I had been upgraded to a 64-bit environment.</p>
<p>After a bit of playing around and research I discovered the TRIM SDK will not connect under a 64-bit process.</p>
<p><strong>Workaround</strong>:</p>
<ol>
<li>In Visual Studio, right-click your project and go to <strong>Properties</strong> (last item).</li>
<li>Select the <strong>Build</strong> tab.</li>
<li>Change the <strong>Configuration</strong> option to <em>All Configurations</em>.</li>
<li>Change the <strong>Platform Target</strong> to <em>x86</em>.</li>
</ol>
<p>This will ensure that your application will only run under an x86 architecture, and will be able to connect to TRIM even on a 64-bit host.</p>
<p>Looking at the <a href="http://h18000.www1.hp.com/products/quickspecs/13507_div/13507_div.pdf">QuickSpecs for TRIM 7</a> it is being based on a 64-bit architecture and therefore this issue should be eliminated come TRIM 7 (in addition to some SDK enhancements and UI integration tools).</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://tim.bellette.net/2010/04/04/unable-to-instantiate-trim-database-80040154/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIX: Access is Denied 0x80070005</title>
		<link>http://tim.bellette.net/2008/10/30/fix-access-is-denied-0x80070005/</link>
		<comments>http://tim.bellette.net/2008/10/30/fix-access-is-denied-0x80070005/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 10:22:49 +0000</pubDate>
		<dc:creator>Tim Bellette</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Msdtc]]></category>
		<category><![CDATA[Transaction]]></category>

		<guid isPermaLink="false">http://tim.bellette.net/?p=14</guid>
		<description><![CDATA[Recently I came across the]]></description>
			<content:encoded><![CDATA[<p>Recently I came across the problem where i was occasionally receiving an ‘<strong>Access is Denied 0x80070005</strong>′ error in the test environment for an ASP.NET application I was developing. After narrowing it down I discovered the error was only ever occurring when a call to the database was being made within the bounds of a TransactionScope(). After a quick search I discovered <a title="Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) " href="http://forums.asp.net/p/1225290/2198163.aspx">a thread</a> on the asp.net forums where someone else was having this issue as the MSDTC was not configured correctly.</p>
<p>Applying the same information from the aforementioned thread I soon discovered that the test vs development environments were showing similar results to that mentioned in the thread. In the end the following solution resolved the problem.</p>
<p>Use <strong>sc sdshow msdtc</strong> on the server to display the current configuration, which should be similar to:</p>
<p>D:(A;;CCLCSWRPLOCRRC;;;S-1–2-0)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)<span style="color: #ff0000;">(A;;CR;;;AU)</span>(A;;CCLCSWRPWPDTLOCRRC;;;PU)(A;;CCLCSWRPLORC;;;NS)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)</p>
<p>Using <strong>sc sdset msdtc</strong> change the section in red to read as (A;;CCLCSWRPRC;;;WD) e.g:</p>
<p>D:(A;;CCLCSWRPLOCRRC;;;S-1–2-0)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)<span style="color: #ff0000;">(A;;CCLCSWRPRC;;;WD)</span>(A;;CCLCSWRPLORC;;;NS)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)</p>
<!-- PHP 5.x -->]]></content:encoded>
			<wfw:commentRss>http://tim.bellette.net/2008/10/30/fix-access-is-denied-0x80070005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
