gpt4 book ai didi

regasm - 注册 dll 时出现问题 - 访问被拒绝

转载 作者:行者123 更新时间:2023-12-01 23:57:57 37 4
gpt4 key购买 nike

尝试在 Win2008 Server 中运行 regasm 时:

regasm "C:\Program Files\FooProg\Bar.dll" /tlb:"C:\Program Files\FooProg\Bar.tlb"

我收到以下错误:

RegAsm : error RA0000 : An error occurred while saving the exported type library: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

这是什么意思

最佳答案

出现该错误很可能是因为您无法删除相应的 .tlb 文件。另外两个建议:

  1. 停止 IIS 并尝试再次注册:
  2. 停止 IIS,从 DLL 文件所在的位置删除 .tlb 文件,然后尝试再次注册。
  3. 关闭所有 IE/IIS/DEV 工具(它们可能会将某些文件保持为只读状态),然后尝试注册您的 DLL

关于regasm - 注册 dll 时出现问题 - 访问被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1847763/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com