gpt4 book ai didi

c# - HRESULT 异常 : 0x80070057 (E_INVALIDARG)

转载 作者:IT王子 更新时间:2023-10-29 04:04:03 26 4
gpt4 key购买 nike

我有一个 WPF 应用程序。在构建它时出现以下错误:

Could not load file or assembly or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

应用程序正在尝试从虚拟驱动器(作为调试文件夹)加载程序集

例如:[subst r: c:[my Assembly bin pth]

之前我将 c:\bin 安装为网络驱动器,但出现以下错误。

This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.

编辑:顺便说一句,我在属性窗口中找不到取消阻止按钮。

最佳答案

清除项目的临时框架文件:

对于 Windows 7,路径是:

C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\

对于路径中带有“Framework”的 64 位系统,完整路径为:

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

http://www.solutioncottage.com/ShowSolution.aspx?solID=59

关于c# - HRESULT 异常 : 0x80070057 (E_INVALIDARG),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14871449/

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