Controls Not Appearing

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.
12/30/2011 1:22:59 PM
Gravatar
Total Posts 148

Controls Not Appearing

Hi:

I am trying to install a control in a mojoPortal website hosted in IIS 7.5 on Web Server 2008 R2.  I can install controls on the Default.aspx  page but not on any new pages I create. The control is tested inside Visual Studio to confirm it is stable. I can use it on pages inside Visual Studio, so I know the control is working.  I even created a much simpler control that has a button and textbox.  This "simple" control won't install either.

 

1/1/2012 7:53:58 AM
Gravatar
Total Posts 18439

Re: Controls Not Appearing

check the mojoPortal log for related errors

When you say you put it on Default.aspx it makes me think you are using Default.aspx as a friendly url which you should not be doing. Default.aspx serves all CMS pages (ie pages in the main menu) so it should never be used as a friendly url for any page.

See How mojoPortal Works

Hope that helps,

Joe

1/3/2012 10:01:05 AM
Gravatar
Total Posts 148

Re: Controls Not Appearing

Hi:

 

I create a page. Say this page is http://localhost:50/MyPage/Default.aspx  If I try to install a control to that page, it doesn't appear. No matter how many controls I add to the page, even small test controls, won't show up. One of my test controls includes a text box with a button and when I click the button something appears in the textbox.  A control that clearly only uses .NET dlls. to accomplish. I thought it was a permissions issue but I allowed every permission possible to the directories that store these controls.  The only success I have had is to install a menu at the top of the http://localhost:50/Default.aspx page. This is the only control that shows up for the entire site. My menu uses a .sitemap file to accomplish it's work.  The .sitemap file is name mysitemap.sitemap, so I don't think it is interfering with any other .sitemap files. But, this control is the only control that is working.  I'm confused why I can't install anything else.

1/3/2012 10:11:50 AM
Gravatar
Total Posts 18439

Re: Controls Not Appearing

Hi,

My advice is set breakpoints and step through the code to see what is happening or not happening.

Also urls with extra segments like /MyPage/Default.aspx are not supported for CMS pages in mojoPortal as discussed in this article.

If that is a physical page in a folder named MyPage rather than a CMS page it is ok but it is not supported to use extra segments in the url of CMS pages. I assume you are talking about a CMS page since you mention installing the control it sounds like you are using it as a CMS plugin in a CMS page.

Hope that helps,

Joe

1/3/2012 10:37:46 AM
Gravatar
Total Posts 148

Re: Controls Not Appearing

Hi:

 

I understand your point about mojoPortal not allowing this page (http://localhost/MyPage/Default.aspx) type but why does everything work perfectly (well, close to perfect) inside Visual Studio 2010?

1/3/2012 10:48:08 AM
Gravatar
Total Posts 18439

Re: Controls Not Appearing

I did not say it never works to use urls like that I said it is not supported, meaning  I do not provide support for it and mojoPortal was not designed for that and I can't promise it will continue working if it does happen to work in some cases. 

I'm not sure but possibly it is a factor in your control not loading, I would try using your control on pages without extra segments in the url.

1/3/2012 11:25:33 AM
Gravatar
Total Posts 148

Re: Controls Not Appearing

Hi:

 

I copied over a current dll to my project and now the controls are working.  I know I had a current dll there because I copied over the entire project at the same time.  I suspect IIS 7.5 was not loading my dll correctly initially and when I changed it, IIS noticed a change and loaded it correctly. But, whatever the cause, the controls are working now.

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