Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3240
  • Last Modified:

MSScriptControl in .asp on 64bit server won't work

I have an .asp application that uses CreateObject("MSScriptControl.ScriptControl") so it can use the eval method to unescape an encoded string with special characters (ie. %A7).  We work with a lot of foreign languages.  This had worked fine, but when we moved it to a 64 bit server we get the "can't create object" error.

Function Unescape(s) 
    Dim scr 
    Set scr = CreateObject("MSScriptControl.ScriptControl")
    scr.Language = "VBScript"
    scr.Reset
    Unescape = scr.Eval("unescape(""" & s & """)")
End Function

Open in new window


Doing a little searching it appears that there is only a 32 bit version of msscript.ocx.  So, my questions are, (1) how can I make this run on a 64 bit server, (2) is there an equivalent function that can replace msscript, or (3) is there an alternative to decoding strings that works as well.
0
StarDusterII
Asked:
StarDusterII
  • 3
  • 2
1 Solution
 
sammySeltzerCommented:
Try the following:

Click Start, click Run, type %windir%\SysWoW64\cmd.exe, and then click OK.
Then type
cscript yourVBScript.vbs

More from this link http://support.microsoft.com/kb/896456
0
 
StarDusterIIAuthor Commented:
You lost me there a bit... this is not a .vbs, it's an .asp (Active Server Page) served by IIS.
0
 
sammySeltzerCommented:
That code that is asp?

WOW, I thought I knew ASP!

Anyway, for what you described in your original post, my post would have solved it.

However, if your code is asp, then you need to follow this link to enable 32bit mode in iis.

http://help.webcontrolcenter.com/KB/a1114/how-to-enable-32-bit-application-pool-iis-7-dedicatedvps.aspx
0
 
StarDusterIIAuthor Commented:
Well, the original post started off with "I have an .asp application..." but I guess I could have made that a little clearer.

Anyway, your solution worked fine.
0
 
sammySeltzerCommented:
Thanks a lot for the points.

Glad it worked for you.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now