gpt4 book ai didi

RegAsm 错误 RA0000 无法在网络驱动器上加载文件或程序集

转载 作者:行者123 更新时间:2023-12-02 09:14:16 29 4
gpt4 key购买 nike

我在使用批处理文件在网络驱动器上的框架 4 上调用 Regasm 时遇到问题。当 dll 位于本地驱动器上时,它可以正常工作。

消息是无法加载文件或程序集 filename.dll 或其依赖项之一。不支持操作。

问题已讨论 here ad "Darrens Developer Diary"

但是按照描述编辑配置没有帮助

我也尝试了建议 here行的不同

<loadFromRemoteSources="true"/>   

这样我收到了一个不同的错误“系统无法执行指定的程序”

该 DLL 曾经使用 Framework 2,但我使用 Framework 2 Regasm 取消注册了它。

这是 regasm.exe.config

<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<requiredRuntime safemode="true" imageVersion="v4.0.30319" version="v4.0.30319"/>
<supportedRuntime version="v4.0" sku="client" />
</startup>
<runtime>
<loadfromremotesources enabled="true"> </loadfromremotesources>
</runtime>
</configuration>

这是我的批处理文件中的命令

Z:
cd foldername
c:\WINDOWS\Microsoft.Net\Framework\v4.0.30319/regasm /verbose /codebase /tlb: .\SBD.CommBridge.tlb .\SBD.ComBridge.dll

最佳答案

regasm.exe.config 中的正确行是

 <loadFromRemoteSources enabled="true"/>

案件很重要

关于RegAsm 错误 RA0000 无法在网络驱动器上加载文件或程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21199126/

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