Search code examples
iisvbscriptasp-classic

VB Script Application: Path Not Found for ASP Classic Page


I am having issues with routing from a VB6 DLL. When my web page calls a classic ASP page called "Recreate Session" I get this error message:

Path not found

/Path/to/File/RecreateSession.asp, line 211

Line 211 is a call to this:

cValidate.Initialize 

With some arguments that are a little bit too company specific for me to post.

cValidate is defined like this:

Set cValidate = Session("cValidate")

Out of our 5 machines this works on 3 of them with identical code, which makes me think it's some kind of configuration issue. I have compared the IIS setup and configurations and as far as I can tell they are completely identical. I know there is not a lot of information in this post but this is everything I have.

Any insight is greatly appreciated.


Solution

  • The fix ended up being that one of my 20 year old VB script DLLs had to be registered with the COM component registration in powershell for the application to be able to find it.

    $comAdmin.InstallComponent("HOME",$rootdir + "\DLLs\MyDll.DLL","","")
    

    Hopefully this helps anyone else who, like me, started programing within the last 10 years and has never dealt with this kind of setup.