-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add support for WebAPI2 #14
Comments
Hi, is it breaking? You should be able to use it in .NET 4.5 and 5.0.0.0 as there were no breaking changes. I have not tested it myself. |
The runtime works, but when trying to install the perf counters, it has a dependency on System.Web.Http.dll 4.0.0.0, which is not in my directory. I have 5.0.0.0 and cannot implement a binding redirect like I have in the web.config since the binding redirect would execute from the context of installutil.exe (and therefore installutil.exe.config would need to contain the binding redirect). Does that make sense? From: Ali Kheyrollahi [mailto:[email protected]] Hi, is it breaking? You should be able to use it in .NET 4.5 and 5.0.0.0 as there were no breaking changes. I have not tested it myself. — |
have you tried things like this http://stackoverflow.com/questions/12643199/installing-windows-service-with-batch-file |
That article makes sense, but in this case, there is a version mismatch between the versions of System.Web.Http.dll. It is looking for version 4.0.0.0 (not in the GAC or installed with the framework). I have version 5.0.0.0 installed from NuGet. The batch file indicated in the article you sent is for when you need to have the “current directory” changed. In my case, System.Web.Http.dll is in the same directory, but has “Specific Version” set to true, requiring that I have version 4.0.0.0 in my bin folder, which conflicts with WebAPI 2… An exception occurred during the Install phase. The Rollback phase of the installation is beginning. The Rollback phase completed successfully. The transacted install has completed. From: Ali Kheyrollahi [mailto:[email protected]] have you tried things like this http://stackoverflow.com/questions/12643199/installing-windows-service-with-batch-file — |
This is not a problem with PerfIt not supporting ASP.NET Web API v2.0. It is basically he fact that InstallUtil does not look at the assembly redirect. There is a workaround explained here: http://stackoverflow.com/questions/3940120/installutil-bindingredirect |
Needs .NET 4.5 as well as System.Web.Http.dll version 5.0.0.0
The text was updated successfully, but these errors were encountered: