Creating new smart client C# Project causes the visual studio to crash.
Environment:
- Windows 8 64
- Visual Studio 2012 Update 1
The same issue occurs when creating event publication and even subscription for existing smart client projects
I found the following information in the Event viewer
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.CreateDefaultContainer(Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()
at Microsoft.Practices.EnterpriseLibrary.Validation.ValidationFactory.get_DefaultCompositeValidatorFactory()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesModel.get_IsValid()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPagePresenter.OnValidating(System.Object, Microsoft.Practices.RecipeFramework.Extensions.EventArgs`1<Boolean>)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.get_IsDataValid()
at Microsoft.WizardFramework.WizardForm.ShouldEnableNextButton(Microsoft.WizardFramework.WizardPage)
at Microsoft.WizardFramework.WizardForm.EnableNavigationButtons()
at Microsoft.WizardFramework.WizardForm.OnValidationStateChanged(Microsoft.WizardFramework.WizardPage)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.OnSupportingLibrariesTextChanged(System.Object, System.EventArgs)
at System.Windows.Forms.Control.OnTextChanged(System.EventArgs)
at System.Windows.Forms.TextBoxBase.OnTextChanged(System.EventArgs)
at System.Windows.Forms.Control.set_Text(System.String)
at System.Windows.Forms.TextBoxBase.set_Text(System.String)
at System.Windows.Forms.TextBox.set_Text(System.String)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.ShowSupportLibrariesPath(System.String)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPagePresenter.OnViewReady()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.InitializePresenterAndModel()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.OnLoad(System.EventArgs)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Form.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(System.Runtime.InteropServices.HandleRef, Int32)
at System.Windows.Forms.Control.SetVisibleCore(Boolean)
at System.Windows.Forms.Form.SetVisibleCore(Boolean)
at System.Windows.Forms.Control.set_Visible(Boolean)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
at Microsoft.WizardFramework.WizardForm.Start(System.Windows.Forms.IWin32Window)
at Microsoft.Practices.WizardFramework.WizardGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(System.Xml.XmlElement, Boolean)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(System.Xml.XmlElement, Boolean)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(System.String, Microsoft.Practices.RecipeFramework.IAssetReference, System.Collections.IDictionary)
at Microsoft.Practices.RecipeFramework.GuidancePackage.ExecuteFromTemplate(System.String, System.Collections.IDictionary)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunStarted(System.Object, System.Collections.Generic.Dictionary`2<System.String,System.String>, Microsoft.VisualStudio.TemplateWizard.WizardRunKind, System.Object[])
at Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(System.Object, Int32, System.Object[] ByRef, System.Object[] ByRef, EnvDTE.wizardResult ByRef)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VszWizard.EnvDTE.IDTWizard.Execute(System.Object, Int32, System.Object[] ByRef, System.Object[] ByRef, EnvDTE.wizardResult ByRef)
at EnvDTE100.Solution4.AddFromTemplateEx(System.String, System.String, System.String, System.String, Boolean, UInt32)
at Microsoft.VisualStudio.Dialogs.ServiceHelper.AddProjectFromSelectedTemplate(Microsoft.VisualStudio.Dialogs.INewProjectDialogData, System.String, Boolean)
at Microsoft.VisualStudio.Dialogs.SVsDialogService.CreateProject(Microsoft.VisualStudio.Dialogs.INewProjectDialogData)
at Microsoft.VisualStudio.Dialogs.SVsDialogService.InvokeDialog(Microsoft.Internal.VisualStudio.Shell.Interop.VSNEWPROJECTDLGINFO, System.String ByRef)
Comments: My configuration is VS2012 without Update on Win7 64-Bit. Everything works well there, including add event subsription. On my new Machine (Win7 64-Bit, VS2012 Update2) it doesn't work at all and also got feedback about it. Trying to track it down for VS2012 Update2...
Environment:
- Windows 8 64
- Visual Studio 2012 Update 1
The same issue occurs when creating event publication and even subscription for existing smart client projects
I found the following information in the Event viewer
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.CreateDefaultContainer(Microsoft.Practices.EnterpriseLibrary.Common.Configuration.IConfigurationSource)
at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.EnterpriseLibraryContainer.SetCurrentContainerIfNotSet()
at Microsoft.Practices.EnterpriseLibrary.Validation.ValidationFactory.get_DefaultCompositeValidatorFactory()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesModel.get_IsValid()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPagePresenter.OnValidating(System.Object, Microsoft.Practices.RecipeFramework.Extensions.EventArgs`1<Boolean>)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.get_IsDataValid()
at Microsoft.WizardFramework.WizardForm.ShouldEnableNextButton(Microsoft.WizardFramework.WizardPage)
at Microsoft.WizardFramework.WizardForm.EnableNavigationButtons()
at Microsoft.WizardFramework.WizardForm.OnValidationStateChanged(Microsoft.WizardFramework.WizardPage)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.OnSupportingLibrariesTextChanged(System.Object, System.EventArgs)
at System.Windows.Forms.Control.OnTextChanged(System.EventArgs)
at System.Windows.Forms.TextBoxBase.OnTextChanged(System.EventArgs)
at System.Windows.Forms.Control.set_Text(System.String)
at System.Windows.Forms.TextBoxBase.set_Text(System.String)
at System.Windows.Forms.TextBox.set_Text(System.String)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.ShowSupportLibrariesPath(System.String)
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPagePresenter.OnViewReady()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.InitializePresenterAndModel()
at Microsoft.Practices.SmartClientFactory.CustomWizardPages.SolutionPropertiesPage.OnLoad(System.EventArgs)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl(Boolean)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Form.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Form.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(System.Runtime.InteropServices.HandleRef, Int32)
at System.Windows.Forms.Control.SetVisibleCore(Boolean)
at System.Windows.Forms.Form.SetVisibleCore(Boolean)
at System.Windows.Forms.Control.set_Visible(Boolean)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
at Microsoft.WizardFramework.WizardForm.Start(System.Windows.Forms.IWin32Window)
at Microsoft.Practices.WizardFramework.WizardGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(System.Xml.XmlElement, Boolean)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(System.Xml.XmlElement, Boolean)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(System.String, Microsoft.Practices.RecipeFramework.IAssetReference, System.Collections.IDictionary)
at Microsoft.Practices.RecipeFramework.GuidancePackage.ExecuteFromTemplate(System.String, System.Collections.IDictionary)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunStarted(System.Object, System.Collections.Generic.Dictionary`2<System.String,System.String>, Microsoft.VisualStudio.TemplateWizard.WizardRunKind, System.Object[])
at Microsoft.VisualStudio.TemplateWizard.Wizard.Execute(System.Object, Int32, System.Object[] ByRef, System.Object[] ByRef, EnvDTE.wizardResult ByRef)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VszWizard.EnvDTE.IDTWizard.Execute(System.Object, Int32, System.Object[] ByRef, System.Object[] ByRef, EnvDTE.wizardResult ByRef)
at EnvDTE100.Solution4.AddFromTemplateEx(System.String, System.String, System.String, System.String, Boolean, UInt32)
at Microsoft.VisualStudio.Dialogs.ServiceHelper.AddProjectFromSelectedTemplate(Microsoft.VisualStudio.Dialogs.INewProjectDialogData, System.String, Boolean)
at Microsoft.VisualStudio.Dialogs.SVsDialogService.CreateProject(Microsoft.VisualStudio.Dialogs.INewProjectDialogData)
at Microsoft.VisualStudio.Dialogs.SVsDialogService.InvokeDialog(Microsoft.Internal.VisualStudio.Shell.Interop.VSNEWPROJECTDLGINFO, System.String ByRef)
Comments: My configuration is VS2012 without Update on Win7 64-Bit. Everything works well there, including add event subsription. On my new Machine (Win7 64-Bit, VS2012 Update2) it doesn't work at all and also got feedback about it. Trying to track it down for VS2012 Update2...