Visual Studio Professional 2022 installer crashes - windows

I've been trying to upgrade to VS Pro 2022 from VS Pro 2019 and have eventually ended up in the position where I have managed to uninstall the older versions whilst the new version crashes on installation.
The dd_installer_XXX.log file concludes with the following exception:
[3cb0:0004][2021-12-03T17:23:35] Telemetry property vs.willow.processtype : ui
[3cb0:0001][2021-12-03T17:23:36] Adding Install Log to Watson=C:\Users\***\AppData\Local\Temp\dd_installer_20211203172335.log
[3cb0:0001][2021-12-03T17:23:38] Error 0x57f50000: Unhandled exception has occurred: System.ComponentModel.Win32Exception (0x80004005): Unknown error (0x57f50000)
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.GetParent(HandleRef hWnd)
at System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
So far I've tried applying all the available Windows updates and am now on Win 10 version 20H2 OS Build 19042.1387. I've also tried uninstalling all Visual Studio components and deleting the Microsoft Visual Studio folder from the program files directory and prior to that running InstallCleanup.exe. The device is a Lenovo ThinkPad T480.
Has anyone else had problems like this and been able to resolve them? My next port of call is to ask the service desk if it's possible to get McAfee disabled during the installation process as that's a piece of software I don't particularly trust...

Worked with our service desk to disable the McAfee AV but the installer still crashed. It seems likely that it is related to this:
https://developercommunity.visualstudio.com/t/visual-studio-2022-installation-fails-because-of-m/1578946
Eventually we were able to work around this problem by using Chocolatey to install the program from here: https://community.chocolatey.org/packages/visualstudio2022professional

Related

SQLite app gives AccessViolation on new SQLiteConnection Windows 10 v 20H2

Sqlite crashes on SqliteConnecion
I have an application that uses Sqlite. I has been working perfectly for a couple of year.
I'm using Nuget System.Data.SQLite.Core 1.0.113.7
I tried to run it and i get this exception.
System.AccessViolationException HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an
indication that other memory is corrupt. Source= StackTrace:
The exception occurs in the
public static string DbFile
{
get { return Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + "\\Foo\\Bar" + "\\Order.db"; }
}
public static SQLiteConnection OrderDbConnection()
{
try
{
var db = $"Data Source={DbFile};Version=3;";
return new SQLiteConnection(db);
}
catch (Exception ex)
{
var m = ex.Message;
throw;
}
}
on the line return new SQLiteConnection(db);
I'm using
Visual Studio 2017 version 15.9.35
.NET Framework 4.7.2
Edition Windows 10 Pro
Version 20H2
Installed on ‎2020-‎11-‎05
OS build 19042.928
Experience Windows Feature Experience Pack 120.2212.551.0
I just tried the application on windows 10 version 1909 and there it works!
Has anyone any idea on what could be wrong?
EDIT: Add Exception from Event Viewer
Application: DCMatrix.exe Framework Version: v4.0.30319 Description:
The process was terminated due to an unhandled exception. Exception
Info: System.AccessViolationException at
System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(System.Data.SQLite.SQLiteConfigOpsEnum)
at System.Data.SQLite.SQLite3.StaticIsInitialized() at
System.Data.SQLite.SQLiteLog.Initialize(System.String) at
System.Data.SQLite.SQLiteConnection..ctor(System.String, Boolean)
at System.Data.SQLite.SQLiteConnection..ctor(System.String) at
AbortedOrderDatabase.SqLiteBaseRepository.OrderDbConnection() at
AbortedOrderDatabase.SqLiteOrderRepository.IsOrderDone(System.String)
at DCMatrix.Workflow.IsOrderDone(System.String) at
DCMatrix.Workflow.GetOrder(System.String, Boolean ByRef, Boolean
ByRef) at DCMatrix.ViewMainWindow.DoLoadDataCommand() at
DCMatrix.ViewMainWindow.<get_LoadDataCommand>b__21_1(System.Object)
at DCMatrix.RelayCommand.Execute(System.Object) at
System.Windows.Input.CommandManager.TranslateInput(System.Windows.IInputElement,
System.Windows.Input.InputEventArgs) at
System.Windows.UIElement.OnKeyDownThunk(System.Object,
System.Windows.Input.KeyEventArgs) at
System.Windows.Input.KeyEventArgs.InvokeEventHandler(System.Delegate,
System.Object) at
System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate,
System.Object) at
System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object,
System.Windows.RoutedEventArgs) at
System.Windows.EventRoute.InvokeHandlersImpl(System.Object,
System.Windows.RoutedEventArgs, Boolean) at
System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject,
System.Windows.RoutedEventArgs) at
System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs,
Boolean) at System.Windows.Input.InputManager.ProcessStagingArea()
at
System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at
System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
at
System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr,
System.Windows.Input.InputMode, Int32,
System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean,
Int32) at
System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG
ByRef, Boolean ByRef) at
System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG
ByRef, System.Windows.Input.ModifierKeys) at
System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
at
System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate,
System.Object, Int32) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object,
System.Delegate, System.Object, Int32, System.Delegate) at
System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority,
System.TimeSpan, System.Delegate, System.Object, Int32) at
System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority,
System.Delegate, System.Object) at
System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG
ByRef, Boolean ByRef) at
System.Windows.Interop.HwndSource+WeakEventPreprocessMessage.OnPreprocessMessage(System.Windows.Interop.MSG
ByRef, Boolean ByRef) at
System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG
ByRef) at
System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at
System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object) at
System.Windows.Application.RunInternal(System.Windows.Window) at
System.Windows.Application.Run(System.Windows.Window) at
System.Windows.Application.Run() at DCMatrix.App.Main()
EDIT 2 Exception and Stack Trace
System.AccessViolationException HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an
indication that other memory is corrupt. Source= StackTrace:
" at
System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum
op) at System.Data.SQLite.SQLite3.StaticIsInitialized() at
System.Data.SQLite.SQLiteLog.Initialize(String className) at
System.Data.SQLite.SQLiteConnection..ctor(String connectionString,
Boolean parseViaFramework) at
System.Data.SQLite.SQLiteConnection..ctor(String connectionString)
at AbortedOrderDatabase.SqLiteBaseRepository.OrderDbConnection() in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\OrderDatabase\SqLiteBaseRepository.cs:line 23"
EDIT 3 Enabled Native Code Debugging
Exception thrown at 0x776388E3 (ntdll.dll) in DCMatrix.exe:
0xC0000005: Access violation writing location 0x0044005C. occurred
System.AccessViolationException HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an
indication that other memory is corrupt. Source= StackTrace:
" at
System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum
op) at System.Data.SQLite.SQLite3.StaticIsInitialized() at
System.Data.SQLite.SQLiteLog.Initialize(String className) at
System.Data.SQLite.SQLiteConnection..ctor(String connectionString,
Boolean parseViaFramework) at
System.Data.SQLite.SQLiteConnection..ctor(String connectionString)
at AbortedOrderDatabase.SqLiteBaseRepository.OrderDbConnection() in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\OrderDatabase\SqLiteBaseRepository.cs:line 23 at
AbortedOrderDatabase.SqLiteOrderRepository.IsOrderDone(String mo) in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\OrderDatabase\SqLiteOrderRepository.cs:line 57 at
DCMatrix.Workflow.IsOrderDone(String mo) in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\DCMarker\Workflow.cs:line 977 at
DCMatrix.Workflow.GetOrder(String tvnr, Boolean& isAbortedOrder,
Boolean& isOrderDone) in E:\Users\ame\source\repos\Seco
Tools\DCMatrix\DCMarker\Workflow.cs:line 920 at
DCMatrix.ViewMainWindow.DoLoadDataCommand() in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\DCMarker\CommandMainWindow.cs:line 244 at
DCMatrix.ViewMainWindow.<get_LoadDataCommand>b__21_1(Object p) in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\DCMarker\CommandMainWindow.cs:line 122 at
DCMatrix.RelayCommand.Execute(Object parameter) in
E:\Users\ame\source\repos\Seco
Tools\DCMatrix\DCMarker\RelayCommand.cs:line 34 at
System.Windows.Input.CommandManager.TranslateInput(IInputElement
targetElement, InputEventArgs inputEventArgs) at
System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e)
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate
genericHandler, Object genericTarget) at
System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object
target) at
System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target,
RoutedEventArgs routedEventArgs) at
System.Windows.EventRoute.InvokeHandlersImpl(Object source,
RoutedEventArgs args, Boolean reRaised) at
System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,
RoutedEventArgs args) at
System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) at
System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean
trusted) at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs
input) at
System.Windows.Input.InputProviderSite.ReportInput(InputReport
inputReport) at
System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr
hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions,
Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32
virtualKey) at
System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG&
msg, Boolean& handled) at
System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG&
msg, ModifierKeys modifiers) at
System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate
callback, Object args, Int32 numArgs) at
System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,
Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at
System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority
priority, TimeSpan timeout, Delegate method, Object args, Int32
numArgs) at
System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority
priority, Delegate method, Object arg) at
System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg,
Boolean& handled) at
System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG&
msg, Boolean& handled) at
System.Windows.Interop.ThreadMessageEventHandler.Invoke(MSG& msg,
Boolean& handled) at
System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG&
msg) at
System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame
frame) at
System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore) at
System.Windows.Application.RunInternal(Window window) at
System.Windows.Application.Run(Window window) at
System.Windows.Application.Run() at DCMatrix.App.Main()"

Visual Studio 2010 - Datagridview Search Function with textbox

I'm a beginner when it comes to coding on visual studio 2010, but I'm really enjoying it!
My end goal is to have a textbox that you put in text and it searches and selects the row that has that information.
This is the code I have so far:
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
Dim temp As Integer = 0
Dim gv As Object
gv = Me.End2End_Master_QueryDataGridView
For i As Integer = 0 To gv.RowCount - 1
For j As Integer = 0 To gv.ColumnCount - 1
If gv.Rows(i).Cells(j).Value.ToString = Me.TextBox1.Text Then
MsgBox("Item found")
temp = 1
End If
Next
Next
If temp = 0 Then
MsgBox("Item not found")
End If
End Sub
I get a "NullReferenceException was unhandled" but it does find the item.
It also doesn't select that row because I'm not show on the correct code for this.
I am a beginner, and will need help in explanation's for some issues.
Please help!
Edit: This is the details of the exception:
System.NullReferenceException was unhandled
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=WindowsApplication1
StackTrace:
at WindowsApplication1.Form1.Button5_Click(Object sender, EventArgs e) in ******\Form1.vb:line 39
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at system.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at WindowsApplication1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Release Management for Visual Studio 2013 - Error When Selecting New Release

Getting an exception when selecting a Release Template and choosing "New Release" on "Configure Apps" tab of RM for Visual Studio 2013 Client.
After clicking "New Release" a pop-up appears in the lower right corner of the screen with "Unhandled Exception" and red stop sign. Looking through Event Viewer, below is the stack trace.
Anyone else encountering the same error?
The only step in the Release Template is to copy files to a DEV server on the same subnet.
Message: The remote server returned an error: (500) Internal Server Error.: \r\n\r\n at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.Release.Data.WebRequest.PlatformHttpClient.EndGetResponse(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClientResponseRetriever.EndGetAsyncMemoryStreamFromResponse(IAsyncResult asyncResult, IPlatformHttpClient platformHttpClient)
at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClientResponseRetriever.EndDownloadString(IAsyncResult asyncResult, IPlatformHttpClient platformHttpClient)
at Microsoft.TeamFoundation.Release.Data.WebRequest.RestClient.EndPost(IAsyncResult asyncResult)
at Microsoft.TeamFoundation.Release.Data.Proxy.RestProxy.HttpRequestor.<>c__DisplayClass1.<GetPostCaller>b__0(String url, String body)
at Microsoft.TeamFoundation.Release.Data.Proxy.RestProxy.BaseDeploymentControllerServiceProxy.PopulateTaggedActivities(String workflowXml, Int32 environmentId)
at Microsoft.TeamFoundation.Release.Data.Model.Release.BuildReleaseStages(ReleasePath selectedReleasePath, XElement applicationVersion)
at Microsoft.TeamFoundation.Release.Data.Model.Release.BringDataFromApplicationVersion()
at Microsoft.TeamFoundation.Release.Data.Model.Release.OnPropertyChanged(String propertyName, Boolean setDirty)
at Microsoft.TeamFoundation.Release.Data.Model.PropertyChangedBase.OnPropertyChanged(String propertyName)
at Microsoft.TeamFoundation.Release.Data.Model.Release.set_ApplicationVersionId(Int32 value)
at Microsoft.VisualStudio.Release.ViewModel.ViewModels.ReleaseViewModel.Initialize(Int32 modelId)
at Microsoft.VisualStudio.Release.ViewModel.ViewModels.ReleaseViewModel..ctor(String viewMode, Dictionary`2 popupParameters)
at Microsoft.VisualStudio.Release.ViewModel.ViewModels.ApplicationVersionsViewModel.CreateNewRelease(Int32 releaseTemplateId)
at Microsoft.VisualStudio.Release.ViewModel.ViewModels.ApplicationVersionsViewModel.CreateRelease(XElement selectedItem)
at Microsoft.VisualStudio.Release.ViewModel.ViewModels.ApplicationVersionsViewModel.CreateNewRelease(Object selectedItems)
at Microsoft.VisualStudio.Release.ViewModel.Helpers.RelayCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Category: General
Priority: -1
EventId: 0
Severity: Error
Issue was permissions related. Fixed by adding AD computer name in Release Management server users.

CRM 2013 Plugin Registration Connection Error: Unable to connect to the CRM Organization

I am using Plugin Registration Tool in CRM SDK 2013. When creating new connection to CRM 2013 Online, I get the error: "Unable to connect to the CRM Organization". The details is as below:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Xrm.Tooling.CrmConnectControl.CrmServerLoginControl.StartConnectCheck()
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Microsoft.Crm.Tools.PluginRegistration.MainViewModel.CreateConnections()
The error shows even when I click Login without username and password.
I tried deleting LiveDevice.xml and LiveDeviceID.xml in C:\Users\\LiveDeviceID folder, but it's no use.
Any idea or workaround is appreciated. Thanks in advance!
UPDATE: I tried registration tool in SDK 2011, somehow it can connect successfully. However, I can't debug my plugins because of datacontract parsing, I can only register/unregister plugins.
Ok i got this working by deleting the following AppData folder as I getting an access denied error in the pluginregistration tool log file. C:\Users{username}\AppData\Roaming\Microsoft\PluginRegistration.
The error message is specific to the failure to find the organization that you are connecting to. Please double check with the discovery URL for your CRM online instance under Settings > Customizations > Developer Resources
For CRM Online 2013, it would be 'https://disco.crm.dynamics.com' and not 'https://orgname.crm.dynamics.com'
I've had a similar problem with my plugin registration tool... Upgrading to the newest version worked for me.
http://www.microsoft.com/en-us/download/details.aspx?id=40321

MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData

I am getting an error "Value does not fall within the expected range". The stacktrace is given below. Please help...
at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
at MS.Internal.XcpImports.MethodPack(IntPtr objectPtr, String methodName, Object[] rawData)
at MS.Internal.XcpImports.UIElement_TransformToVisual(UIElement element, UIElement visual)
at Microsoft.Phone.Controls.Pivot.ReleaseMouseCaptureAtGestureOrigin()
at Microsoft.Phone.Controls.Pivot.OnManipulationDelta(Object sender, ManipulationDeltaEventArgs args)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
Might be you are trying to access main thread object or UI thread object in a asynchronous function.because asynchronous function's thread has lower priority so you cant access the main thread object from here..

Resources