MTS and .NET

D

Dinesh Upare

Hello,
Can somebody help me out?
I have a MTS component which has been developed in Vb6.0.
It uses GetObjectContext method to get the hold of Http Context of the web
server, but
when I create a wrapper of the object and use it in asp.net, the
GetObjectContext is not
able to get hold of HTTPcontext in ASp.NET and hence a null object.

What is the problem here?

Thanks

Dinesh
 
M

Manoj G [MVP]

Hi,
To get hold of the Http context you need to include a reference to
System.Web.Dll in your component and then access the context using the
HttpContext.Current property.
(I am not sure if HTTPcontext is accessible out of process, ie flow of
context across processes)
If you are looking for COM+ context , then u need to use the ContextUtil
class from the System.EnterpriseServices namespace.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top