ActiveX component can't create object

前端 未结 12 1265
傲寒
傲寒 2020-12-01 01:42

I have just installed a third party app on my Windows Server 2008 server and I get the

ActiveX Component can\'t create object

m

12条回答
  •  伪装坚强ぢ
    2020-12-01 01:58

    I've had the same issue in a VB6 program I'm writing, where a Form uses a ScriptControl object to run VBScripts selected by the User.

    It worked fine until the other day, when it suddenly started displaying 'Runtime error 429' when the VBScript attempted to create a Scripting.FileSystemObject.

    After going mad for an entire day, trying all the solutions proposed here, I began suspecting the problem was in my application.

    Fortunately, I had a backup version of that form: I compared their codes, and discovered that inadvertently I had set UseSafeSubset property of my ScriptControl object to True.

    It was the only difference in the form, and after restoring the backup copy it worked like a charm.

    Hope this can be useful to someone. Up with VB6! :-)

    Max - Italy

提交回复
热议问题