developers.de
daenet's .NET Community

DataServices 0x80070006 error

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

When working with Ado.Net data services you may get following error.

Could not load file or assembly 'System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

This error can indicate anything related to JIT-er. In my case there is directly nothing to do with JIT-er.
I have a service which talks to database by using of ADO.NET services (like described in this post).

However my DataService overrides the method OnStartProcessingRequest. Within this method I invoke sometimes another service to check the caller’s permissions. If this fails the error shown above will appear.

In fact, this error is shown (at least) if the method like OnStartProcessingRequest fails during execution.

protected override void OnStartProcessingRequest(ProcessRequestArgs args)
{

  throw Exception(“Any error here causes the error described aabove”)

}


Posted Jan 26 2010, 01:59 PM by Damir Dobric
Filed under: ,

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
daenet GmbH