473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Problem with ScriptingContext in COM+ application.

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
Jul 19 '05 #1
1 3312
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


"Martin Emanuelsson" <ma****************@guide.se> wrote in message
news:ea**************@TK2MSFTNGP09.phx.gbl...
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

Jul 19 '05 #2

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

Similar topics

9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
0
by: abcd | last post by:
I am writing a VB component. I want to make a request to hello.asp page from VB component. I am using Scriptinc Context for that. How can I make a request so that I can get a response back from...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
10
by: Saso Zagoranski | last post by:
hi, this is not actually a C# problem but since this is the only newsgroup I follow I decided to post my question here (please tell me where to post this next time if you think this post...
0
by: Hitesh | last post by:
I am using ASP.NET (.ASPX) to develop a web application. I am using one of my old COM component dll, which has a method "OnStartPage", which has a parameter of type "ScriptingContext". My old...
0
by: Oenone | last post by:
Hopefully this is the relevant group for this question, please let me know if it's not. We have a system that we've been using for years running from COM DLLs invoked from an .asp page. It uses...
4
by: pjdouillard | last post by:
Hello all, Here is the context of my problem: We have an ASP.NET 1.1 application that has its own application pool setup and that runs under the identity of a NT Domain service account (this...
1
by: Steven M. | last post by:
Greetings... I need desperate help with my problem. I guess the solution is related in some way with the cookies getting lost in the authentication process working with some web servers. ...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.