Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
App framework .NET 4.5.1 fails to run after installing Microsoft .NET Framework 4.7.1 update on Windows Server 2012 (KB4033369) #601
After installing the Microsoft .NET Framework 4.7.1 for Windows 8.1 and Windows Server 2012 R2 for x64 (KB4033369) the application failed to launch.
The app is an asp.net mvc project on .net framework 4.5.1. is mantained and compiled using VS2015, framework version DNX 4.5.1.
The app is running under Kestrel. The App is launched using web command in the approot folder.
I have never updated the app to the latest framework, because it's a production huge app ,and at this time I'm not sure that all the code will work , specially connecting to other 3rd party platforms.
Error messages from the app console:
This is part of the code Startup.cs:
I use a config.json file for development and another for production.
I never had issues until I installed the Microsoft .NET Framework 4.7.1 update.
If I open the app url using the browser I get an «500 internal server error».
The workaround I did was to uninstall the Microsoft .NET Framework 4.7.1 ( KB4033369) Windows update.
Some help would be great.
Hi @jprr773 , it looks like this app is using the never-released DNX. Because DNX never shipped, it is not supported. We highly recommend that applications use the supported .NET Core platform, which uses the .NET Core CLI and SDK.
Here are some relevant links:
Hi @Eilon ,
thank for the time and comment.
The app is build like this:
... is there any supported DNX compatible with MVC 6 and EF 7?
At some point, I'l have to migrate the app, but for now, it's too complex , too many 3rd party integrations.
There must be a way to solve this out, I mean the error indicates somehow a DLL method name conflict between the two DLL's:
DNX,Version=v4.5.1 error CS0104: 'ConfigurationBuilder' is an ambiguous reference between 'Microsoft.Extensions.Configuration.ConfigurationBuilder' and 'System.Configuration.ConfigurationBuilder'.
There must be some way to solve this without having to migrate the whole app...
Regarding this error:
You need to check the
thanks again for your time and comments.
Just for the record and if someone has the same issue, these were the steps I made to get the application running on the server, with update 4.7.1 :
modded Startup.cs (added namespace alias):
public static ConfiguracaoAplicacao.IConfigurationRoot AppConfiguration;
Added line below to project.json:
Rebuild the application & deploy to server, it's all working now.