Groups | Blog | Home
all groups > dotnet component services > may 2004 >

dotnet component services : Queued Component = passing objec param


Steven
5/21/2004 7:11:52 PM
Hi all,
Using VB.NET and Active Directory, I am trying to pass an object,
converted to byte array, to a queued component on Win2K. The converted
message goes into the queue but is dropped to the retry queue when the
component is started. I thought we were supposed to be able to pass
primitive types without using IPersistStream. And yes, I have read the code
at http://www.codeproject.com/csharp/objqcparameter.asp. Has anyone
converted this code to VB? Im not sure how one would convert this code
since it is using pointers, which in themselves are unsafe code. Anyone
have any ideas?
Another issue, I have tried to connect to the instance of dllhost.exe so I
could debug the code. I am getting 'access denied' when I try. I am a
member of the Enterprise Admins group. Any suggestions here?

TIA,
Steven

Steven
5/26/2004 1:51:09 PM
I have solved part of the problem, and since no answers were forthcoming
and for the benefit of others that may be in the same situation, here is
what I found. The problem with the byte stream was that the class
definition was in its own project as part of the solution. After the
solution was restructured and the class def was incorportated into the
component code, I was able to convert a class object to a byte array, pass
it to the QC, then deserialize to the original class definition.
I took the code at
http://www.codeproject.com/csharp/objqcparameter.asp and converted it to
VB.Net. I suppose I was successful in translation because I get the same
errors from the VB.Net code as the C# code when compiled and added to COM+.
Perhaps I have a setting different than the person that wrote the C# code.
I don't know what it is though.
As far as debugging dllhost.exe, I found no solution.
As a final analysis, I suppose we will use the byte array solution.
This appears to be the only workable solution and time is running short. If
anyone has been able to implement IPersistStream, using VB.Net, and pass an
object as a parameter, I would like to see the code.

[quoted text, click to view]

AddThis Social Bookmark Button