I have an application I am working on that uses "compiled" asp pages. Once the asp pages are done, they are moved into a VB6 dll to be Response.Written from there. This work great, and results in keeping our code safe at client sites. Currently this works great here and at most client sites. I have one client who is having intermittent problems with this setup Code:
The problem is that I cannot create an object at the Application level using GLOBAL.ASA. However, the aftfam object works perfectly well when created on an ASP page using Server.createobject. It outputs "true556" which is expected. The problems does not seem to be syntax since the reference to the AUtils object seems to work just fine. Is there some magic difference in my VB code that differs depending on how I create the object?
I have the following code (part of a larger asp page) to create the user input form for creating user accounts in AD.
What would be nice is to have the radio control (in red) to be created as the result of interrogating AD to retrieve a list of containers (we have a container per office location) so that only relevant controls are available, and if a new office is opened or they shut one down, the form can stay the same. Is there a way to do this? Code:
I have created an update image field which almost works perfectly. When you select an image and click on the update button it works just fine.
If you dont select and image and click on the update button you get the following error.
Response object error 'ASP 0101 : 80070057' Unexpected error /html/advertiser-premier-main.asp, line 0 The function returned |.
I know it seems pointless to worry about this as you would not expect people to press the update buttin unless they insert an immage, but im sure people will try.
i had done your web page with feedback form. In that i had used ASP to email the users feedback. but when the user sends feedback. the asp email scripts return error as
I'm reading 'ASP in a nutshell' and i'm trying out the error trapping features. The book says that from ASP 3.0 on there is a server object method called GetLastError. It also advocates this beiing the best way of analyzing errors.I do not have this method on my IIS installation. (All the other ASP code I run according to the book is ok). I have Windows NT 4.00.1381 and IIS 4.0 (Is my IIS version to old?) If this is the case what is the best approach in trapping errors?
I'm trying to write a Generic Form to Database Parser, basically this script should take the values of Form fields and write them into a Database Table with correspondingly named fields.
EG: The value contained in <input type="text" name="Email" > would be written to the database field "Email"
I ran into difficulty when I tried to differntiate between Numeric and Non-Numeric Data as non-numeric data values must appear in quotes in a SQL Statment whereas Numeric Data should not be placed in Quotes. So I'm testing my form values to see if they are numeric, so I can build my SQL Statement Accordingly. Code:
At first I make a independend virtual directory wich I named app and I check Directory Browsing in the Virtual Directory Properties. Then I create with notepad global.asa and index.asp Code:
I am trying to upload files to a remote server with ASP. I tried many scripts including the ShadowUploader which at first seemed to work for me (instead of the usual error, it told me that the image I was trying to download was too big) but at the end gave me the usual "Server.CreateObject Failed" error. The problem is always the line
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
I developed a site in ASP on my IIS server in a test location which we accessed via HTTP. After finishing the application, I created a new site in IIS and moved my scripts over to the new site which is access via HTTPS. I am now getting the following error and the code has not been changed.
I am working in html/asp within VisInterDev 6.0. Everything was working fine until I moved a text box from one page to another. I took it from within a form on one page to a form on another (and made the necessary changes in the two pages).
However I am using syntactically indentical code on other pages that work fine so I know the problem is not with that line.
It appears that it is not able to find the "distance" text box, but I have been over and over the html and can't find an issue. If I take that line out (keeping the <body> of course) it doesn't generate an error but my submit button doesn't work.
I am migrating my application to another identical h/W and os wink200 service pack-4 ,while try to view one page i am getting above error Code:
<% Dim objTools Set objTools = Server.CreateObject("ASPFormat.Format") 'error line Dim strResult strResult = objTools.FormatString(now(), "dd-MMM-YYYY")
Set objTools = Nothing %>
if i remember i have not registered and dll or so during installation of current web server. The same page is running fine on current server.
I'm trying to display a page in another window but I need to run a query against a database with one value to get the other value that will tell my code where to redirect the page. Every time I hit the "Select" button I get an error telling me that "Object REquired: 'Server' but I have code similiar to what is listed below working on my select boxes. Why would an input box be any different? Code:
<script Language="VBScript"> sub NewPage() Set objRec = Server.CreateObject ("ADODB.Recordset") strSQL= "select id from oppprimary2 where stcc='1111111'" objRec.Open strSQL, strconnect, adOpenDynamic, adLockReadOnly, adCmdText Window.Open "OppTrackEdit.asp?id=1522", Edit objRec.Close Set objRec = nothing
I have a CFMX page calling an ASP page accessing a SQL Server2000. After updating & saving data in the ASP page, I get a message that the data is saved successfully, which is true after checking the tables.
however, a window pops up with an [objec error] message. I'd like to find more about this message and what is causing this error to trigger.
I am getting the following error when using CDONTS to send an email.
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/submitauth.asp, line 42
800401f3
We have recently moved the application from a windows 2000 server to a windows 2003 server with DOT net framework installed. Everything else works but I am not able to send emails. Does anyone knows why this happens?
dim xmlObj Set xmlObj = Server.CreateObject("MSXML2.DomDocument") xmlObj.async = false call xmlObj.load( Server.MapPath(FILES_DATA_PATH & "NewsData.xml") ) call xmlObj.selectSingleNode("news").setAttribute("today", Zeropad( DateDiff( "d", 0, Now() ), 7 ) ) set NewsDataObject = xmlObj
and I'm getting this error: Microsoft VBScript runtime error '800a01a8' Object required: 'xmlObj.selectSingleNode(...)' /news/common/NewsUtils.asp, line 13
the error refers to the line: call xmlObj.selectSingleNode("news").setAttribute("today", Zeropad( DateDiff( "d", 0, Now() ), 7 ) )
and I don't seem to get why he things that I got no object there.
I am trying to use the following code to refer to a form and control on my form. I am supposed to be using VBSCRIPT for this code. I always get an "object required: 'document' " error:
<% Dim Myform Set Myform = document.forms.thisform Myform.textbox1.value = "fish" %>
None of this code will work. Always get an error. Using Visual Interdev, plain ole ASP, and vbscript, and Win XP Pro with IIS 5.1
I got an error from my asp page. The interesting thing is it only occurs when I choose to give me report for August, if I select any other month, everything looks fine. I have no clue at all what is all about. What does line 0 mean?
Set fso = CreateObject("Scripting.FileSystemObject") f = fso.GetFolder(mypath & "www/qualcomm/bulletin/pdfs/") response.write(f) set fc = f.Files <-- line 113
I get the following error:
Microsoft VBScript runtime error '800a01a8' Object required: 'D:InetpubCustomers' /qualcomm/_admin/bulletins.asp, line 113
But in a different script I have the following:
Set fso = CreateObject("Scripting.FileSystemObject") PP = "D:/Inetpub/..yaddatadda../www/" 'Physical Path Set f = fso.GetFolder(PP) Set fc = f.Files
and it works fine.
I'm not sure what I'm doing wrong. Is there something I'm missing here? Why does the almost exact same code work in one script but not the other?
I am trying to use the following ASP code to examine the file names in a folder:
Dim fso, f, fl, s, fs Set fso = CreateObject("Scripting.FileSystemObject") Set f = fso.GetFolder("C:InetpubwwwrootMySitesubfolder") Set fs = f.Files For Each fl in fs s = fl.Name 'Object Required error occurs here! Response.Write(s) Next Set fso = Nothing
The asp page returns the 'Object Required' error on the line, "s = fl.Name". Why?
I am getting the error 3704 "Operation is not allowed when the object is closed.Operation is not allowed when the object is closed." The problem is when no record is returned from the stored procedure. If there is a record, I do not get this error. Here is the portion of the code giving me problems.
rs.open strSql, strConnect if rs.eof = true or rs.bof = true then bEof = true end if
The line in red is what gives me the error. If I take out that section, I do not receive an error. Any suggestions? I can easily get around this by putting in an on error resume next, but I'm trying to get this to work without errors first.
I have a three pages. The first simply shows a load of records.
When you click on a particular record newfull.asp displays the fields for the record [data taken from the database].
Most of the fields in newfull.asp show the data but as read only. The only exceptions are Installer, AutoExchangeClientID, and VSReferenceNumber.
The only relative complication is that the Installer is taken from a combo box. This means that if an Installer is already entered into the database they will show. However, this has also to be UPDATED if necessary. Code: