asp-classic

SMTP configuration SendUsing configuration value is invalid with ASP-Classic

久未见 提交于 2019-12-18 04:51:18
问题 I'm trying to get an email sent using ASP classic, and am having trouble with SMTP configuration. The error: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. The Code(for the email itself): Set objMsg = Server.CreateObject("CDO.Message") objMsg.From = "name@name.com" objMsg.To = "themetatron@gmail.com" objMsg.Subject = "Procurement Ally Update" objMsg.TextBody = strBody The Code I tried to configure with (pt 1): sch = "http://schemas.microsoft.com/cdo

How exactly do you configure httpOnly Cookies in ASP Classic?

天涯浪子 提交于 2019-12-18 02:41:08
问题 I'm looking to implement httpOnly in my legacy ASP classic sites. Anyone knows how to do it? 回答1: Response.AddHeader "Set-Cookie", "mycookie=yo; HttpOnly" Other options like expires , path and secure can be also added in this way. I don't know of any magical way to change your whole cookies collection, but I could be wrong about that. 回答2: If you run your Classic ASP web pages on IIS 7/7.5, then you can use the IIS URL Rewrite module to write a rule to make your cookies HTTPOnly. Paste the

System.Net.HttpWebRequest in classic asp?

时光怂恿深爱的人放手 提交于 2019-12-17 20:38:05
问题 I've got a classic asp app that needs to post XML to a payment engine, and the reference code uses a System.Net.HttpWebRequest object (asp.net). Is there an equivalent in Classic ASP that I could use to post the XML? 回答1: Heres a little helper function I use for making HTTP requests in ASP. Its in JScript but you should get the idea at least and some pointers of some nasty gotcha's that we've had to iron out over the years. <% /* Class: HttpRequest Object encapsulates the process of making an

Crystal Report Datasource remap

梦想的初衷 提交于 2019-12-17 20:32:32
问题 I am working with Crystal Reports and MS SQL Server. I need to remap the crystal report to point to a different database on the same SQL Server. Is there an automated way of doing this, or do I have to remap for every single report? I am currently doing this by adding a new data connection, and then updating the stored procedure with the specified paramether to change database(catalog). Also, after remaping, the .asp that displays the report crashes like this: Active Server Pages, ASP 0115

Why Error: “[ODBC Driver Manager] Data source name not found…”? (works fine on dev environment)

假如想象 提交于 2019-12-17 20:16:11
问题 I'm encountering problems in my ASP page. This is a login page which checks the user's credentials to the database before it allows access to the main page. I created a debugger page to find out what's the error details and this is the error message: Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. That's the error message I' m encountering on the web server when I'm loging in to the site. The weird thing here is when testing the page locally on my

What version of JavaScript does ASP Classic use?

懵懂的女人 提交于 2019-12-17 19:51:58
问题 The hacks I've seen for identifying a JavaScript version are all tailored to the browser, not an ASP Classic server running JavaScript. (And no, I'm not running ASP Classic/JavaScript by choice.) 回答1: Disclaimer: I'm an engineer on Microsoft's JavaScript team (specifically, Chakra). The IActiveScript JavaScript engine used by "Classic ASP" is also used by the Windows Script Host ( cscript and wscript ) and was also used by IE for a while (IE9 and later, certainly does not). Anyway, the

Classic ASP Store objects in the session object

南笙酒味 提交于 2019-12-17 19:47:12
问题 I am new to classic ASP and I need to code a web application in classic asp because the customer wants it to be in classic asp. :( Anyways! here is my question: When I have a object of a class called person: Class Person Private m_sFirstName Public Property Get firstName firstName = m_sFirstName End Property Public Property Let firstName(value) m_sFirstName = value End Property End Class set aPerson = new Person Person.firstName = "Danny" set Session("somePerson") = aPerson So far so good...

what's the difference between <% %> and <script language=“vbscript” runat=“server”> in classic asp?

孤者浪人 提交于 2019-12-17 19:45:37
问题 I couldn't find much documentation on the web so far now, the obvious difference seems to be that you cant mix html and vbscript using the "script" tag for example, this is ok <% public sub display_literal() %> literal &lt% end sub %> but with the script tag you should <script language="vbscript" runat="server"> public sub display_literal2() response.write "literal2</br>" end sub </script> on this page http://www.newobjects.com/pages/ndl/alp/asp-structure.htm it says that In classic ASP the

WinHTTP.WinHTTPRequest.5.1 does not work with PayPal sandbox after TLS 1.2

偶尔善良 提交于 2019-12-17 18:47:27
问题 PayPal sandbox just recently restricted to TLS 1.2 connection. This makes our site stop working with PayPal sandbox although it stills work with the production PayPal. In the future the production PayPal will have the same restriction. We're using classic ASP and Microsoft WinHTTP.WinHTTPRequest.5.1 component for communication with PayPal. Here's the code below. objHttp.StatusText returns "Bad Request". We're on Windows Server 2008 R2. I tried to use MSXML2.ServerXMLHTTP.6.0 instead, but it

SQL Server Pre-Login Handshake Acknowledgement Error [duplicate]

你离开我真会死。 提交于 2019-12-17 18:26:36
问题 This question already has answers here : Connection to SQL Server Works Sometimes (21 answers) Closed 4 years ago . We have a production website with a mixture of classic ASP, inline .Net and compiled .Net that talks to a SQL Server instance where both are VMs on the same physical box and everything there works great. In order to do some testing with new features I created a QA version of the site and have it setup to connect to a database on a VM hosted on another physical server. They are