Перестали работать приложения. переустановка с ошибкой

Перестали работать приложения. переустановка с ошибкой
Atom
7/22/2022
berg


Сначала работали и Гидра и Дизайнер. Потом у Дизайнера приключился какой-то глюк, стал выдавать непрерывные ошибки. Переустановка не прошла, снес папку, стал переустанавливать - установку завершить не может, выдает ошибки.
Переустановил Инсталлер, после этого перестала работать и Гидра.
Снес всё, заново установил Инсталер, после этого ни один пакет из доступных бесплатных не может установиться до конца.

Ошибки в логах чаще всего такие:
VMPageInstallActions 22.07.2022 8:29:55 +05:00 Error CmdExecuteAsync error: System.InvalidCastException: Can't convert of type 'System.String' to type 'System.Xml.Linq.XElement'.
---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Ecng.Common.Converter.To(Object value, Type destinationType)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.To(Object value, Type destinationType)
at Ecng.Common.Converter.To[T](Object value)
at StockSharp.Licensing.License..ctor(Byte[] body)
at StockSharp.Installer.ProfileHelper.KeepLicenseUpToDateAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()

и такие
ProfileHelper 22.07.2022 8:23:03 +05:00 Error refresh license error: System.InvalidCastException: Can't convert of type 'System.String' to type 'System.Xml.Linq.XElement'.
---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Ecng.Common.Converter.To(Object value, Type destinationType)
--- End of inner exception stack trace ---
at Ecng.Common.Converter.To(Object value, Type destinationType)
at Ecng.Common.Converter.To[T](Object value)
at StockSharp.Licensing.License..ctor(Byte[] body)
at StockSharp.Installer.ProfileHelper.KeepLicenseUpToDateAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()



но бывают и такие:
VMPageInstallActions 22.07.2022 8:21:06 +05:00 Error CmdExecuteAsync error: NuGet.Protocol.Core.Types.FatalProtocolException: Error downloading 'StockSharp.Hydra.5.0.124 : Microsoft.Data.SqlClient [3.0.1, ), Microsoft.Data.Sqlite [5.0.11, ), StockSharp.Algo.Export [5.0.30, ), StockSharp.Configuration.Adapters [5.0.134, ), StockSharp.Hydra.Core [5.0.124, ), StockSharp.Studio.Controls [5.0.134, ), StockSharp.Xaml.CodeEditor [5.0.113, )' from 'https://nuget.stocksharp.com/x/v3/package/stocksharp.hydra/5.0.124/stocksharp.hydra.5.0.124.nupkg'.
---> System.TimeoutException: The HTTP request to 'GET https://nuget.stocksharp...ydra.5.0.124.nupkg' has timed out after 100000ms.
at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token)
at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, String source, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.HttpSource.ProcessStreamAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
--- End of inner exception stack trace ---
at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.Protocol.DownloadResourceV3.GetDownloadResourceResultAsync(PackageIdentity identity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackageDownloader.GetDownloadResourceResultAsync(SourceRepository sourceRepository, PackageIdentity packageIdentity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
at NuGet.PackageManagement.PackagePreFetcher.<>c__DisplayClass0_1.<<GetPackagesAsync>b__4>d.MoveNext()
--- End of stack trace from previous location ---
at NuGet.PackageManagement.PackagePreFetcherResult.EnsureResultAsync()
at NuGet.PackageManagement.PackagePreFetcherResult.GetResultAsync()
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.ExecuteNuGetProjectActionsAsync(NuGetProject nuGetProject, IEnumerable`1 nuGetProjectActions, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, CancellationToken token)
at NuGet.PackageManagement.NuGetPackageManager.InstallPackageAsync(NuGetProject nuGetProject, PackageIdentity packageIdentity, ResolutionContext resolutionContext, INuGetProjectContext nuGetProjectContext, PackageDownloadContext downloadContext, IEnumerable`1 primarySources, IEnumerable`1 secondarySources, CancellationToken token)
at StockSharp.Installer.Installer.DoInstallAsync(InstallerProject project, CancellationToken token)
at StockSharp.Installer.Installer.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.Product.InstallAsync(ProductVersion version, String dir, CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.ExecuteAsync(CancellationToken token)
at StockSharp.Installer.UI.VMPageInstallActions.CmdExecuteAsync()




Thanks:


berg

Avatar
Date: 8/4/2022
Reply


Вышла новая версия. И Installer и все остальные программные модули при установке не доходят до конца процесса, вылетают с окном "ERROR InvalidCastException: Can't convert of type 'System.String' to type 'System.Xml.Linq.XElement'."

Thanks:


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy