question

ilyasvarol-0502 avatar image
4 Votes"
ilyasvarol-0502 asked ilyasvarol-0502 action

Visual Studio Installer doesn't open

I want to install VS 2019 Pro on my computer but VS 2019 doesn't open. I see this error in windows event viewer

 Error Information
 AppInsightsEvent Name = vs/setupengine/fault
           Description = Application failed with an uncaught exception: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
      TelemetrySession = 'ec253d91-3714-4619-9d9d-126ec43138e9' Started = True OptIn=True IsInitialized = True Cloned = True
       WatsonEventType = VisualStudioNonFatalErrors2
              UTC time = 2021-03-15T10:43:59
    
  Exception:
  System.Xml.XmlException
  '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
  System.Xml.XmlTextReaderImpl.Throw(Exception e)
  System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
  System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
  System.Xml.XmlTextReaderImpl.ParseDocumentContent()
  System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
  System.Xml.XmlDocument.Load(XmlReader reader)
  SharpVectors.Dom.Css.CssXmlDocument.Load(XmlReader reader)
  SharpVectors.Dom.Svg.SvgDocument.Load(Stream inStream)
  SharpVectors.Renderers.Utils.WpfSvgWindow.LoadDocument(Stream documentStream)
  Microsoft.VisualStudio.Setup.Installer.Converters.SvgStringToDrawingConverter.ConvertTo(Object value, Object parameter, CultureInfo culture)
  Microsoft.VisualStudio.Setup.Installer.Converters.ValueConverter`3.Convert(Object value, Type targetType, Object parameter, CultureInfo culture)
  System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
  System.Windows.Data.BindingExpression.Activate(Object item)
  System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
  System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
  MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
  MS.Internal.Data.DataBindEngine.Run(Object arg)
  System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
  System.Windows.ContextLayoutManager.UpdateLayout()
  System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
  System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
  System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
  System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
  System.Windows.Threading.DispatcherOperation.InvokeImpl()
  System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
  System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
  MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
  System.Windows.Threading.DispatcherOperation.Invoke()
  System.Windows.Threading.Dispatcher.ProcessQueue()
  System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
  MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
  System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
  System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
  MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
  MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
  System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
  System.Windows.Application.RunDispatcher(Object ignore)
  System.Windows.Application.RunInternal(Window window)
  Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.Microsoft.VisualStudio.Setup.Installer.IApplication.Run()
  Microsoft.VisualStudio.Setup.Installer.Program.ExecuteInternal(IServiceContainer services, ICommandLineParserResult`1 parserResult, ITelemetry telemetry, ILogger logger)
 WerReportAddDump PID=3896 setup WerDumpTypeMiniDump
vs-generalvs-setup
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CuongPhamNgoc-5770 avatar image
1 Vote"
CuongPhamNgoc-5770 answered CuongPhamNgoc-5770 commented

I got same problem and unable to update my visual studio or new install. The error log was attached.


88186-errorinformation.txt



· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi CuongPhamNgoc-5770 , you can remove the folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer. Then, re-download the bootstrapper file from the following Microsoft Site and run it as administrator to check if it works for you.
https://visualstudio.microsoft.com/downloads/

0 Votes 0 ·

For me this did not help, the same error is occurring after the installer is redownloaded. When I delete installer directory in AppData it starts, but the installation state is lost at that point, so it does not see installed Visual Studios.

0 Votes 0 ·

Already tried and didn't work. The installer crash silently with the same error log.

0 Votes 0 ·