HighTechTalks DotNet Forums  

Issues with ActiveDS on .NET framework 2.0

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Issues with ActiveDS on .NET framework 2.0 in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
pdabak@yahoo.com
 
Posts: n/a

Default Issues with ActiveDS on .NET framework 2.0 - 05-22-2007 , 03:02 AM






Hello,

I have an application that manages various active directory objects
using ActiveDS interop. This application was working fine on .NET
framework 1.1. Recently, I ported this application to .NET 2.0. After
this I am intermittently encountering following errors while setting
AD properties.

1. COM object that has been separated from its underlying RCW cannot
be used.
The typical stack trace reveals the following

Exception: System.Runtime.InteropServices.InvalidComObjectExc eption
Message: COM object that has been separated from its underlying RCW
cannot be used.
Source: Interop.ActiveDs
at ActiveDs.IADsUser.set_AccountDisabled(Boolean retval)

2. Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.

The typical stack trace reveals the following

Exception: System.AccessViolationException
Message: Attempted to read or write protected memory. This is often an
indication that other memory is corrupt.
Source: Interop.ActiveDs
at ActiveDs.IADsUser.SetInfo()

I read on some forums, that this typically happens in a multi-threaded
application where objects created in one thread in accessed from
another thread. Although my application is multi-threaded it doesn't
share any objects across threads.

Has anybody seen similar issues. If so, what is the resolution? Any
help will be much appreciated.

Thanks.
-Prasad


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.