Classic ASP invokes dll - works in 32 bit OS but fails in 64 bit OS with IIS 7.5 RRS feed

  • Question

  • User205214896 posted


    I am working on a Classic ASP application. It uses dlls to upload and download files to web server.

    FunctionUpload.dll is registered using the regsvr32.exe command. It works fine in Windows 2003 server , 32 bit OS with  IIS 6.

    Now the server is upgraded to Windows 2008 64 bit OS with IIS 7.5.  I registered the dll using regsvr32.exe  command in 64 bit OS. ( regsvr32.exe in C:\Windows\SysWOW64 folder using Admin login)

    When the ASP code tried to create an object of that dll it fails.

    Set download = Server.CreateObject("FunctionUpload.File")

    Please let me know what steps need to be done to access the dll from ASP code on a server with windows 2008 64 bit OS with  IIS 7.5?

    How to check if the dll is registered properly on a 64 bit OS?

    Should I make any changes in the IIS 7.5 settings to invoke that dll?

    Thanks Ashok

    Thursday, February 6, 2014 10:42 AM

All replies

  • User-736483138 posted

    Hi, The SysWOW64 folder is actually the 32-bit dlls. Set your application pool to enable 32-bit applications in the ApplicationPool, Advanced Settings. Once you do that, the application should work as expected.

    Thursday, February 6, 2014 11:21 AM
  • User205214896 posted

    Thanks for your reply. I enabled 32 bit applications in the application pool which is used.

    I registered the dll in the Windows 2008 64 bit machine using regsvr32.exe in SysWOW64 folder and it is registered successfully.

    When I invoke the dll, the ASP code fails and a message is shown in IE saying " Internet explorer cannot display the webpage "

    In IIS setttings, I set Send errors to Browser as True.

    In IE, under Advance tab, I unchecked "Show user friendly HTTP error messages"

    But still I could not see the actual error that is thrown while calling the dll.

    I also tried in ASP page. The Err number is 0.

    On Error Resume Next
    Set download = Server.CreateObject("FunctionUpload.File")
    If Err.Number <> 0 Then  Response.Write Err.Description  Err.Clear  End if

    ASP code fails and show IE cannot display the webpage after this line.

    download.ToName filename

    How to get the exact error message that occurs while calling the dll?

    Friday, February 7, 2014 6:03 AM
  • User-1561205953 posted

    is it resolved?

    Wednesday, December 12, 2018 2:14 PM