duanqinqian5299 2017-05-24 14:25
浏览 55

PHP - 无法创建COM对象XXXXOEM.EjecOEM:访问被拒绝

Yeah, this question is repeated, but, I swear to you that I read every single link on stackoverflow and google and I'm going crazy with this issue.

I tried a lot of things, I going to put some of them here. None of these worked.

My system:

  • Windows Server 2008
  • Using PHP with class COM to call an object that is not from the system, but from a desktop program called Sage Murano (LogicClass)
  • IIS (Internet Information Services)

My php, ubicated in C:\inetpub\wwwroot\blahblah\foo.php:

<?php 
ini_set("com.allow_dcom","true");
$conn = new COM("LogicControlOEM.OEM_EjecutaOEM") or die("Error");
?>

I've tried:

  1. https://stackoverflow.com/a/30242444/4315127

Find out the registers, their keys or whatever, and I gave permissions in all folders that contains "EjecutaOEM" to users:

  • Administrator
  • Everybody
  • Anonymous logon
  • IUSR_SERVIDOR (IIS)
  1. More permissions http://www.figured-it-out.com/figured-out.php?sid=24
  2. Then enable 32 bits on IIS https://help.webcontrolcenter.com/kb/a1114/how-to-enable-a-32-bit-application-pool-in-iis-7-dedicated-vps.aspx

Some ideas to try?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度