Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 4.5 cannot find "System.Net.Http.Formatting, Version=4.0.0.0" #1

Closed
kamranayub opened this issue Apr 21, 2013 · 5 comments
Closed

Comments

@kamranayub
Copy link

I tried installing PerfIt on .NET 4.5 project (MVC 4) and it failed with the following message:

An exception occurred during the Install phase.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I have System.Net.Http.Formatting in the bin, but it is version 4.1.10809.0

@aliostad
Copy link
Owner

I just tried an MVC 4 app (selected Empty in the next dialog) and then changed to .NET 4.5. Then typed

PM> Install-Package PerfIt

And it worked. So cannot reproduce your issue. Can you please report the exact steps?

@kamranayub
Copy link
Author

Installation of the package worked, but I was following your blog post, so next I added an Installer class, then ran

installutil -i mydll.dll

That's where the message came from, sorry, should have specified.

@aliostad
Copy link
Owner

I just tried and it all worked fine. Did you run it in administrative mode?

If does not work, please create a GitHub project and share so I can have a look. It all work my side.

@kamranayub
Copy link
Author

The issue was that I was using a pre-release version of WebApi.Client package. I reverted to the stable release and now it works, thanks.

@aliostad
Copy link
Owner

Thanks for using it. Please keep feedbacks, comments coming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants