很感谢大家帮我想了很多办法
我后来实验过后还是需要用原本的方式来进行比较不会跑版
分享一下我后来的解决方法,可能不是最好的,但是希望可以回馈给大家
1. In DCOMCNFG, right click on the My Computer and select properties.
2. Choose the COM Securities tab
3. In Access Permissions, click "Edit Defaults" and add Network Service to it
and give it "Allow local access" permission. Do the same for
<Machine_name>\Users.
4. In launch and Activation Permissions, click "Edit Defaults" and add
Network Service to it and give it "Local launch" and "Local Activation"
permission. Do the same for <Machine_name>\Users
5. In DCOMCNFG where you see your list of applications, click Action > Refresh