HRESULT: 0x80070057 (E_INVALIDARG)

While developing recently on a new project of mine using EF4 and mvc3, the power went off. (Thanks Eskom /facedesk)

So after waiting for 45minutes and restarting my desktop and project etc….when running I got this error.

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

After some research I found out that all I had to do was clear the Temporary ASP.NET Files folder for my framework and viola, the project worked again.

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

Advertisements

Posted on September 28, 2011, in Just General and tagged , , . Bookmark the permalink. 1 Comment.

  1. nice work …

    and for 64bits system , the path is :

    C:\WINDOWS\Microsoft.NET\Framework64\v……..\Temporary ASP.NET Files

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: