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

Microsoft.Web.Infrastructure not part of the GAC/.net framework #509

Open
kasperskov909 opened this Issue Feb 2, 2018 · 7 comments

Comments

Projects
None yet
2 participants
@kasperskov909
Copy link

commented Feb 2, 2018

SimpleInjector.Integration.WebApi.WebHost.QuickStart package has a framework reference to Microsoft.Web.Infrastructure. As far as I know, the Infrastructure assembly is a NuGet package - in other words not part of the GAC.

See my issue here:
https://stackoverflow.com/questions/48580482/unable-to-install-nuget-pck-microsoft-web-infrastructure-is-not-in-my-gac

Please correct me if I'm wrong.

@dotnetjunkie dotnetjunkie added the bug label Feb 2, 2018

@dotnetjunkie

This comment has been minimized.

Copy link
Collaborator

commented Feb 2, 2018

Hmmmm.... that's weird. I swear this was part of the framework in the past. We never had any complaints about this before.

I'll add this issue to the v4.1 backlog, and will fix the NuGet package (and that of SimpleInjector.Integation.MVC3 as well) with v4.1.

In the meantime, you can manually add the Microsoft.Web.Infrastructure NuGet package to your Web API project or don't add the SimpleInjector.Integration.WebApi.WebHost.QuickStart NuGet package to your project, but just the SimpleInjector.Integration.WebApi NuGet package and add the required code manually. The WebHost.QuickStart package is in fact nothing more than a reference to the integration package while injected some code into your application anyway.

The Web API integration page in the documentation describes how to set up a Web API project using Simple Injector.

@dotnetjunkie dotnetjunkie added this to the v4.1 milestone Feb 2, 2018

@kasperskov909

This comment has been minimized.

Copy link
Author

commented Feb 5, 2018

Thanks for the tip.
Unfortunately my parent package has a dependency to the WebHost.QuickStart so that's not possible. I'll contact the package owner and pass on the info.

@dotnetjunkie

This comment has been minimized.

Copy link
Collaborator

commented Feb 5, 2018

my parent package has a dependency to the WebHost.QuickStart

What package is that?

@kasperskov909

This comment has been minimized.

Copy link
Author

commented Feb 5, 2018

Some Umbraco stuff from a private NuGet server (company stuff).

@kasperskov909

This comment has been minimized.

Copy link
Author

commented Feb 26, 2018

For anyone struggling with this there's a fix from Microsoft:
http://www.microsoft.com/en-us/download/details.aspx?id=1491

@dotnetjunkie

This comment has been minimized.

Copy link
Collaborator

commented Mar 1, 2018

@kasperskov909 Do you have any aditional details on why that ASP.NET MVC 3 Tools Update fixes the problem? Since that update fixes the problem, is there in your opinion still any action from our side required? Is there still something that should be fixed on our side?

@kasperskov909

This comment has been minimized.

Copy link
Author

commented Mar 2, 2018

Give me a couple of days to do some research on this. Seems weird that there is a "fix" for something they deliberately removed from the framework.

@dotnetjunkie dotnetjunkie modified the milestones: v4.1, Backlog Mar 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.