ScriptingContext .asp Page From VB Component

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 my asp page...

So far I have written only these lines...

Dim ASPsc As ScriptingContext
Set ASPsc = ASP_Scripting_Context

How to make a request and get the response?

View Replies


ADVERTISEMENT

ASP/VB - OnStartPage & ScriptingContext?

I have a Webclass WebClassA which is instantiated from an ASP page via the WebClassManager. WebClassA then instantiates another class ClassB, which is just a normal class, not a webclass. I need ClassB to have access to ASP's ScriptingContext so I can use the Server and Response objects.

So in ClassB I make a call to ..

Set oServer = GetObjectContext.Item("Server")

... to grab a handle to the server. This works fine when the DLL is compiled, but it's no use when I'm just running it through the VB IDE. I want to set a "DEBUG" compiler conditional so that I can just set this flag when debugging to make a different call to ...

Public Sub OnStartPage(PassedScriptingContext as ScriptingContext)
Set oServer = PassedScriptingContext .Server
..
End Sub

... in the "OnStartPage" of the class.

The problem here is that OnStartPage is ONLY called when the class is instantiated from ASP. My class is instantiated from a WebClass, not an ASP page. Does anyone know of a way to grab a hold of the ASP ScriptingContext in debug mode other than GetObject() and OnStartPage? Or better yet, does anyone know of a way to force the compiler to call OnStartPage when a class is instantiated, regardless of where from?

View Replies View Related

ScriptingContext :: Function Of Interface Marked As Restricted

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.

View Replies View Related

Ppt COM Component To Use In Page Asp

Anyone know COM Component for full control file ppt?

View Replies View Related

Page Counter Component, ASP 3.0

I am trying to monitor the number of visits on various Excel and HTML
reports on our website. I would like to create a web page that has the
various hit statistics for various URLs.

I thought I could use the Page Counter Component to do this using
MyPageCounter.Hits(url);

but I cannot get it to work with any URL. I can get it to work with
the page the code is located in if I do not specify a URL, but I
cannot get it to work to keep track of the visits to other URLs, in
this case Excel and HTML reports my business group maintains. Code:

View Replies View Related

ASP 3.0, Need Help With Page Counter Component

I am trying to monitor the number of visits on various Excel and HTML reports on our website. I would like to create a web page that has the various hit statistics for various URLs.

I thought I could use the Page Counter Component to do this using
MyPageCounter.Hits(url);

but I cannot get it to work with any URL. I can get it to work with the page the code is located in if I do not specify a URL, but I cannot get it to work to keep track of the visits to other URLs, in this case Excel and HTML reports my business group maintains. Code:

View Replies View Related

Write To Event Log From COM Component In An ASP 3 Page On W2K3

I have some ASP 3 pages that instantiate a COM component. That
component writes messages to the one of the Windows event logs.

Things work as I expect them to on XP Pro but not on 2003 Server. I
figured it was a security thing, so I surfed around and found that
permissions were tightened in the server's first service pack. The fix
I found[1] said to append an ACE[2] to the event log's CustomSD
registry value found at

HKLMSYSTEMCurrentControlSetServicesEventLog{L OG_NAME}CustomSD

I tried three different ones with a reboot after appending each one:

1. (A;;0x3;;;AU)
2. (A;;0x3;;;NS)
3. (A;;0x0002;;;S-1-5-21-237510213-3056582554-1478882900-1003)

The last uses the full SID of the IUSR account on the Windows 2003 I'm
working on. I obtained that ID using this vbscript: Code:

View Replies View Related

Problem On Calling C# Component Method From Asp Page

I created C# COM+ component. It has two overloaded methods - the method names are same and their signatures are different, one takes two parameters and another takes four. I coded this way: the method with 4 parameters is coded first and then the one with 2 parameters.

I created very simple ASP page to call these two methods. Calling the method with 4 params has no problem. However, calling the method with 2 params I get the error saying:

Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'SetReferenceValues'
/suitevoyager/testLmx.asp, line 16

How can I solve this problem?

View Replies View Related

Out Of Memory Error Using A WSC Component In ASP Page On IIS 5 On W2k Citrix Server

Can anybody shed any light on this issue ??? Or even ways of temporaily
getting around it ???

FISH is an ASP application which uses a WSC object called "finapps.fishapp"
to handle the requests to the database. The WSC is created in the GLOBAL.ASA
as a Session object using the following line:

<OBJECT RUNAT=Server SCOPE=Session ID=fish
ClassID="{32f74dc1-40f8-4db3-98a7-000200040013}"> </OBJECT>

The finapps.fishapp object creates an "ADODB.Connection" object that is held
open while the session is running, and the Session_OnEnd event should call a
method of that object that closes the connections

The website falls over only when there has been a period of inactivity
greater than the length of the session timeout, and also after there has
been a significant amount of traffic prior to this!

The problem we have only occurs for one of our clients, but occurs seemingly
randomly on all 4 of their servers. The returned results of the error are as
follows:
-----------------------------------------------
Active Server Pages error '8002802b'

Create object failed

An error occurred while creating object 'fish'.
Microsoft VBScript runtime error '800a0007'

Out of memory: 'fish'
//global.asa, line 36
------------------------------------------------

View Replies View Related

Is There Any POP3 And NNTP Component I Can Use As A ASP Component?

What I want to do is to show always the latest post on our company NNTP
and the newest email in my inbox as an activex background on my desktop.

View Replies View Related

VB Component

I want to call ASP object from VB component. When my component is ActiveX
dll I can get the request object and read the form controls without any
issue. But when my component is ActiveX exe the same code doestnt work
Does Activex EXE support accessing of ASP object model.

View Replies View Related

Fax Component?

I was wondering if you guys know if there is a good component for sending
fax? the server has a fax-modem and i would like it to "call" an other fax
and send data. is that possible?

View Replies View Related

Using A COM Component From ASP

I don't know to much about asp in general, I'm an ASP.net developer, but my
boss wants me to find out the following:

Is it possible to use a COM component from ASP. We have a COM component that
allows us to interact with our bank for e-commerce style functionality. Our
current site uses ASP and we know need to integrate this COM component in
order to let us to some fancier stuff, such as on the fly fraud checking for
credit cards.

Can someone advise me if ASP can use COM components and what is involved?
Does anyone know of any good resources such as a tutorial?

View Replies View Related

ASP FTP Component

Anyone know a Good ASP FTP Component?I searched and found many but most do not have online demos to see how they work.Anyone know a good one?

View Replies View Related

COM Component With ASP

Can i use COM component with ASP? Which is normally fastest?

a)Logic written in VB COM
b)Logic written in ASP
c)Logic written in C++ COM

Which is normally faster to access some data in a database?

a)Query
b)Stored procedure
c)View

View Replies View Related

Component Will Not Run

I build a (vb) component for use within in an ASP. When I put the component in Component Services on the server it will not work if there is no one logged in to the machine. How do I remedy this?

View Replies View Related

ASP Component DLL's

I have downloaded thia DLL that you register then can use the asp object coded into it. can someone give me more information on these component DLL's ?

View Replies View Related

Which One Is Better (component For Tearing)

Do you think which one is better ?WinHttpAspTearXMLHTTP
or another ?

View Replies View Related

ASPUpload 3.0 Component.

I'm Using ASPUpload Component 3.0 demo on my personal system.

Can I access individual items using a string variable like;

strFieldName = "FILE1"
objUpload.Files(strFieldName).FileName

it works fine if i give a string value to files collection;

objUpload.Files("FILE1").FileName

View Replies View Related

Best ASP Upload Component

We have been having problem with our file upload component. It seems that at times the file upload process hangs, and the users get a timeout error. Although the users upload 1 or 2 image files at a time.

I have altered the upload size limit property in the IIS 6 metabase properties, so I don't think that is the case. Because most of the time it works okay, but at other times it hangs....

View Replies View Related

OWC Component Cannot Be Create Using ASP

I have created an asp page that pulls data from SQL server and displays
on webpage in the form of Table and Chart.

I use OWC to generate Chart. It work find on my computer with Ms office
2000 installed, but when I upload my the page to my webserver, it
doesn't work with the following error message:

006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional
information specific to this message please visit the Microsoft Online
Support site located at: http://www.microsoft.com/contentredirect.asp.

Does anyone know how to solve this problem?

P.S. On the production server, Office Web Component had already been
installed. WSCript.CreateObject("OWC.Chart") works fine in my colleage's
vbscript file.

View Replies View Related

Asp Component Error

I am trying to get a component working that I built in VisualStudio.NET using VB.NET, but I'm still having some difficulty.

I created the .dll, then created the COM callable wrapper from the command prompt using:

Regasm mycomponent_name.dll /tlb:mycomponent_name.tlb

This produced the .tlb file

I placed the .dll file and .tlb file into the bin folder for the website directory.

Then I registerd the .dll file:

regsvr32 pathmycomponent_name.dll

It showed that the .dll file registered okay, but I'm still getting an invalid ProgID error indicating that the component doesn't exist.

View Replies View Related

Asp Component Error

I am having a problem with a com object on WinXP Pro. It is properly registered, but gives me the following error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/code/cgi-sec/upload.asp, line 3
Invalid class string

I do not have windows firewall active and it does the same thing with firewall/virus/spyware software disabled. It runs fine on my Win2K Pro desktop.

View Replies View Related

Upload Component

I am using a free upload component for uploading a file to a database . It is accepting only .txt files. I wanted to upload word documents. Also How can I upload a .doc file to Access database.
I don't want to buy upload component.

View Replies View Related

ActiveX DLL Component

I created a ActiveX DLL component to create a Excel file under my home directory through VB6.0. Then I registered it through "regsvr32" command and a messagebox came out to say that the register was successful. But when I tried to run it in my ASP page under IIS ver5.01 and win XP Pro, it gave me this error:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/tg.asp, line 2

Here is my full code:
<%
set myExcel=server.createobject("test.test1")
myExcel.CreateExcel
set myExcel=nothing
%>

View Replies View Related

Debug Component

I built an MTA which is used from an ASA and ASP pages. The MTA was
developed in VC++ 6.0.How would I go about debugging into the C++ code?

View Replies View Related

Unzipping Component For .ASP

I am looking for an unzipping component. I have a series of files that are
available zipped at a considerable decrease in size. And before ASPINET
fails on a script timeout, I'd rather download the zip file and unzip it
when it arrives.

View Replies View Related

ASP HTTP Component

Is there any good and reliable Upload Component for ASP (or ASP.NET)? I
need one which provides an upload status bar.As well, it must be able to handle more than 4 gigabytes of data transfer.Internet connections can be unreliable at times. This component needs to be able to resume broken uploads.

View Replies View Related

File Component

Do you know where have free/buy a upload file component?
I need allow user to select the folder instead of select file one by one

View Replies View Related

Upload Component

where i can find free upload component so that i can make a site that can let people upload file thru http.

View Replies View Related

Asp Calendar Component

I am writing an ASP site for a small residential center, and need to be able
to make bookings. Can anyone recommend an ASP component that will provide a
good calendar interface so that a user can see which dates are available and

View Replies View Related

IIS Loggin Component

I will need to implement a site wide logging component for
an Asset Tracking and Management System and I am wondering
if the MSWC.IISLog component with IIS is up to the job and
is customisable for custom use or should i invest time in
creating my own.Logging needs include exceptions, failures, use tracking,
logging-in information, session stats etc on approx 150
pages for approx 25 users.Running on IIS 5.0 on Windows 2000 Server

View Replies View Related

Chat Component

Please recommend an chat component ( customer support purpose)
for .net applications with oracle back end.
Loof forward for any information in this regard.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved