Debugging Features.UI in Visual Web Developer Express 2010

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
7/6/2011 1:47:58 AM
Gravatar
Total Posts 10

Debugging Features.UI in Visual Web Developer Express 2010

Hi,

I have successfully updated an old VS2008 version of mojoPortal to the latest codeset for VS2010 (.net 4.0)

I have a page that contains the ContactForm feature however it is returning an error when navigating to the page.  The error is below:

Is there some way I can debug into Features.UI.. currently when I set a breakpoint the IDE tells me there are no symbols available for the document.

Thanks in advance,

Chris

 

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   mojoPortal.Web.ContactUI.ContactForm.PopulateControls() +89
   mojoPortal.Web.ContactUI.ContactForm.Page_Load(Object sender, EventArgs e) +56
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

7/6/2011 2:05:05 AM
Gravatar
Total Posts 10

Re: Debugging Features.UI in Visual Web Developer Express 2010

Ok, that's wierd.

I noticed that the debug file ("pdb") was not being copied across in the post-build events for the Features.UI project, so I added it.  And not I can navigate and use the ContactForum without an error... what the??

I can also debug it now, but it appears to be working so there is no point :S 

Very annoying.

You must sign in to post in the forums. This thread is closed to new posts.