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
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?
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.
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:
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:
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
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
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:
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 ------------------------------------------------
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.
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?
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?
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?
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 ?
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....
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.
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.
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 %>
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.
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.
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
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
Please recommend an chat component ( customer support purpose) for .net applications with oracle back end. Loof forward for any information in this regard.