Skip to content

Posts tagged ‘Configuration’

4
Apr

Unable To Instantiate TRIM Database: 80040154

I recently came across this error while attempting to connect to TRIM 6 R2 via the TRIMSDK: Retrieving the COM class factory for component with CLSID {8A354548-6BCB-11D3-B273-00A0C9FC3DC0} failed due to the following error: 80040154.

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.

After a bit of playing around and research I discovered the TRIM SDK will not connect under a 64-bit process.

Workaround:

  1. In Visual Studio, right-click your project and go to Properties (last item).
  2. Select the Build tab.
  3. Change the Configuration option to All Configurations.
  4. Change the Platform Target to x86.

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.

Looking at the QuickSpecs for TRIM 7 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).

19
Feb

Firefox 3 And Colour Management

I recently come across an article by Datacolor (the company who make the Spyder range of monitor / printer calibrators) which explains how to enable ICC profiles in Firefox 3. It is a very simple boolean (true/false) property which you need to change in the ‘hidden’ Firefox configuration.

In Firefox enter about:config in to the address bad and press enter. A warning message will show up saying “This might void your warranty!” ignore this and click “I’ll be careful, I promise” (don’t worry you don’t have warranty anyway ;-). Next, in the filter bar type in gfx.color_management.enabled. There should now only be one option in the list of configuration options, and it should be set to false by default. Simply double click this option to change it to true (it should now be bold, indicating it is no longer the default value). Restart Firefox and you should be up and running with ICC profiles.

Check out the original post by Datacolor for more information and for two images which will indicate if your browse supports ICC profiles.

30
Oct

FIX: Access is Denied 0×80070005

Recently I came across the problem where i was occasionally receiving an ‘Access is Denied 0×80070005′ 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 thread on the asp.net forums where someone else was having this issue as the MSDTC was not configured correctly.

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.

Use sc sdshow msdtc on the server to display the current configuration, which should be similar to:

D:(A;;CCLCSWRPLOCRRC;;;S-1–2-0)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CR;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)(A;;CCLCSWRPLORC;;;NS)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

Using sc sdset msdtc change the section in red to read as (A;;CCLCSWRPRC;;;WD) e.g:

D:(A;;CCLCSWRPLOCRRC;;;S-1–2-0)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)(A;;CCLCSWRPRC;;;WD)(A;;CCLCSWRPLORC;;;NS)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)