Open Default.aspx in design mode by visual studio 2010 is error

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
5/27/2011 2:44:04 AM
Gravatar
Total Posts 9

Open Default.aspx in design mode by visual studio 2010 is error

I have errors with visual studio 2010.

My mojoportal version is 2.3.6.6 with .net 4.0

I opened source code project by visual studio 2010, then I opened Default.aspx file in design mode. I encountered the following error

Error Creating Control - pageEditContent Object reference not set to an instance of an object

Error Creating Control - leftContent Object reference not set to an instance of an object

Error Creating Control - mainContent Object reference not set to an instance of an object

Error Creating Control - rightContent Object reference not set to an instance of an object

  details follow the link below

http://tuananh.dyndns-home.com/mojoportal-visual-studio-2010.aspx

I have checked Layout.master, Default.aspx carefully. I don't fixed this error.

Please help me

5/27/2011 9:49:08 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Open Default.aspx in design mode by visual studio 2010 is error

This issue is common with the VS designer mode and MasterPages with custom controls. It does not mean anything is wrong, just the designer cannot visually render the controls. You best bet would be to use the source view. The designer in VS does not offer a good representation of layout anyhow.

I know that Joe has mentioned this in the past and he was able to make some changes, but he would have to address that.

5/27/2011 1:36:17 PM
Gravatar
Total Posts 18439

Re: Open Default.aspx in design mode by visual studio 2010 is error

Aaron is correct that the VS designer is fairly worthless to begin with, even more so in mojoPortal because of the way we support multiple sites and multiple skins and the way the location of skin files are determined differently at runtime than at design time in VS. I never use the designer in VS myself.

That said, I don't get any errors in design view on Default.aspx. Your screen shot looks like it shows your custom pages from your custom feature, and on the right side it shows the mojoPortal.Web project as unavailable which would account for the errors.

Best,

Joe

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