MemberList.aspx page error

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/14/2012 7:42:49 AM
Gravatar
Total Posts 50

MemberList.aspx page error

Hi again, 

i have built using the latest version, using the 4.0 framework and MSsql 2008

when trying to access some of the admin pages i get an error page.

this is what appears in the log:

2012-06-14 06:33:17,611 ERROR {ipaddress} - en-US - /MemberList.aspx - mojoPortal.Web.Global - {ipaddress} /MemberList.aspx Referrer(http://mywebsite.com/Admin/ServerLog.aspx) useragent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
System.Web.HttpParseException (0x80004005): The base class includes the field 'divNewUser', but its type (System.Web.UI.WebControls.Panel) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl).
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse)
   at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers()
   at System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree()
   at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath)
   at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder)
   at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)

 

any ideas why ?

6/14/2012 8:05:29 AM
Gravatar
Total Posts 18439

Re: MemberList.aspx page error

Hi,

The control divNewUser was changed recently from a genericHtml control to asp:Panel, but it is declared correctly in MemberList.aspx.designer.cs

So all I can guess is a deployment error like the latest version of the MemberList.aspx file was not deployed so it does not match the code.

I would make sure you have the latest code, rebuild the solution and make sure you deploy all the files.

Hope that helps,

Joe

6/14/2012 2:57:15 PM
Gravatar
Total Posts 50

Re: MemberList.aspx page error

Hi Joe, Thanks for helping,

your guess was good, there was an older project that i had copy the memberlist.aspx to the web folder.

so i made sure i had the latest version, rebuilt it and setup the whole web site from scratch with out my old project.

im now getting this error....

 

 

2012-06-14 13:50:58,689 ERROR mojoPortal.Web.mojoBasePage - ipaddress-en-US - /MemberList.aspx
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.UI.Pages.MemberList.OnInit(EventArgs e) in C:\\dev\mojoportal-dev2\Web\MemberList.aspx.cs:line 54
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2012-06-14 13:50:58,720 ERROR mojoPortal.Web.Global - ipaddress-en-US - /MemberList.aspx- Referrer(http://website.com/Admin/ServerLog.aspx)
System.NullReferenceException: Object reference not set to an instance of an object.
   at mojoPortal.Web.UI.Pages.MemberList.OnInit(EventArgs e) in C:\\dev\mojoportal-dev2\Web\MemberList.aspx.cs:line 54
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

6/15/2012 1:15:19 PM
Gravatar
Total Posts 18439

Re: MemberList.aspx page error

Something is still out of sync between your .aspx file and the code in the dll

There is nothing in OnInit except code that wires up button click events, this error sounds like the button must be missing in your copy of the .aspx file

6/16/2012 4:44:48 AM
Gravatar
Total Posts 50

Re: MemberList.aspx page error

ok, i just re-downloaded the latest source directly (not using the TortoiseHG clone method), rebuilt the solution and it seems to work.

not sure if the clone was downloading an old version or i had some file copied or cached....

now the i have the latest source, can i use  TortoiseHG to synch changes to that folder ?

 

thanks again for all your help

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