Error after updating to latest version

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/25/2008 5:36:16 AM
Gravatar
Total Posts 72

Error after updating to latest version

Uploaded all the files to update to the latest version of mojo including the mysql files and updated files for formwizard.

Get this error.  I am getting an error trying to get to all my pages - can't even get to the default page.

 

-----------------------------------------

2008-11-25 04:33:07,687 ERROR mojoPortal.Web.mojoBasePage - 59.101.162.214-en-GB - /accommodating-your-dog.aspx
System.Web.HttpParseException: The file '/Controls/mojoRating.ascx' does not exist. ---> System.Web.HttpException: The file '/Controls/mojoRating.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)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
at System.Web.UI.MainTagNameToTypeMapper.TryUserControlRegisterDirectives(String tagName)
--- End of inner exception stack trace ---
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
at mojoPortal.Web.UI.Pages.SiteHome.LoadPage()
at mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2008-11-25 04:33:07,765 ERROR mojoPortal.Web.Global - 59.101.162.214-en-GB - /accommodating-your-dog.aspx
System.Web.HttpException: The file '/Controls/mojoRating.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)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
at System.Web.UI.MainTagNameToTypeMapper.TryUserControlRegisterDirectives(String tagName)
2008-11-25 04:33:07,765 ERROR mojoPortal.Web.Global - 59.101.162.214-en-GB - /accommodating-your-dog.aspx
System.Web.HttpParseException: The file '/Controls/mojoRating.ascx' does not exist. ---> System.Web.HttpException: The file '/Controls/mojoRating.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)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.BaseTemplateParser.GetReferencedType(VirtualPath virtualPath, Boolean allowNoCompile)
at System.Web.UI.BaseTemplateParser.GetUserControlType(VirtualPath virtualPath)
at System.Web.UI.MainTagNameToTypeMapper.ProcessUserControlRegistration(UserControlRegisterEntry ucRegisterEntry)
at System.Web.UI.MainTagNameToTypeMapper.TryUserControlRegisterDirectives(String tagName)
--- End of inner exception stack trace ---
at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
at System.Web.UI.TemplateControl.LoadControl(String virtualPath)
at mojoPortal.Web.UI.Pages.SiteHome.LoadPage()
at mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 

 

11/25/2008 5:45:33 AM
Gravatar
Total Posts 72

Re: Error after updating to latest version

Got into the Admin menu and went to the add/edit pages then tried to view one of my pages - one of the pages using formwizard and got the following error.   Not sure if related to the other one I am getting that is stopping viewing of the page.

I did run setup a couple of times after installing as timed out a couple of times - not sure if running setup multiple times will do anything.


 

------------------------------

2008-11-25 04:42:53,531 ERROR mojoPortal.Web.Global - 59.101.162.214-en-GB - /booking-accommodating-your-dog.aspx
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.TypeLoadException: Could not load type 'mojoPortal.Data.SqlParameterHelper' from assembly 'mojoPortal.Data, Version=1.0.3249.11232, Culture=neutral, PublicKeyToken=null'.
at sts.FormWizard.Data.DBWebForm.GetOne(Guid guid)
at sts.Business.WebForm..ctor(Guid guid)
at sts.Business.WebForm.GetByModule(Module module)
at sts.FormWizard.Web.UI.FormWizardModule.LoadSettings()
at sts.FormWizard.Web.UI.FormWizardModule.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlCollection.Add(Control child)
at mojoPortal.Web.UI.Pages.SiteHome.LoadPage()
at mojoPortal.Web.UI.Pages.SiteHome.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

11/25/2008 5:46:55 AM
Gravatar
Total Posts 18439

Re: Error after updating to latest version

Does the file /Controls/mojoRating.ascx exist? It sounds like it did not get uploaded. If so its possible other files did not get uploaded too.

The file does exist in the package.

Hope it helps,

Joe

11/25/2008 5:50:51 AM
Gravatar
Total Posts 18439

Re: Error after updating to latest version

The second error mojoPortal.Data.SqlParameterHelper

tells me its using the MS SQL data layer for Form Wizard, so apparently that file (sts.FormWizard.Data.dll) did not get replaced as it should from the MySql package

Hope it helps,

Joe

11/25/2008 6:03:30 AM
Gravatar
Total Posts 72

Re: Error after updating to latest version

There are so many files to upload bound to miss one.  Have uploaded the controls folder files - do I need to run setup again as trying to get to a page - it is taking so long to get to a page that I stop it. 

With the form wizard - there is the .dll file you mention and another file sts.FormWizard.Data.pdb - I gather these need to be placed in the same location.  Have put them both in the bin folder as well as putting both in the root directory - not 100% sure where they should go.

 

 

 

11/25/2008 6:16:43 AM
Gravatar
Total Posts 18439

Re: Error after updating to latest version

The .pdb file is not needed, thats just the debug symbols.

dll files only go in the bin folder, nowhere else.

After uploading new dlls to the bin folder I usually touch the Web.config file to recycle the application, this makes sure it uses the new dll for all requests and not a memory cached older version

you don't need to run setup again unless you failed to upload the new script files

It is a lot of files to upload with a new release. I recommend use FileZilla and break it up, upload the Setup folder first, then ClientScript, then Data, then the rest. For each of those batches watch FileZilla status for any indication of transfer failures, if they occur you tell it to try again until they all go.

If you don't upload all the files your system can be in an unknown state that makes it difficult for me to diagnose. To me this is your situation now, I lack confidence that your installation has all the new files.

Hope it helps,

Joe

11/25/2008 6:31:04 AM
Gravatar
Total Posts 72

Re: Error after updating to latest version

All working again - although it took 5 mins to get to the page.

If a website using mojo is not frequented regularly by users, it is very slow when you do go to it - is there something to make it quicker - a program that  may ping the website so you don't have to wait so long for a page to appear.

11/25/2008 6:40:02 AM
Gravatar
Total Posts 18439

Re: Error after updating to latest version

It has to do with the way .NET JIT (Just In Time) compiles the code from MSIL to native, this happens when the app gets its first few page visits and after that it stays cached until the app recycles again. If there is no traffic, by default IIS will shut the app down after 20 minutes and then when you finally get  visitor again it has to wake up and JIT all over gain. This is a widley known issue in ASP.NET, its not mojoportal specific.

I did implement a solution for it but it hasn't had extensive testing. You are free to try it and let me know if it helps or if any problems occur with it.

You can set this to true in user.config

<add key="UseAppKeepAlive" value="false"/>

then touch your Web.config to recycle the app so it sees this new setting has changed. Then what should happen is the site will spawn a task on a background thread that makes a web request to your home page every 15 minutes to keep it from timing out and being shut down.

If you generally get visits within every 20 minutes its best to set this back to false.

Hope it helps,

Joe

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