Monday, January 16, 2012

Exception from HRESULT: 0x80070057 (E_INVALIDARG))

This is very comman issue while we try to run asp.net application we get following error

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

So basic reason of this issue is that we havent cleaned the project or temprory files

Do 2 things to remove this issue
1. Clean your project and rebuild the project.
2. After following step 1 if you are still having same issue. check target framework of project and go to following location and delete all files

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files

In My case, project was in .net framework 4.0 so i deleted temporary asp.net files from its child folder. If your project is targeting to some other project delete  Temporary ASP.NET Files from its child folders.

Happy Living...
Happy Concepts...
Happy Programming....

No comments:

Post a Comment