Failed to find or load the registered .Net Framework Data Provider

2013-05-20 Thread Greg Keogh
   - fuslogvw.exe shows no binding failures when my app crashes on the test
   machine.
   - I compared the fusion logs of one that works and one that fails and
   there are subtle differences, but there is no way of knowing what's right
   or wrong.
   - I've compared the GAC contents of the two machines and their data
   components seem quite similar.
   - I used procmon.exe to try and find file-not-found errors, but after
   tediously filtering down I can't find anything obvious.
   - The event logs show nothing related to my problem.

So this seemingly trivial error has me completely stumped. The worst and
most irritating thing is that despite hours of stuffing around I can't even
find a clear clue anywhere about what data provider is actually missing.

I will have to write small experimental programs which incrementally
introduce new dependencies to iterate towards an answer. That's an absurd
waste of time.

Greg


RE: Failed to find or load the registered .Net Framework Data Provider

2013-05-20 Thread Ian Thomas
Greg

Have you looked at the Registry on both (32-bit/64-bit), under Visual Studio
DataProviders? It may be a quicker comparison. 

I have only VS2010 installed, the key being
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0_Config\DataProviders
] - 

 

  _  

Ian Thomas
Victoria Park, Western Australia

 

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Greg Keogh
Sent: Monday, May 20, 2013 3:17 PM
To: ozDotNet
Subject: Failed to find or load the registered .Net Framework Data Provider

 

*   fuslogvw.exe shows no binding failures when my app crashes on the
test machine.
*   I compared the fusion logs of one that works and one that fails and
there are subtle differences, but there is no way of knowing what's right or
wrong.
*   I've compared the GAC contents of the two machines and their data
components seem quite similar.
*   I used procmon.exe to try and find file-not-found errors, but after
tediously filtering down I can't find anything obvious.
*   The event logs show nothing related to my problem.

So this seemingly trivial error has me completely stumped. The worst and
most irritating thing is that despite hours of stuffing around I can't even
find a clear clue anywhere about what data provider is actually missing.

 

I will have to write small experimental programs which incrementally
introduce new dependencies to iterate towards an answer. That's an absurd
waste of time.

 

Greg



Re: Failed to find or load the registered .Net Framework Data Provider

2013-05-19 Thread Greg Keogh
I copied EVERY dll referenced by the project over to the test machine and
it still fails. I was suspicious that the test machine it did work on had
Visual Studio 2012 installed on it, so I uninstalled VS2012 and all other
development tools (it's an old spare VM) and now it crashes there as well.
So VS2012 is putting something on the machine that allows my app to run.

I'm absolutely stumped, and I thought I knew how this stuff works. I just
can't find what is the missing .Net data provider.

As an aside: I just noticed that the Framework library project references
are to files in these folders:

C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Entity.dll
Didn't they used to be in the GAC? When did they move over to Program Files?

Greg


Re: Failed to find or load the registered .Net Framework Data Provider

2013-05-19 Thread Preet Sangha
Did check the fusion log to see what was being probed for?

On 20 May 2013 11:09, Greg Keogh g...@mira.net wrote:

 I copied EVERY dll referenced by the project over to the test machine and
 it still fails. I was suspicious that the test machine it did work on had
 Visual Studio 2012 installed on it, so I uninstalled VS2012 and all other
 development tools (it's an old spare VM) and now it crashes there as well.
 So VS2012 is putting something on the machine that allows my app to run.

 I'm absolutely stumped, and I thought I knew how this stuff works. I just
 can't find what is the missing .Net data provider.

 As an aside: I just noticed that the Framework library project references
 are to files in these folders:

 C:\Program Files (x86)\Reference
 Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.Entity.dll
 Didn't they used to be in the GAC? When did they move over to Program
 Files?

 Greg




-- 
regards,
Preet, Overlooking the Ocean, Auckland


Re: Failed to find or load the registered .Net Framework Data Provider

2013-05-19 Thread Greg Keogh

 Did check the fusion log to see what was being probed for?


Ah! fuslogvw ... Good idea, I'll try it tonight when I get home -- Greg


Re: Failed to find or load the registered .Net Framework Data Provider

2013-05-19 Thread Preet Sangha
Hope it helps.

My standard debugging technique is to now always check any and all logs I
know about just in case something somewhere has recorded a little titbit of
info that could be relevant.

You'd be surprised what windows logs


On 20 May 2013 13:14, Greg Keogh g...@mira.net wrote:

 Did check the fusion log to see what was being probed for?


 Ah! fuslogvw ... Good idea, I'll try it tonight when I get home -- Greg




-- 
regards,
Preet, Overlooking the Ocean, Auckland