Call To Guid Property Of Scriptlet.TypeLib Times Out
I use following code in an ASP page to generate a GUID:
<%
dim obj
Set obj = Server.CreateObject("Scriptlet.TypeLib")
Response.Write(obj.guid)
Set obj = nothing
%>
It worked fine on my WIN2000 computer running IIS. I recently bought a
new computer with XP Pro and this page times out. I now it is the call
to obj.guid. I have seen the same behaviour on another XP machine as
well.
The funny thing is if I paste this code into VB and display the guid
in a message box, it runs without a problem.
I have an ASP calling a scriptlet. There is a method "Exec" which is using Server.Execute to run any ASP file/command. There rest of the methods are working fine.Somehow, wscAsp.Exec("myLocalProc"), didn't work. Please help.
My ASP:
<% Set wscASP = CreateObject("ASPScriptlet") wscASP.sName = "sName (R/W)= OK" %> <P>The current date is <%=wscASP.GetDate()%></P>
<P>The value of the Var1 is <%= wscASP.GetVar()%></P> <% Call wscAsp.Exec("myLocalProc")
Sub myLocalProc response.write "Scriptlet is executing myLocalProc!" End Sub
%> The Scriptlet, wscAsp.Exec method, is purely just call Server.Execute("any string passed in")
I have one IIS 6 machine that seems to ignore global.asa completely. I can't get *anything* to fire -- not Session_OnStart(), not typelib declarations. This is true in the web root as well as in any application folder.
In particular, this is preventing me from loading the ADO 2.8 type library,but I cannot even force an error by using a malformed GUID.This is my only machine that appears to have this problem.
I've created a web application with Visual Interdev and I've added Microsoft XML, version 4 in project's references. A META tag has been successfully added in global.asa:
how would i figure out what the GUID for .pdf Titles would be? right now I'm using an asp script to return file information. I can get the file title if the file is a .doc type....but not if it's a .pdf type, even though a title is present in the properties. I can however get the .pdf file name as it's stored in the directory...just not the Title.
If someone registering for the site, enters their GUID. Now a check is made on that GUID across a DB Table to see if the GUID is present. There are approx 57,000 GUIDS in said table. It is msSQL DB on windows server 2000 server, how long would that check take?
I know there are several variables that come into play here, but I am looking for a ball park figure on how long it would and should take.
I have been creating new GUID's through this block of code
set typ = server.createobject("Scriptlet.TypeLib") guid = TRIM(MID(cstr(typ.GUID),2,36)) Response.Cookies("guid") = guid Response.Cookies("guid").path = "/" Response.Cookies("guid").expires = now() + 1 set typ = nothing
Lateley, some visitors to the website are actually receiving the same guid.How is this possible? Is there a process that may be used to reset the guid delevery sysem?
first, say I have a payment processing scheme, and after a value is returned letting the program know that a sucessful payment is made, that somehow I dynamically create a GUID, (or something of the like). I want to have it somehow embedded in the program as well as well as sent to the buyer so that he can enter in that GUID and it unlocks the program.
So somehow I want to generate a GUID, either inside the program or outside of it which either way is incorperated into the program, and so that I have a copy of it. I want this all to be able to be done dynamically and I assume it would have to be done in ASP.NET as it doesen't seem feasable to run a .exe program on the web.
Any leads? Or perhaps there is some sort of "shell" that I can embed my program in that will do this for me. Any ideas?
set typ = server.createobject("Scriptlet.TypeLib")
to create a random string of 36 characters. However, is there a way to create a random string of digits in the length I request? Perhaps a string of 20 digits with a few asterisks thrown in for ease of typing?
well, the following script that i wrote using the aspSmartMail component, keeps timing out on me. i tried setting the timeout higher through both IIS and in the script itself, but all that does that it take longer for it to timeout.
i have written a few email programms using this component, so i don't think it is the component. i have just never tried sending emails with it automatically that each have certain unique fields in it. well anyways, here is the code:
I've written a page that uses a emailer component and it keeps timing out. It takes 2-3 seconds to send each mail, gets part way through the list of recipients and dies.I have tried changing the Script Timeout setting in IIS to some huge number(2147483647?).I hve tried setting Server.ScriptTimeout = 0 and Server.ScriptTimeout =2147483647. None of these make any difference. What can I do now?
I have a class that access an MS SQL database.I have another class also accesses an MS SQL database and this second class uses objects from the first class.I have a third class using the DB and objects of the second class.
Each of these classes contain all the code needed to access the database and this means much duplicated code. What I'd like to know is if there is a way to avoid the duplicated code?
I know I could write the code once,then do an #include to include the code into the class,but that still means multiple occurances of the code.
There is 600 lines of code. This page gets available rooms from RoomInfo and compares the rooms againest rooms in use from EventRoom by RoomID. RoomInfo RoomID field is text. It can contain multiple rooms (i.e. 5,6,7) based on room setup type. I had to do it this way so that users could book multiple rooms based on configuration and how many people.
Line 412 is where the time out occurs. Also if I use split on rs2(RoomID) {line 415} then I can't start at 0, I have to start on 1. Which means 1 room is not being checked. I tried to annotate the code as best as possible. The page is zipped so you can download and view it. It will bomb if you try to run it on the server it is being hosted on.
I've done this before but cannot remember how. I have a field (FIELDNAME) in a sql2k environment. I just need to know how many times an "_" appears in that field. I cannot figure it out right now.
If Now() >= tstart1 OR Now() <= tend1 Then 'if tcurrent > tstart1 or tcurrent < tend1 then strLink1 = "/images/2.jpg" else strLink1 = "/images/1.jpg" end if
When I look at the page, the image never changes. It just always displays 2.jpg and not 1.jpg. I need help ASAP!
I am trying to simply print to screen all the data in a colum from a .mdb file. Later I will do more advanced things but for now this would be good.
What I have WORKS, but takes a LONG time to retrieve the first record, if I tell it to retrieve more than one row it will time out. I was hoping to connect to the file directly and not have to create an ODBC connection. The code seems simple enough and the server is no dud (p4 2.4ghz) so do I need to setup a DSN and connect to it that way? Code:
im making the web site for a small internet radio station and would like to add the feature to show which DJs are currently on air. I would like to do this by swaping an image at certain times or even dates.
For instance
dim image
if time = 05:15:00 then image = bob else if time = 23:30:00 then image = dave end if
Something along those lines but I dont know the exact code required to do this.
Would be really greatful for any help, I think it would be a nice feature for our listeners.
I'm currently developing on IIS 5, ASP 3 and MySQL 4.1 using the latest ODBC driver from MySQL.
Any time field I have return from the database is returned as the current date. I've tried every table which has a date, created tables which soley keep records on the date.
I've submitted the date from MySQL Query browser using CURRENT_TIME and from an ASP page. Both submit fine.
I've returned the record using a Recordset to move through each and filled an array using GetRows().
My interest is to guarantee that my users never need to logon again. Can’t put a session.Timeout to high because of memory on server. So how can I get the session refreshed before session times out?
I'm sure you've seen them all over the place. Before downloading a file, it tells you the size of the file and the approximate download timedepending on your connection.
I have found a lot of javascript calculators out there where you input the size of the file and it calculates the time you need. These provide the end result I need, but 1) I hate javascript with a passion and 2) I want the download times to be displayed automatically when you select a file to download.
As a last resort, I can spend some time re-writing it for ASP, pulling the file info directly from the file in question (which would be a variable) rather than requiring an input of the size; but I'm wondering if anyone has an ASP version already done. Save me some time and hassle that way.
I am creating a news page for a fun website just to learn, it has a simple html form that lets me post new news items to a MSSQL database.
The thing I am trying to do now is have the loop only run about 5 times, so that it displays only the last 5 news items from the database, I will then create an archive page which will display them all.
I have a book that I read and I found the for..next statement and I t would work nicely from what I am reading,
I ported a script I made over to SQL Server 2k from Access and went from queries that took a tenth of a second to up to 30 seconds! Typically they are between 5-10 seconds.
All I can think of is I screwed something up in the connection procedure, and here that is:
I'm almost finished creating a simple events calendar that will allow users to book rooms and see at a glance, which rooms are booked, and at what times. Unfortunately I've hit a brick wall with the final stages of development.
I've created a screen shot of what I would like to display on the screen (see below). I can't for the life of me figure out how I'm going draw each cell and populate it with the database information (should it require populating).
there is a property in asp.net called autopostback, what i want is to set this property on plain asp to give a combo the ability to postback the selected option.
Is this possible???? i need to set something like that to a dinamic combo, any ideas????
If it can be done in java or vbscript just please tell me, cause i don�t have a clue if is possible or not.