asp-classic

Converting VB6 AES Rijndael Block Cipher to C# by Phil Fresle

做~自己de王妃 提交于 2019-12-06 00:58:06
I am converting a classic asp application to C#, and would like to be able to decrypt strings in c# that were originally encrypted in classic asp. the classic asp code is here , and the c# code is here . The problem that i am facing is that the signatures of the Encrypt and Decrypt methods in asp vs C# are different. here is my asp code for decrypting, which wraps the decrypt code. Function AESDecrypt(sCypher) if sCypher <> "" then Dim bytIn() Dim bytOut Dim bytPassword() Dim lCount Dim lLength Dim sTemp Dim sPassword sPassword = "My_Password" lLength = Len(sCypher) ReDim bytIn(lLength/2-1)

where does asp and iis 6.0 get its date format

别说谁变了你拦得住时间么 提交于 2019-12-06 00:10:19
I've found a dilly of a pickle with a new web server. We have a new web server that is displaying dates differently than our old web servers. We are running asp classic web pages on IIS 6.0 with windows server 2003. We have logged in as an administrator and set the regional settings as appropriate and then applied the settings to current user and default user profile. We then went into registry and update the appropriate formats under HKEY_USERS/.default/control panel/international. Update the asp.net configuration for our websites to the correct code-page and locale. Does anyone have other

Vista's IIS Instance doesn't have SMTP (Solutions?)

走远了吗. 提交于 2019-12-05 23:48:04
问题 Presently, I am working on a project using classic ASP. My development machine is Vista Enterprise. Although Vista does allow you to have multiple Web Sites (not without a workaround in XP), it has removed the SMTP service from IIS. Is there a standard workaround for this issue? As more web developers at my company receive new machines I am concerned that this issue will become a greater irritant. (Currently I am the only Web Dev using Vista) 回答1: I found a better suggestion over on

ASP classic: How to schedule a function server-side

天大地大妈咪最大 提交于 2019-12-05 22:58:05
I work just on ASP classic (I know I've to learn something new, but for now...) and that's my problem: In my database I store website's account. After a year the accounts needs to be deactivated. I've create a function that's works fine, but I need a sheduled call (every night at 00.00 am). Is it possibile? Do I need to put the call on global.asa? thanks a lot! Maurizio If you have access to the server, create a vbscript (.vbs) and setup the Task Scheduler... This is what we use for database tidy routines and for nightly backups. You can schedule jobs through free cron services such as https:/

how to set session never expire in ASP

╄→尐↘猪︶ㄣ 提交于 2019-12-05 21:39:21
I am using ASP classic (1.1) with IIS 6.0. Is there any options to set session never expire? thanks in advance, George Session.Timeout=5 Would mean that it times out in 5 minutes. I don't think you can set this to infinity but you can set it to an approximately large number. You can specify a Session.Timeout value in minutes. Or have your pages poll the server every n minutes (a javascript function would do that, or you can have a dummy iframe with refresh-content set to call a dummy asp page every n minutes). This is better (albeit polling can be taxing on your server, don't poll too often)

In Classic asp, can I store a database connection in the Session object?

萝らか妹 提交于 2019-12-05 21:17:12
Can I store a database connection in the Session object? neouser99 It is generally not recommended to do so, a connection string in the Application variable, with a nice helper function/class is a much preferred method. Here is some reference. (Dead link removed because it now leads to a phishy site) I seem to recall doing so will have the effect of single threading your application which would be a bad thing. In general, I wouldn't store any objects in Application variables (and certainly not in session variables). When it comes to database connections, it's a definite no-no; besides, there

Classic ASP & ASP.Net Authentication

烂漫一生 提交于 2019-12-05 20:41:13
I have two separate apps (one is classic asp, the other is asp.net) which, from the point of view of the user, should appear seamlessly as one "application". As others have pointed out, the two apps can't share session information, so I am planning to use windows authentication along these lines:- In the ASP world: Request.ServerVariables("AUTH_USER") and in ASP.Net (.Net 2.0): System.Threading.Thread.CurrentPrincipal.Identity.Name which is called from my business logic layer (i.e. HttpContext.Current.User.Identity.Name is not available to me). Is this considered good practice or is there a

Running ASP Classic and .NET on Linux

[亡魂溺海] 提交于 2019-12-05 20:17:34
I'm looking at a product that was coded in a mix of .NET and ASP Classic. I'm wondering if it's possible to get this running in Linux? I've heard of Mono (which can supposedly run .NET on Linux) and Sun Java Web Server (which can supposedly run ASP Classic on Linux). Are there any other technologies that you would recommend? Also, are there any major pitfalls that I should be aware of? Mono works great for ASP.NET. They have an entire site dedicated to ASP.NET on Mono . Probably the best resource for things to watch for is the Guide to Portion ASP.NET to Mono page . It walks through the

How do I set the character set using XMLHttp Object for a POST in classic ASP?

夙愿已清 提交于 2019-12-05 19:57:02
I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server: sURL = SOME_URL Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP") oXHttp.open "POST", sURL, false oXHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset:ISO-8859-1;" sPost = SOME_FORM_DATA oXHttp.send(sPost) I've been told (by the maintainer of the consuming server) that, depending on whether I use this code from Windows Server 2000 (IIS 5) or Windows Server 2003 (IIS 6), he gets Latin-1 (Windows 2000 Server) or UTF-8 (Windows Server 2003)

How to fix the error procedure expects parameter '@parameters' of type 'ntext/nchar/nvarchar'?

雨燕双飞 提交于 2019-12-05 19:38:57
问题 I'm trying to use a stored procedure to display the results of a table, and an associated table or recent changes to the database. The stored procedure is: set ANSI_NULLS ON set NOCOUNT ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo].[MKTG_Current]( @added smalldatetime OUTPUT, @named varchar(50) OUTPUT) AS DECLARE @pDate smalldatetime; DECLARE @AIID int; DECLARE @Table varchar(50); DECLARE @Bork nvarchar(350); SET @pDate = GETDATE() SELECT @Table=[Table], @AIID=AIID, @added=date_added