Getting the error in VDI, after deployment - c#

Problem with Uipath BOT after deployment.
Tried removing the Newton JSON and Intelligent OCR Packages if they were installed
Its a Package and cannot show the Code for Security Reasons
We have made an solution using UiPath Core Framework which is running successfully on the local machine that is on developer machine once that code is extracted as a package and when have deployed the Package on VDI and when try to execute that package getting the below mentioned error.

Related

How to bypass Twilio nuget package error?

I've been struggling trying to get the small sample c# console code from Twilio using my Visual Studio 2017 Pro .NET framework 4.6.1. I keep getting this error message from the Package Manager Console.
An error occurred while trying to restore packages: Unable to find version '1.0.4' of package 'Twilio'/
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages:Package 'Twilio.1.0.4' is not found on source 'C:\Program FIles (x86)\Microsoft SDKs\NuGetPackages'.
http://packagesource: Unable to load the service index for source http://packagesource.
An error occurred while sending the request.
The remote name could not be resolved: 'packagesource'
Any Idea how to fix this problem, has anyone been through this before or the real problem is with Twilio that is not very friendly with C#?
Thank you guys
I would recommend installing the latest version of the Twilio package which at the time of me writing this is 5.65. Try installing the latest version and see if that resolves the compilation error. I ran a test on my local machine using Visual Studio 2019 (Community Edition) and creating a brand new .NET Framework 4.6.1 console application. Using the NuGet Package Manager I installed the latest version of the Twilio NuGet package and built the project without error. I also used the code from the .NET Framework SMS Quick Start located here and it worked with one of my numbers.
As far as the package issue you may want to look here and see if that resolves the issue you're having. Note that one of the answers was to create a new application and reinstall the package using the package manager console rather than the NuGet Package Manager.

Failed to upgrade Bot Framework Sample to latest nuget package versions on Azure

I've created a sample bot on Azure, downloaded it and upgraded all nuget packages to their latest stable versions. (Except for one package System.IdentityModel.Tokens.Jwt which Microsoft.Bot.Builder required to be less than 5.0)
Also changed .net framework to 4.7 and the C# compiler to the latest minor version.
Due to alleged backward compatibility I assumed this to work. And it does locally.
Bot emulator works just fine.
However back on Azure it does not. In the settings .net framework 4.7 was selected.
The homepage does not crash and is displayed correctly. However messages are not delivered to the bot.
I assume there is a limitation on Bot Builder SDK versions that azure supports,
but i did not find any such statement.
The logs show "HTTP Error 500.0 - Internal Server Error" Could not find more specific information.
Did anyone run into similar problem?
And in general, what's the best practice of upgrading your production application's libraries?

Azure Media Service | Azure Storage Versioning in Project

I have done Azure Media Services (AMS) POC.
but I am facing problem in integration of AMS into main project. Steps are below:
I am installing windowsazure.mediaservices.extensions package from NuGet but in this case
it gives a error, WindowsAzure.Storage already has a dependency defined for 'NETStandard.Library`, because I have already installed WindowsAzure.Storage.8.1.0 package in project solution.
If I removed this WindowsAzure.Storage.8.0.0 then tried to install windowsazure.mediaservices.extensions package. it shows installation successful but version of WindowsAzure.Storage is 4.3.0 instead latest (8.1.0).
If removing WindowsAzure.Storage.4.3.0 forcefully and adding external reference of WindowsAzure.Storage.8.1.0 (Microsoft.WindowsAzure.Storage.dll) then giving runtime error at the time of Creation of Asset on AMS.
Please suggest any solution.
Thanks in advance
I tried the same thing on one of the projects. It seems this is more of a Visual Studio or Nuget package manager update issue. I tried reproducing the same on a Visual Studio 2015 Community Edition and it worked. Check out the image below:

XDocument NuGet Package won't install

In my application I'm trying to read XML files and was attempting to use the System.Xml.Linq utilities. I'm using the .net framework 4.6.1 and trying to install the System.Xml.XDocument NuGet package for that purpose.
When I try to install it from the Package Manager, it seems to install correctly (gains the checkmark in the browse tab of manager), but when I check the installed packages, it doesn't show up. I go back to browse on the package manager and it is back to not being installed in my project. I tried installing via the console, but got this error:
Error finding repository for 'https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet/': An error occurred while retrieving package metadata for 'System.Xml.XDocument.4.3.0' from source 'Microsoft and .NET'.
A task was canceled.
So I downloaded the NuGet Package from NuGet.org and dumped it in a folder on my computer, tried installing it from there and it seemed to work, the console no longer producing errors, but I was still getting the same behavior in the Package Manager.
I've deleted my project.json.lock file and done a dotnet restore command a few times while trying to figure this out, but I've hit something of a brickwall in what I can do to get this package installed and usable.
In the meantime I've installed and am using the System.Xml.XmlDocument NuGet Package, so at the very least I know I can install other packages.
After working with the member of my team who knows far more about NuGet Packages than I, he pointed it out to me that System.Xml.XDocument isn't supported while using the .Net 4.6.1 Framework. The correct Package to use is/was System.Xml.XPath.XDocument.
Would have been nice to have some indication of that in Package Manager instead of the installed package just uninstalling itself, but That is going to be a marker for me to look for that in the future.

Azure Deployment of MVC site from Github fails when solution contains Office Application

I have a github repo and a solution that's home to:
Common C# Library for domain / shared infrastructure
C# MVC 5 Web App
Xunit Test Project
Office App
This repo is connected to an azure site and automatically deploys the MVC Web App project.
Since i've added the Office App to the solution, the automatic deployment is failing with the error below.
Command: D:\home\site\deployments\tools\deploy.cmd
Handling .NET Web Application deployment.
Installing 'jQuery 1.9.1'.
Successfully installed 'jQuery 1.9.1'.
Unable to find version '1.1.0' of package 'Microsoft.Office.js'.
Failed exitCode=1, command="D:\Program Files (x86)\SiteExtensions\Kudu\1.26.30329.722\bin\scripts\nuget.exe" restore "D:\home\site\repository\src\MySolution.sln"
An error has occurred during web site deployment.
I'm not really sure as to why this could be happening as it's a pretty generic situation. It's also a perfectly fine nuget package: http://www.nuget.org/packages/Microsoft.Office.js/
Your link shows that the current version is 1.0.1
Office Javascript API 1.0.1
The Office JavaScript API includes objects, methods, properties, events, and enumerations that can be used from apps for Office to interact with Microsoft Office 2013 documents or mail items content.
Looking at your error log that contains this line:
Unable to find version '1.1.0' of package 'Microsoft.Office.js'.
It looks like in some config file you specified to use version 1.1.0.
Change that to 1.0.1 and it should be fine

Categories

Resources