asp-classic

Classic ASP error line 0 column -1

走远了吗. 提交于 2019-12-06 12:02:38
We run a busy website built on classic ASP (for all sorts of legacy reasons). During busy periods we're seeing an unexplained error and can't get to the bottom of it. It manifests by IIS 7 triggering our custom 500 error page. On this page we gather as much detail about the error as we can, using both the ASPError object and the err object. What we emerge with is: From the ASPError object: ASPCode: 0 Category: Source: Page: Description: Line: 0 Column: -1 In the err object, err.Number, err.Source and err.Description are all empty. I don't know whether to look further for IIS configuration

Setting HttpOnly=true on ASP 1.1 Session ID cookie

我们两清 提交于 2019-12-06 11:39:18
I have a client who runs his Classic ASP site under IIS 6.0. The web site is targeted for ASP.NET 2.0 in the ASP.NET configuration tab. A recent PCI Scan of his site is failing him with an HttpOnly vulnerability on his ASPSESSIONID cookie. I have installed an ISAPI .dll that successfully sets HttpOnly on all manually created cookies, but ASPSESSIONID cookie is not effected by this for some reason. I have set web.config with the following configuration: <system.web> <httpCookies httpOnlyCookies="true" /> </system.web> This configuration seems to have no effect whatsoever, on anything. I suspect

How to pass parameter to Url with Python urlopen

浪尽此生 提交于 2019-12-06 11:21:45
I'm currently new to python programming. My problem is that my python program doesn't seem to pass/encode the parameter properly to the ASP file that I've created. This is my sample code: import urllib.request url = 'http://www.sample.com/myASP.asp' full_url = url + "?data='" + str(sentData).replace("'", '"').replace(" ", "%20").replace('"', "%22") + "'" print (full_url) response = urllib.request.urlopen(full_url) print(response) the output would give me something like: http://www.sample.com/myASP.asp?data='{%22mykey%22:%20[{%22idno%22:%20%22id123%22,%20%22name%22:%20%22ej%22}]}' The asp file

Encrypting connection string in classic asp

霸气de小男生 提交于 2019-12-06 10:27:43
问题 Is it possible to store encrypted connection string so it can be used from server-side vbscript? Was there an equivalent of web.config in 'the good old days'? 回答1: As I dust off the ol' memory banks... I recall that in classic ASP systems, we would put the connection string (and most other config settings) in the Windows registry, in a custom registry key for the web app. We'd use a COM DLL to read the settings. You can encrypt the connection string that is stored in the registry, but you

Unable to run asp file. Instead being prompted to download said asp file

强颜欢笑 提交于 2019-12-06 10:19:05
问题 Currently, I have my html code have a form that inputs a first and last name. I have set the input type as submit and set the action attribute as the asp file. However, when I click the submit button, my brower shows me a dialog box and asks if I wanted to download the said asp file. Here is the html code: <!DOCTYPE html> <html> <body> <form action="test1.asp" method="get"> First Name: <input type="text" name="firstname" /><br /> Last Name: <input type="text" name="lastname" /><br /> <input

Error creating Word object in classic ASP on IIS7

巧了我就是萌 提交于 2019-12-06 10:01:27
问题 In the middle of converting our Intranet from a Windows 2000/IIS 4 box to a Windows 2008/IIS 7 box. Just doing a straight conversion for now, with an eye on redeveloping some apps in C#.NET in the future. New server has Word 2010 installed, old has Word 2003. Running into an issue with a classic ASP app. Attempting to create and modify a Word document based on a template document. Receiving following error: Microsoft VBScript runtime error '800a01a8' Object required: 'Documents.Open(...)' The

Caching recordsets in ASP Classic?

二次信任 提交于 2019-12-06 09:53:29
问题 How can you best cache disconnected ADODB recordsets application wide in a classic asp scenario? It does not seem like it is possible to store disconnected recordsets in application state, or am I missing something? I found an example of how you can persist recordsets to xml and load them again, but I was hoping to stay in memory - but it might be the best option. 回答1: Technically you can assign a disconnected ADODB recordset into the Application object. However I wouldn't recommend it. In

How to deploy classic asp website?

放肆的年华 提交于 2019-12-06 09:47:48
问题 I would like to know how to deploy or what are the steps that are involved to deploy a classic asp website in IIS 6/7 Can we create an installer for the existing project? 回答1: Copy the files to the virtual folder. If you have any depending dll's or exe's make sure to install them too. As you said you may have to create an installer that will do this works to you. There is a lot of installers out there, like Inno Setup and Windows Installer. 回答2: You should consider using Web Deploy http://www

ASP Classic, Download big files does not work on certain servers

浪尽此生 提交于 2019-12-06 09:40:09
问题 I have the following script, which works good, locally (Windows 10 IIS, windows 2003 Server), but not on our hosting server (Windows 2003 Server). Anything over 4mb will download really slow and then timeout before it gets to the end of the file. However, locally, it downloads fast and full. Doing a Direct Download (link to the file itself) downloads a 26.5mb file in 5 seconds from our hosting provider server. So, there is not an issue with a download limit. There is an issue it seems, with

json Serialization in asp

試著忘記壹切 提交于 2019-12-06 09:34:43
I have currently a dataset in asp which contains my members details. I am trying to serlize it so that it is similar to json_encode() in php which produces [{"0":"1","id":"1","1":"Eric","name":"Eric","2":"1","sex":"1","3":"1992","birthyear":"1992"},{"0":"2","id":"2","1":"Tom","name":"Tom","2":"1","sex":"1","3":"1992","birthyear":"1992"}] Any help here? The json.org website links to two libraries, for ASP : JSON for ASP. JSON ASP utility class. 来源: https://stackoverflow.com/questions/5765881/json-serialization-in-asp