Initial login with admin after install: server error - 2nd

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.
10/1/2014 7:42:20 AM
Gravatar
Total Posts 218

Initial login with admin after install: server error - 2nd

Hi,

  • I use the last .NET 4 package of mojoPortal and my hosting is .NET 4
  • I am hosted in full trust

Probing system...
File system permissions ok.
MySQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
Configuring feature Html Content - 00:00:00.1716000
.
.
.
when I try to login with admin@admin.com the response is :

"We're sorry but a server error has occurred ..."

Best
Matthias

10/1/2014 10:50:12 AM
Gravatar
Total Posts 18444

Re: Initial login with admin after install: server error - 2nd

Hi Matthias,

For any error the first step is to find out the error details, as in basic troubleshooting.

However, the bad news is that I can no longer produce a good build for .NET 4.0. .NET 4.5 replaces .NET 4.0 and now that I have installed the latest updates to Visual Studio, if I try to compile a build for .NET 4.0 it really uses .NET 4.5 because it replaced 4.0.

Also 4.5 is 4.0 runtime, so even if .NET 4.5 is installed it will say 4.0... under Administration > System Information. So the only good way to know if you have .NET 4.5 hosting is to ask your host and they can see under Control > Panel Programs what version of .NET is installed. 4.5 has been out for 2 years now and is like a service pak for 4.0.

If you really do only have 4.0 hosting and not 4.5 then the only advice I have is to use mojoPortal 2.4.0.3. The 4.0 files I provided for 2.4.0.4 turned out to really not be 4.0 but 4.5 and I have no way to fix it going forward because I do not have any machine that does not already have 4.5 installed and I can no longer produce a good build for 4.0 on any of my machines. Therefore going forward I can only provide builds for 4.5. I have removed our download for 4.0 for mojoportal 2.4.0.4 because it does not work reliably and gives strange errors that seem to indicate it is really for .NET 4.5

I'm sorry for this problem but there is nothing I can do to solve it, really Microsoft created this problem by making 4.5 a replacement for 4.0 but it has breaking changes.

The only solutions are use 4.5 hosting with the latest version of mojoPortal or use an older version of mojoPortal (2.4.0.3) if you don't have 4.5 hosting.

Sorry for the bad news,

Joe

10/2/2014 6:19:28 AM
Gravatar
Total Posts 218

Re: Initial login with admin after install: server error - 2nd

Hi Jo, thanks for your detailed reply.
An update to 4.5 must be possible.
If it takes too long, I can install up to then a version 2.4.0.2 from my stash.
Cheers
Matthias
 

10/2/2014 6:29:56 AM
Gravatar
Total Posts 218

Re: Initial login with admin after install: server error - 2nd

P.S.: Does this come from the 4.0 / 4.5 - problem?

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a Cluster.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.

Source Error:
 

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.


Stack Trace:
 

[ViewStateException: Invalid viewstate. Client IP: 93.128.215.185 Port: 51557 Referer: http://www.sabineschafft.de/Secure/Login.aspx?returnurl=%2fDefault.aspx Path: /Default.aspx User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko ViewState: Z9Iylu0PAEG40Lwvfx3qAvkZVm9+GP0aI7fYQoB5uyCW+AUgKfMkMxDxjxnt0kBZi85/cFp0VSitL9ouC8Lv652G1vererPvDNYWtgBmTE9EurVoVF/vfJpRVrYSeWG1TZC+DhO72vtNAaxxrTTLFB+4fukl97dCcmR1jfGIYgatGn3HGjj8WIvRDL/vCP57QBHBFwxbvj/VB2g51Wz14IHnWM1FpVNmgvfhObHnQB4GslXl0WCIFtGMzCkWvZESfZ2C0OaaO4E+pDoa/viEd6sxxtpywJr/2ECrbp8k5srpWxrny36tYk/ZYVH+t5TM76nwDqvN7DUq/QpCQXkNlebzFpb5cZVNOgDZlX69d97xL6NWb9QJXRIw5q+5eatM5kEkWVc/5kOeUdVKyfqpIqaxe/hGguT8Qogs0vQfwmDdd86IGERygh9r7g2gJyyTsOn/0M/XKKSGYRQFO7fETvZV0Y18cxWM/J0PKvCZgxLSPIRRvEU1G7eGgXrzTe5YNi8HVAq4p7yazvU0sWIX/jYhQ8ydEgmspdghBxr2UYdmJ/ZujTDK7dH/cMzFcxw9oxjtgOHTEefagtMF8U4RKeRvZNPh6toRqGKTOhejvPIyInrCAj+IK1tPTz6TNGoetzn28Wx3JXu7d0PMcuQtaHASsxNZHf20BHGe5T2UO8EMSYsV6En9RgyvDr8FUgzRd6s9NLjCViuaFptxG/tT3h+iwnHQBGyImcKjo5Px3Fb6qLipyxXtkcokZkIJrN0UqpcxvRMJR...] [HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. See http://go.microsoft.com/fwlink/?LinkID=314055 for more information.] System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +116 System.Web.UI.ObjectStateFormatter.Deserialize(String inputString, Purpose purpose) +432 System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter2.Deserialize(String serializedState, Purpose purpose) +8 System.Web.UI.Util.DeserializeWithAssert(IStateFormatter2 formatter, String serializedState, Purpose purpose) +40 System.Web.UI.HiddenFieldPageStatePersister.Load() +248 System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +272 System.Web.UI.Page.LoadAllState() +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245 System.Web.UI.Page.ProcessRequest() +72 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +58 ASP.default_aspx.ProcessRequest(HttpContext context) +4 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

10/3/2014 6:38:39 AM
Gravatar
Total Posts 218

Re: Initial login with admin after install: server error - 2nd

Hi Joe,
I learned yesterday that 4.5 was already installed.
I will re-upload everything again ...

Best
Matthias

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