来自 HRESULT 的异常:0x80070057 (E_INVALIDARG) [英] Exception from HRESULT: 0x80070057 (E_INVALIDARG)

查看:58
本文介绍了来自 HRESULT 的异常:0x80070057 (E_INVALIDARG)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 WPF 应用程序.在构建它时,我收到以下错误:

I have a WPF application . While building it I am getting the following error:

无法加载文件或程序集或其依赖项之一.参数不正确.(来自 HRESULT 的异常:0x80070057 (E_INVALIDARG))

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

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

Application is trying to load the assembly from virtual drive (as debug Folder)

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

Ex: [subst r: c:[my Assembly bin pth]

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

Earlier I was mounting c:in as a netwwork drive and was getting te following error.

这个程序集可能是从网上下载的.如果程序集是从 Web 下载的,Windows 会将其标记为 Web 文件,即使它驻留在本地计算机上.这可能会阻止它在您的项目中使用.您可以通过更改文件属性来更改此名称.仅取消阻止您信任的程序集.有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=179545.>

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.

顺便说一下,我在属性窗口中找不到取消阻止按钮.

I am not able to find the Unblock button in properties window by the way.

推荐答案

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

Clear out the temporary framework files for your project in:

对于 Windows 7,路径为:

For Windows 7, the path is:

C:Users[username]AppDataLocalTempTemporary ASP.NET Files

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

For 64 bit systems with 'Framework' in the path the full path is:

C:WINDOWSMicrosoft.NETFramework64v2.0.50727Temporary ASP.NET Files

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

这篇关于来自 HRESULT 的异常:0x80070057 (E_INVALIDARG)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆