-
Can't get ASP Request object in VB.NET COM+ component
I have a problem retrieving the ASP Request object in my VB.NET COM+ component
(See code below).
Dim lo_Request As HttpRequest
lo_Request = ContextUtil.GetNamedProperty("Request")
The GetNamedProperty returns an OBJECT type that generates 'Specified cast
is not valid' error message.
More Info:-
-------------
I have created a VB.NET COM+ component.
I have used regsvcs and gacutil to successfully install the component.
I have set IISIntrinsics(True) in my COM+ component.
My COM+ component uses <Assembly: ApplicationActivation(ActivationOption.Server)>
I am calling the component from a conventional ASP page (see below):-
<%
Set lo = Server.CreateObject("Test.clsTest")
ls = lo.s_GetRequestVariable("Testing")
Response.Write(ls)
Response.end
%>
What am I doing wrong?
Any help would be appreciated.
Thanks in advance.
Paul.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks