473,320 Members | 1,936 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,320 software developers and data experts.

Unable to finish processing COM related Event in ASP.NET

I am sure this is a simple question.

I have a legacy VB6 COM Object that collects information on a local PC
device. I want to be able to have it be invoked from an ASP Page. I have
Done the following

Dim Withevents MyCom as MYCom.XYZ

Created a Sub that collected MYCom's event. During debugging I can see that
the method is being invoked properly and the debugger will stop within the
my event handler.

A examination of the returned data within the debugger is fine, however, I
cannot do an Response.Redirect or Server.Transfer within that same event
handler.

What I basically want to do is when the handler is invoked to store the
result data as a session variable and then move to another page. this next
page will display the results.
However as I note the Response.Redirect statement does not seem to do
anything.

What am I missing here?

Thanks for your time

Nov 18 '05 #1
1 1142
Hi Chris,
Thanks for posting in the community!
From your description, you encountered some problems when calling the
"Response.Redirect" or "Server.Transfer" mehtod in a VB6 COM object which
is used in an CLASSIC ASP page, yes?
If there is anything I misunderstood, please feel free to let me know.

As for this problem, I think you may have a check to see whether the
"Response" or "Server" or other certain ASP buildin in objects is well
passed in that COM object. Would you please try out the following steps:
1.Try calling the other methods or members of the "Response" or "Server"
object to see whether the problem remains.

2. If still remains, try creating another simple VB6 COM component and used
the ASP buildin object such as Response, Request, Server.. in it to see
whether the problem remains. If not, you may compare it with the COM with
problems to see if there're any differences.

Also, since I'm not sure how this COM component is used in your ASP
component would you please provide some more infos on the ASP page or the
detailed code logic in the COM object so that I can do some further
research on my side?

In addition, here are some tech articles on developing ASP components using
VB, you may also have a look to see whether they can provide any assitance:

#Making ASP component in VB
http://www.sloppycode.net/asp-components/tutorial/

#Build Components for the Web
http://msdn.microsoft.com/library/en...asp?frame=true


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2

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

Similar topics

5
by: Boris Nikolaevich | last post by:
This is backwards of what I usually want--normally if you have a long-running ASP script, it's a good idea to check to see whether the client is still connected so you can cancel execution. ...
2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this...
3
by: Susan Bricker | last post by:
Greetings. I have three forms that are open at the same time. They are related and cascading. The first form (frmEventAdd) is the anchor. Each event can have many Trials. The second form is...
0
by: developer | last post by:
I am trying to get a custom provider to receive health monitoring events in vb.net, whidbey beta 1. I have a health monitoring setup like this in my web.config: <healthMonitoring enabled="true">...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
3
by: tshad | last post by:
I created a service in VS 2003 and the code works fine as an application, but not as a service. It installs fine, but when I try to start it, it tells me it was unable to start. Am I missing...
0
by: Chris Fink | last post by:
I have walked through all of the WSE 3 Hands on Labs and got everything working fine. When I create my own certificate and install it in the stores, my client application that is consuming my WSE...
11
by: PokerMan | last post by:
Hi I have a situation where a method is fired from receiving a message from my server. On receiving this message it triggers a visual animation. So what happens when the server sends say 3...
0
Frinavale
by: Frinavale | last post by:
I have a peculiar problem... Background: I have a function that I don't want the user to execute more than once while they are waiting for it to process; therefore, I disable all of the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.