Changing machineKey causes 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/17/2011 2:59:36 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Changing machineKey causes Error

Hi,

I just went to the Site Manager and noticed that the machine key was now being flagged for change.  I generated a new key and copied it to the <machineKey validationKey="..." and I got the "CustomErrors" error... I checked to make sure I was using the same web.config as before, I was.  I checked the noted segment for the RemoteOnly setting... (see below)

<customErrors mode="RemoteOnly" defaultRedirect="Error.htm">
      <error statusCode="413" redirect="~/NeatUpload/Error413.aspx" />
    </customErrors>

So what the heck could I have done this time?

6/17/2011 3:17:15 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: Changing machineKey causes Error

Now I broke my local copy too!!!

I think I go the web.config files for the localhost and main server mixed up....

LocalHost : I removed the machineWeb line from my local copy and now the site loads but NOT the Administration page.  So I can not generate a new machine code.  How can I over ride this?  With the wrong machineKey I get the following error...

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.


Detailed Error Information

 

Module

IIS Web Core

Notification

BeginRequest

 

Handler

Not yet determined

Error Code

0x800700b7

 

Config Error

Config section 'system.web/machineKey' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions


Config File

\\?\C:\inetpub\wwwroot\mojoportal\web.config

 

Requested URL

http://localhost:80/mojoportal/Admin/AdminMenu.aspx

Physical Path

C:\inetpub\wwwroot\mojoportal\Admin\AdminMenu.aspx

 

Logon Method

Not yet determined

Logon User

Not yet determined

Config Source  715:
  716:     <machineKey validationKey="55BA53B475CCAE0992D6BF9FE463A5E97F00C6C16DA3D7DF9202E560078AB501643C15514785FEE30FEF26FC27F5CE594B42FFCA55452EF90E8A056B4DAE9F39" decryptionKey="939232D527AC4CD3E449441FE887DA110A16C1A36924C424CBAAE3F00282436C" validation="SHA1" decryption="AES"/>  <machineKey validationKey="5B4368E37F6304CE640E83C4D31EA90B95657822F5976E2799A8B1AACB1BAE91CADD8AF903BBB3A326A66D8E1EF39FCF378E6436E943426116765736A4DB18FF" decryptionKey="A0ADD503FFBD7151E7CD86D9063BA634B5A084376327F3C41832691EBB176A0A" validation="SHA1" decryption="AES" />
  717:

6/17/2011 3:58:50 PM
Gravatar
Total Posts 383
Thanks Squire Dude

Re: Changing machineKey causes Error

Well... after a lot of dicking around and switching machineKey codes and trying to keep the web.config files straight I got it all sorted out.

Resolution:- keep web.config files separated / Replace machineKey codes

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