Problem with ScriptingContext in COM+ application.

M

Martin Emanuelsson

Hello!

I'm having a problems when trying to make a DLL in VB6.

The code is using ScriptingContext to access the Cookies-collection from the
asp-pages, but when I try making the DLL I get the following error-message:

**************
Compile error:
Function of interface marked as restricted, or the function uses an
Automation type not supported in Visual Basic.
**************

When I click OK, ScriptingContext.Request.Cookies is marked. Could anyone
please help me with this problem? I'm more of a .NET guy but some of the
applications that I'm in charge of are still using ASP and COM+ so
unfortunately I'm not too familiar with these techniques.

/Martin
 
A

Alan Howard

I can't give you any specific information on why this error is occurring
(try Google) but you should be accessing the intrinsic objects from the DLL
using ObjectContext. Perhaps use of ScriptingContext has been deprecated??

Set oObjectContext = GetObjectContext()
Set oRequest = oObjectContext("Request")
....
oRequest.Cookies.....

Hope this helps,

Alan
 

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

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top