从HRESULT异常:80070057(E_INVALIDARG) [英] Exception from HRESULT: 0x80070057 (E_INVALIDARG)

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

问题描述

我有一个WPF应用程序。虽然构建它,我收到以下错误:

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

无法加载文件或程序集或它的一个依赖。参数不正确。 (异常来自HRESULT:80070057(E_INVALIDARG))

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

应用程序试图加载从虚拟驱动器组件(如debug文件夹中)

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

例如:[SUBST R:C:[我的大会斌PTH]

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

早些时候,我安装c:\斌作为netwwork驱动器,并渐渐以下错误TE。

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

这总成可能已经从网站下载。如果一个组件已经从网站下载,它被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]\AppData\Local\Temp\Temporary ASP.NET Files\

有关与路径中的框架64位系统的完整路径是:

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

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

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

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

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