Blog module instance settings - error

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.
8/26/2011 10:54:04 AM
Gravatar
Total Posts 133
J

Blog module instance settings - error

I've been trying to work with the blog module but have come accross a problem when trying to set the module instance settings. Whenever I try to access the instance settings link from the icon on the module header in the page I get this error

We're sorry but we could not find the page you are looking for.

The url looks fine and the mid and pageid in the querystring are correct

/Admin/ModuleSettings.aspx?mid=40&pageid=109

I have created and deleted the blog module 3 times now - after the second I noticed that Administrators were set in the site permissions to be NOT allowed to edit feature instance settings. Once I had that changed I thought I had found the problem but the 3rd blog still shows the same problem.

Cheers

J

 

8/26/2011 11:10:07 AM
Gravatar
Total Posts 18439

Re: Blog module instance settings - error

Is it possible that you changed your email address from a different machine/browser but you were still logged in on another machine or browser (perhaps with a persistent cookie)? Then it might cause an error because your cookie says you are authenticated and in allowed edit roles but when it tries to get a SiteUser object it comes back null because your cookie doe snot match the updated user.

The solution is to sign out and then sign in again so that your authentication cookie matches your user.

Hope that helps,

Joe

8/29/2011 4:22:06 AM
Gravatar
Total Posts 133
J

Re: Blog module instance settings - error

Thanks for that Joe but it's not the answer. Same issue in 3 browsers with cache and cookies cleared. Also same issue whether running against IIS6 on my staging deployment - which went really smoothly BTW, or running in VS2010 internal server. Both staging and local copies are running against the same remote database on our live SQL cluster. ModuleSettings.aspx works fine in both when editing the settings HTML content instances.

Should I use different adminlogins in the two environments given they share a database?

Going to try some experiments with other modules.

Cheers

John

MoJo 2.3.6.7
W2003/IIS6 on staging
W7/VS2010 internal server locally
Browsers tested Chrome, FF3.6, IE8

8/29/2011 5:00:29 AM
Gravatar
Total Posts 133
J

Re: Blog module instance settings - error

Found this error trace in currentlog.config

System.Web.HttpException (0x80004005): The file '/Controls/CommentSystems/CommentSystemSetting.ascx' does not exist.
   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.AddSettingControl(CustomModuleSetting s, Panel groupPanel)
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.PopulateCustomSettings()
   at mojoPortal.Web.AdminUI.ModuleSettingsPage.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Occurs at startup - BUT I cannot find any trace of the path /controls/commentsystem anywhere - HG says I am using version 2474 - though as an aside it says next to that that *This is not a head revision* which I don't understand - HG newbie me. ... 

5 mins later Ha! Found from HG the whole comment system branch was deleted - must have been me I guess - so I have restored - of to rebuild and sort it out - then must reread some HG docs ;) 

Sorry for the long rambling post - hopefully will be sorted once I rebuild and redeploy - have no recollection of deleting anything apart from unused skins.

Cheers

J

8/29/2011 5:19:06 AM
Gravatar
Total Posts 133
J

Re: Blog module instance settings - error

Restored the /controls/commentsystems branch and included it in the VS project

Local debug rebuild produces these three errors 

Error 9 The namespace 'mojoPortal.Web.UI' already contains a definition for 'IntenseDebateDiscussion' D:\MoJo\Web\Controls\CommentSystems\IntenseDebateDiscussion.cs 22 18 mojoPortal.Web
Error 10 The namespace 'mojoPortal.Web.UI' already contains a definition for 'IntenseDebateCommentLink' D:\MoJo\Web\Controls\CommentSystems\IntenseDebateCommentLink.cs 22 18 mojoPortal.Web
Error 11 The namespace 'mojoPortal.Web.UI' already contains a definition for 'DisqusWidget' D:\MoJo\Web\Controls\CommentSystems\DisqusWidget.cs 25 18 mojoPortal.Web

Hmm off to do more digging - as you can guess I am fairly new to VS2010 and .NET all previous sites were done in classic asp using a home rolled CMS.

Hope you don't mind me using this forum in 'cardboard consultant' mode - helps keep me thinking straight! ;)

j

8/29/2011 5:49:26 AM
Gravatar
Total Posts 133
J

Re: Blog module instance settings - error

OK original problem now sorted - restoring the /controls/commentsystems but not including the files in the VS project seems to be the answer. Confused as to why including them in the project causes build errors clashes with /captcha/comentsystems but I'm learning. I do have a local .NET expert but he's off on a walking holiday in Slovenia - currently near Lake Vlad - lucky man.

Cheers

J

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