Error loading after update of Machine Key

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.
2/3/2011 11:42:02 AM
Gravatar
Total Posts 383
Thanks Squire Dude

Error loading after update of Machine Key

Hi,

I have just upgraded mojoportal and had the server updated to .NET 4.0 everything is now okay...

Then I noticed I was getting the error for the Machine Key change.

I copied the web.config file from the server to my local machine
I generated a new Machine Key in the app
I changed the Machine Key
I copied the newly edited web.config back to the server
I reload the site and BANG...

Now I am getting the following error...

Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

I change the Machine Key back to the original one and the site works?

Am I missing another change here somewhere?

Phill

2/3/2011 11:45:04 AM
Gravatar
Total Posts 18439

Re: Error loading after update of Machine Key

Sounds like you typoed something in Web.config that causes an error and now it cannot load Web.config

I would review it carefully and look for any malformed tags extra angle brackets or missing angle brackets.

Hope it helps,

Joe

2/3/2011 7:20:47 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: Error loading after update of Machine Key

Hi Joe,

Thanks I will look over the line I added for the Machine Key as it was the only thing I changed.  Maybe I errorred when I copied it from the generator box in the admin page.

I'll try again and let you know the results.

Thanks
Phill

2/3/2011 8:19:52 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: Error loading after update of Machine Key

Hi Joe,

Well I was unable to re-create the error again... so once again your eminence is correct... and once again I bow to your expertise... as you noted I must have missed a chr or space.

Thanks
Phill

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