controls not rendering in design mode

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.
11/14/2009 4:19:07 PM
Gravatar
Total Posts 70

controls not rendering in design mode

Controls not rendering in design time

Hello all !!!! I'm just starting out with Mojoportal (and same thing with dot.net it self) and I'm probally doing something wrong here. I have a svn project set up, with all the source, I got it running, can build it, can add to it .... But when I'm in vs2008 design of aspx the controls dont render. The message says: "Error Rendering Control XXXXXX. An unhandled exception has ocurred. Method not found: 'xxxxxxxxxxxxxxxxxxxxxx'. I get this message in every single control that is rendered (.... well.. not rendered).

It also takes a "long" time to load the toolbox itens when I first go to design in vs2008. 

Any clues? Im really lost here ... for 2 days already :( Any help would be appreciated.... thanks in advance.

Bruno Motta

 

11/14/2009 4:39:34 PM
Gravatar
Total Posts 70

Re: controls not rendering in design mode

Things getting better. After a clean up and new SVN download, the message shows the same method every time... 

"mojoportal.Business.SiteSettings mojoportal.Business.WebHelpers.CacheHelper.GetCurrentSiteSettings()"

I'll dig arround a little more.

11/14/2009 5:15:27 PM
Gravatar
Total Posts 70

Re: controls not rendering in design mode

Guess what ?!?!?!?!?

Everything went back to normal !!!!! Just disabled 2 addons to get it working again: ReSharper 4.5 and Galio, rebooted and re-eneabled them. Well... I guess that's microsoft way of doing things :) I need to get used to it. Thank's every1 anyways. 

11/15/2009 7:12:26 AM
Gravatar
Total Posts 18439

Re: controls not rendering in design mode

Hi,

It would not surprise me if there are places in mojoPortal where using design view would have errors in the designer. I have from time to time seen these or people have reported them and from time to time I have fixed them. If you tell me specific controls or pages where you see this I will try to fix them.

However, the reason these issues creep in from time to time is because I don't use the designer at all nor do I drag and drop to create controls or pages, therefore I never notice these issues. The designer in visual studio is pretty limited under the best conditions but it does not work well with mojoPortal in general even when there are no errors, the designer will not render the same as it will render at runtime. This has everything to do with the fact that the skin/css used is determined by the skin setting on the SiteSettings object which can be resolved at runtime but not at design time because there is no http context or web request at design time.

Best,

Joe

11/15/2009 1:54:33 PM
Gravatar
Total Posts 70

Re: controls not rendering in design mode

(well ... at least, not in DotNet)Thanks for your feedback Joe !!! 

I'll keep my eyes open for the design errors ... but what I will really do is try to follow your "way of doing things" ..... I hate VS design and will try to stay away of it :)

PS: A big THANK YOU for mojoPortal. No other CMS (at least not a DotNet CMS) can carry out that much OOA and OOD principles while still working like a charm  !!!!

11/16/2009 6:27:06 AM
Gravatar
Total Posts 18439

Re: controls not rendering in design mode

The intellisense in source view is what I rely on, I just type <asp: and then intellisense makes it easy to find the controls and properties of interest.

But, fyi, I poked around a bit in design view and found where the ModuleTitle control was breaking design view in some places and was able to fix it. If you do svn update and rebuild it will have the latest fixes. If you do see any others let me know, I would prefer to not have errors in any design views, I just fail to notice them because I so seldom even look at design view.

Best,

Joe

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