Reputation: 215
I have hosted my web app on Azure as azure app service. There is an error in the application due to a third-party library. Which says it needs to install VC++ 2010 Redistributable (x64) on the server. how to do that on Azure app service?
Upvotes: 2
Views: 2454
Reputation: 15571
In short: you don't. Azure App Service is a PaaS offering, you don't get to decide what gets installed on the machines you run it on. They run within a sandbox that protects your App Service from doing harm (and being harmed). More info on the sandbox can be found here: Azure Web App sandbox.
Apparently some versions of the VC++ Redistributable are already installed on an Azure App Service. Please refer to this article for more info: Visual C++ Redistributable Packages for Visual Studio Azure App Service
An alternative solution would be to run a VM where you can manage the OS and the installed libraries yourself.
Upvotes: 1
Reputation: 1571
I created a simple Nuget package which contains the 3 DLLs and then added that to my app; it then works as the app looks in the local bin folder first.
Upvotes: 1