Asp.net错误无法加载文件或程序 [英] Asp.net error Could not load file or assembly

查看:189
本文介绍了Asp.net错误无法加载文件或程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/4975455/after-a-computer-crash-my-visual-studio-2010-will-not-load-an-assembly\">After电脑死机我的Visual Studio 2010将不加载程序集

我有一个Web应用程序在Asp.net MVC 3在VS 2010年开发的,而今天的工作我的笔记本电脑重新启动得到了,由于某些原因,并从那个时候起,当我运行我的应用程序从VS它给我的错误

I have a web application in Asp.net MVC 3 developed in VS 2010. Today while working my laptop got rebooted due to some reason and from that time onward when I run my app from VS it gives me error

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

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

在谷歌上搜索,我发现几个解决方案

On googling I found few solutions


  1. 清洁asp.net临时文件

  2. 重新安装.NET框架

我想第一个解决方案,但没有奏效。之前我尝试第二个解决方案,我想知道是否有任何其他的替代方案来解决这个问题?

I tried first solution but it didn't work. Before I try second solution I would like to know if there is any other alternative to fix this problem?

推荐答案

从下列文件夹删除所有文件,然后再试一次:

Delete all files from the following folders and try again:

C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

这篇关于Asp.net错误无法加载文件或程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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