Cannot add a View Presenter to WAP

Topics: Web Client Software Factory, UIP Application Block discussion, User Forum
Jul 3, 2007 at 9:34 PM
It throws a big error as soon as I right click the WAP project and select add View Presenter????
Help!
Thanks
Jordan

Microsoft.Practices.WizardFramework.WizardExecutionException: The wizard failed to execute. The error was:
Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPagePresenter.ValidateFilesNotExist(Object sender, ValidationEventArgs e)
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPagePresenter.OnViewNameChanged(Object sender, ValidationEventArgs e)
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPage.viewNameTextBoxTextChanged(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnTextChanged(EventArgs e)
at System.Windows.Forms.TextBoxBase.OnTextChanged(EventArgs e)
at System.Windows.Forms.Control.set_Text(String value)
at System.Windows.Forms.TextBoxBase.set_Text(String value)
at System.Windows.Forms.TextBox.set_Text(String value)
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPage.ShowViewName(String viewName)
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPagePresenter.OnViewReady()
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPage.InitializePresenterAndModel()
at Microsoft.Practices.WebClientFactory.CustomWizardPages.CreateViewPage.OnLoad(EventArgs e)
at System.Windows.Forms.UserControl.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
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.Form.ShowDialog(IWin32Window owner)
at Microsoft.WizardFramework.WizardForm.Start(IWin32Window parent)
at Microsoft.Practices.WizardFramework.WizardGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(XmlElement data, Boolean allowSuspend)
--- End of inner exception stack trace ---
at Microsoft.Practices.WizardFramework.WizardGatheringService.Microsoft.Practices.Common.Services.IValueGatheringService.Execute(XmlElement data, Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
Jul 4, 2007 at 1:12 AM
Hi Jordan, could you please describe your scenario (OS, if you are using an existing solution, etc)?
This issue happen every time you create a new WAP solution and try to execute the Add View Presenter recipe?

Anyway, you might find useful this post where a guy is having the same problem but with the View-Presenter quickstart. Luciano Panaro provides him a way to solveit.

Let me know if this helps,

Ezequiel Jadib
http://staff.southworks.net/blogs/ejadib