Fatal Error: “Class not registered” creating COM Object

后端 未结 1 483
不思量自难忘°
不思量自难忘° 2021-01-24 22:42

I have an app that makes use of third party software using PHP(32 bit PHP) COM object, everything is working fine on my local machine (Windows 7, 64bit).

When I deployed

相关标签:
1条回答
  • 2021-01-24 23:19

    I'm not familiar with hosting php websites in windows but I know for IIS hosted websites I get this error for a myriad of reasons. Some of which you've mentioned above. When hosting in IIS I know there is a setting that needs to be set to True called "Enable 32 bit applications"

    Enabled 32 bit applications

    Also you want to make sure if you are transferring this file from another computer that the file is unblocked as this will cause a lot of headaches as well and strange errors.

    Unblock files

    Sometimes what I do as well is to write a simple test gui that calls this com dll to eliminate anything related to running it as a website. If you are able to access it with the gui application it could be something security related to running it as a website if the user the website is running under is different than the user launching the gui application.

    Edit

    Also try the article mentioned here:
    http://www.gfi.com/blog/32bit-object-64bit-environment/

    It seemed to have helped you judging by the comment below.

    0 讨论(0)
提交回复
热议问题