11,423 questions
-4
votes
0
answers
218
views
Password don't match SAH512 encryption if password contains +, #, € or &
I use SHA512 to encrypt salt and password and save it in a MYSQL database.
The input salt+pwd gets hashed and saved successfully no matter the characters.
But if a password contains one or more of ...
7
votes
1
answer
2k
views
Windows 11 update Classic ASP Incompatibility – VBScript/JScript Mix Causes IActiveScript::SetScriptState Exception
After updating to Windows 11 on June 2, 2025, I'm experiencing major issues with legacy Classic ASP applications on IIS that make use of both VBScript and JScript on the server side.
json library
...
1
vote
1
answer
97
views
Adding a PDF file to a zip file containing images with JSZIP and jQuery
I create a zip file containing images (with their urls extracted server-side via classic asp code) and it works fine.
I was inspired by this excellent example [https://jsfiddle.net/jaitsujin/zrdgsjht/]...
1
vote
0
answers
67
views
Httponly cookies expire soon in classic asp
I tried to secure an old website in classic asp which was using this code to generate a cookie but does not care about httponly and secure , however the expiration date was working fine and cookies ...
0
votes
0
answers
90
views
Calling a MySQL parameterised stored procedure using VBS and ADODB returns unexpected random values in the OUT parameters [duplicate]
MySQL (v5.7.44). Classic ASP using VBS, ADODB.
Not a newbie, and hoping this is not because of developing bad habits over the years, but after 3 weeks of trying this and that, I'm hoping someone can ...
1
vote
1
answer
141
views
How to use browscap.dll on Windows Server running IIS and Classic ASP?
After trying fingerprinting that requires that the visitor use a web browser with JavaScript enabled, I thought that I would try using browscap... browscap.ini and browscap.dll are available on all ...
1
vote
0
answers
62
views
Classic ASP & Google Analytic : How do I set up the tracking properties for my website
I'm maintaining a classic asp website and I'm trying to implement Google Analytic on one of the pages. And I have 2 types of javascript codes, which I used inside my classic asp.
With [Code 1], ...
0
votes
1
answer
140
views
How do I get aspPdf to write special characters like æ, ø and å?
I am using aspPdf to convert a html page into a pdf file. And it is working fine, except from the special characters æ, ø and å.
I have this:
<!--#include file="include/connectOpen.asp"--&...
1
vote
0
answers
272
views
Classic ASP JScript Broken after Windows 11 24H2 [duplicate]
I've just upgraded windows 11 to 24H2. I write JScript in Classic ASP running on IIS.
After upgrading none of my code works anymore. I get
Catastrophic Error
and then
Script Engine Exception" &...
2
votes
0
answers
24
views
Classic ASP: Discern VBScript arrays in JScript code [duplicate]
I have a function in JScript that accepts a string or an array as parameter:
<script language="JScript" runat="server">
function handleThis(what) {
if (typeof what === '...
0
votes
0
answers
48
views
Classic ASP User Login in Windows 2003 server [duplicate]
I have a Classic ASP application running from Windows 2003 server which I am moving to Windows 2022 server. I have configured the application and the login page is loading. But post submitting it is ...
0
votes
3
answers
158
views
Request form checking length and two words
I have this code on my register page for a displayed name:
If (Len(Request.Form("name")) < 3) Or (Len(Request.Form("name")) > 50) Then ...
0
votes
0
answers
35
views
I need to add a modal on one classic ASP page, but inly if a cookie has not been set. i'd like to avoid javascript [duplicate]
I have a classic ASP page that needs a modal to pop up asking people to sign up to our mailing list. If they sign up, a cookie is set. This page checks for that cookie and doesn't harass the user if ...
0
votes
1
answer
489
views
How to setup Visual Studios 2022 to display vbscript code blocks the same as Visual Studios 2019
I am trying to replicate my editor view in VS 2022 to be how it looks in VS 2019.
Here is how it looks in VS 2022
versus the coloring found in VS 2019
I have spent quite a bit of time within the ...
0
votes
2
answers
76
views
Classic ASP and json2.js: how to access keys with special characters?
In this answer: https://stackoverflow.com/a/1021848/5280471 it is suggested to use a "language-wrapping" technique to implement JSON parsing by importing a json2.js JavaScript file like so:
&...
-1
votes
1
answer
155
views
asp classic - asp.net - Need a Large File Download Script that downloads in chunks that does not load the entire file into memory [duplicate]
I have run into an issue that I cannot find a solution for.
Specs:
ESXi 6.5
Windows 2016 Datacenter
ARR Web Farm
--Current Temp Setup (Both systems have almost identical settings.)
1 ARR Server (8GB ...
1
vote
2
answers
275
views
Classic ASP: Check if a IP is within an IP range / CIDR [duplicate]
Using Classic ASP, I want to check if a given IP is within an IP range in CIDR (e.g. 192.168.0.0/24).
There are already some questions covering scenarios where I could get IP ranges from their CIDR, ...
-1
votes
1
answer
100
views
How to Update the Contents of a Dropdown Based on the Selection of Another Dropdown [closed]
I am trying to update the contents of a particular dropdown box, based on the selection of another dropdown box. The contents of these boxes is coming from tables in an MSSQL database. Basically, I ...
1
vote
1
answer
233
views
MSXML2.ServerXMLHTTP.6.0 object .send not working in IIS classic ASP [duplicate]
I have this code and it works fine on my local machine. I moved it to our development server and when .Send is getting the error -2147483638 The data necessary to complete this operation is not yet ...
1
vote
1
answer
190
views
mdb database not working after upgrade from Win 7 to Win 10
I've today upgraded from Windows 7 to Windows 10.
I've installed IIS (10) and moved the various sites into the the default folder (wwwroot)
Typing 'http://localhost/warweb/' in the browser opens the ...
0
votes
0
answers
48
views
ADO recordset returns COUNT field incorrect or syntax error in ASP [duplicate]
I'm receiving the error below once my code reaches rs.Update and I'm not sure why.
It was working on a previous server but the error started after I migrated to a newer site & sql server.
...
-2
votes
1
answer
104
views
In classic Asp is it possible to change value to an unknown variable? [duplicate]
Don't know if title exactly fit what I need to know. I searched for an answer in Stackoverflow (and Internet too) without success (maybe I was not able to find it).
I have a web app written many years ...
0
votes
1
answer
64
views
Error of Access-Control-Allow-Origin for post request with data
I try to create a post ajax request with data using Axios when the server side is ASP classic and the client side is React using type script
this is my server side :
<% Response.AddHeader "...
0
votes
2
answers
97
views
ASP classic cant change data in Application by ajax request
I try to call a simple ajax request from client side to server side, but I have a problem with it
when I press the button I have no change in this page even when I got the alert("OK!"); and ...
0
votes
0
answers
78
views
How can I execute logic code on ASP Classic Server side by using Jquery ajax? [duplicate]
I try to create a simple page using ASP Classic without database and basic login
I have a table with a list of cars that I can book for the user and the user can unbook the car this website should be ...
0
votes
0
answers
44
views
Migrating an ASP application between services shows ODBC Driver error: data source name not found [duplicate]
I'm migrating an ASP application from Windows Server 2003 to Windows Server 2016, with an Oracle database located on another server.
I have already installed all the extensions that the application ...
0
votes
0
answers
74
views
Varchar(max) causing other other accesses of the record set to return null [duplicate]
With an SQL Server table set up as
A INT
B VARCHAR(MAX)
C INT
And accessessing this in ASP Classic
set RS = oConn.Execute("SELECT A,B,C FROM Table")
RS("A") returns A
RS("B&...
0
votes
0
answers
119
views
ASP Classic / JS multi select filter
I am trying to create a filter to display records assigned to multiple groups not just one as currently set up below. Maybe via a checkbox.
Any assistance would be appreciated.
ASP classic with JS ...
0
votes
0
answers
109
views
Missing VBScript.Encrypt on Windows Server 2019 [duplicate]
I'm in the process of trying to migrate a really old web application to a new Windows Server 2019 box. The old application is coded in ASP and uses
<%@ LANGUAGE = VBScript.Encrypt %>
As the ...
-2
votes
1
answer
445
views
How to identify a user's location [duplicate]
I have a Classic ASP application that several users log into from several different physical store locations. They are all hitting the same database and web server of course. But I would like to know ...
1
vote
1
answer
116
views
ASP Fix/Int functions not behaving as expected [duplicate]
While debugging I found this weird thing in a custom RoundMid() function :
test = 148.325 * 100 + 0.5
Response.Write test ' Returns 14833
Response.Write Fix(test) ' Returns 14832 ???????
...
0
votes
0
answers
60
views
ASP Classic 3rd Party DLL Registration [duplicate]
I have inherited a website that has a mix of ASP.Net and ASP Classic. I'm fine with the ASP.Net, but the ASP Classic, I haven't used in at least 20 years (probably longer!)
It took me forever to get ...
2
votes
2
answers
780
views
How To Capture Form Data using OnChange
I built up a page on my website as a place to perform testing of functions that I write (30 or 40 of them to date). I use a drop-down box to list the functions out by function name. When one of ...
1
vote
0
answers
90
views
Stream response in a file
I want to stream the response of the actual page in a file.
This is what I do for creating the file :
set fso=server.CreateObject("Scripting.FileSystemObject")
fic= session("...
-1
votes
2
answers
103
views
iis 8.5, how to set visitor permission only on current site?
the www_root folder, i set the full access permission with these user / user group:
administrators
system
iis AppPool\DefaultAppPool
the site in iis, basic settings, connect as -> 'iis AppPool\...
1
vote
2
answers
120
views
How do you replace the last comma with "and" in a comma-separated string?
I need to use VBScript to insert an "and" into a string before the last item in a comma-separated list.
strList = "512, 66, 1820, 1235, 7, 4918"
needs to become...
strReList = &...
-1
votes
1
answer
580
views
CRUD operation not work with ADODB and SQL server using MSOLEDBSQL19 Provider and "strict" option (TLS1.3)
In classic ASP pages, I am trying to connect SQL server 2k22 using the ADODB connection and MSOLEDBSQL19 driver(provider).
On the SQL Server Side, I enabled the Force encryption=Yes and client-side(...
-1
votes
1
answer
154
views
Using a specific User/Domain in a Msxml2.ServerXMLHTTP request in classic ASP [duplicate]
We have a client we need to communicate with and their API page only supports NTLM authentication.
Our site runs classic ASP (jScript) so forgive that the syntax is slightly different than the what ...
1
vote
1
answer
105
views
JavaScript won't execute when calling webpage via VBScript using XMLHttpRequest
I have a process where I have created a polling function that executes an XMLHttpRequest via VBScript.
The request gets an ASP Classic page which checks an MSSQL table for newly inserted records and ...
-1
votes
1
answer
165
views
Classic ASP: requesting variables from 'Content-Disposition: form-data' [duplicate]
I am integrating Paypal's Checkout API into a legacy Classic ASP site.
When sending via this front end js:
var postData = {paypal_order_check: 1, order_id: orderData.id};
fetch('...
0
votes
2
answers
617
views
ASP Classic / CORS - Reporting no header when header for CORS is set
Apologies in advance, I'm new to CORS so might be something I am missing.
I'm attempting within my current localhost to setup a CORS from one localhost port to another localhost port. I've confirmed ...
-3
votes
1
answer
148
views
Does a 500 internal server error (for .asp subfolder page) write logs by default and ways to troubleshoot [closed]
services including http and .asp (diagnostic) page within a .net application throws 500 internal server error intermittently, the application pool running the service(s) uses a gmsa as an ...
-1
votes
1
answer
101
views
Variable when writing XML - Classic ASP [duplicate]
I have the below code, how would i replace the '1' within the below with a variable ?
Set objorderline1 = objXML.createElement("OrderLine")
Set objorderline1att = objXML.createAttribute(&...
1
vote
1
answer
78
views
Read a text file from a passed variable
I have looked at all of the similar questions, and they, unless I missed something, do not answer my question; so here goes:
I want to open a text file on my webpage; but The title is a passed ...
-2
votes
1
answer
96
views
IIS Redirect Rule to redirect all subdomain traffic [duplicate]
I have this rewrite rule defined in the web.config file on my site:
<rule name="RedirectWwwToNonWww" enabled="true" stopProcessing="false">
<match url="(.*...
0
votes
1
answer
136
views
How to resolve 'recycle IIS application pool error in vbScript website'? [duplicate]
This application needs to be recycled at least 3 times a day, currently it's a very big problem. This is not a large-scale logical application, it is primarily used for uploading and downloading ...
-1
votes
1
answer
103
views
select statment asp classic with parameter [duplicate]
i am working with asp classic with sql server , i want to change my sql statment to prevent injection
my sql statment
this is my sql statment it is run ok
%><!--#include file="Config.asp&...
2
votes
1
answer
218
views
Classic asp application_OnEnd and session_OnEnd events not working
I need to still work with classic asp and I faced with an existing application an issue with Application_OnEnd and Session_OnEnd events - i.e. the are not working. OnStart-events work normally. I do ...
1
vote
1
answer
684
views
Server sent events (SSE) not working in Classic Asp on IIS [duplicate]
I wonder if anyone have faced the same issue: Server sent eventd (SSE) are not working in Classic Asp on IIS (version 10) as they used to. It seems that the issue has appeared with modern browsers ...
0
votes
0
answers
51
views
Error in Parameterized Query using Classic ASP [duplicate]
I am getting the following Error in this parameterized query using Classic ASP.
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one ...