473,503 Members | 8,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET and COM+

I have an ASP.NET web page that references a COM+ object. That COM+
object is written in VB.NET. That code contains many calls using
System.DirectoryServices. I'm running into some very strange errors
when the website is under load and have been reading that
DirectoryServices might not be thread safe? If its not what would be
the best way to safely achieve the above. I'm a little unsure of
using thread locking with a COM in this way (should it be on the
ASP.NET side or in the COM itself?), if anyone could give me some
guidance it would be much appreciated.

Thanks
Tyler

Jan 26 '06 #1
3 1080
Are you using COM+ so you could change the context of the caller when making
DirectoryServices calls or is there another reason for using COM+? If this
is the case, you could use various methods of impersonation to make the
DirectoryServices calls directly from the ASP.NET application without
involving COM+.

Matt Dinovo

<ty*********@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I have an ASP.NET web page that references a COM+ object. That COM+
object is written in VB.NET. That code contains many calls using
System.DirectoryServices. I'm running into some very strange errors
when the website is under load and have been reading that
DirectoryServices might not be thread safe? If its not what would be
the best way to safely achieve the above. I'm a little unsure of
using thread locking with a COM in this way (should it be on the
ASP.NET side or in the COM itself?), if anyone could give me some
guidance it would be much appreciated.

Thanks
Tyler

Jan 26 '06 #2
Hi Matt, Thanks so much for the quick reply.
Yes changing the context is the main reason I'm using it however
DirectoryServices isn't the only call I'm making. There are also
calls into CDOEXM, ADSSecurity and ActiveDS. The web page is also
running under the context of the user connected (Integrated
authentication). So I'm very limited on my options.

Thanks
Tyler

Jan 26 '06 #3
Hi Matt, Thanks so much for the quick reply.
Yes changing the context is the main reason I'm using it however
DirectoryServices isn't the only call I'm making. There are also
calls into CDOEXM, ADSSecurity and ActiveDS. The web page is also
running under the context of the user connected (Integrated
authentication). So I'm very limited on my options.

Thanks
Tyler

Jan 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6442
by: pieter.breed | last post by:
Hi All, The company I work for has traditionally used COM/ActiveX for the solutions that it provides. We are in the process of moving to .NET and a few applications have been written in VB.NET...
9
8555
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes...
9
3099
by: gulu man | last post by:
Hi, What is the substitute for COM objects in .NET? How can I create something similar to com in .net? Is it still possible? Thank you
1
8986
by: Praveen | last post by:
Hi, I have installed WebSphere Portal on AIX and connected to DB2 on a remote machine, Getting the followin errors when trying to get the values from database thru applications installed on...
5
2750
by: Duane Pressley | last post by:
I'm looking for someone to help me make sense of the results I'm observing when using the ThreadPool class in a COM-Interop scenario. Here's the set up: 1.. A classic ASP page instantiates and calls...
3
1503
by: Mike | last post by:
I have been developing ASP applications for quite a while now. Most of the apps that I deploy are a typical n-tier setup. ASP GUI on a web server, Business and Data Components written in VB6...
1
1747
by: Brian Henry | last post by:
does anyone have a class to interact with a com or lpt port? I need to be able to send hex codes through the data lines D1 - D8 on a LPT port... or D1-D4 on serial... i have seen classes in the...
1
1983
by: Nadav | last post by:
Hi, Introduction *************** I have a system build of a collection of 'Native COM objects' and '.NET COM interop' objects, all of the COM objects are managed through a 'Native COM' layer,...
26
4414
by: Lasse Edsvik | last post by:
Hello I'm trying to build a simple COM+ app in vs.net using C# and i cant register it in component manager..... what more is needed than this: using System; using...
8
8171
by: Z D | last post by:
Hello, I'm having a strange problem that is probably due to my lack of understanding of how threading & COM Interop works in a WinForms.NET application. Here's the situation: I have a 3rd...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.