+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Event code: 3012

Event code: 3012

8 posts, 0 answered
  1. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    26 Mar 2014
    Link to this post

    Hi,

    We are getting a lot of events logged from one of our Sitefinity sites (5.0.2860.0) which is running on IIS 7.5. The error (below) is related to the machine key and accessing webresource.axd. The site isn't running any custom components or modules and is a standard Sitefinity install.

    I have re-generated the machine key within IIS although this hasn't solved the problem and I have Google'd to no avail. 

    Has anyone come across this before?

    Thanks 

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

    Event code: 3012 
    Event message: An error occurred processing a web or script resource request. The resource identifier failed to decrypt. 
    Event time: 25/03/2014 12:40:47 
    Event time (UTC): 25/03/2014 12:40:47 
    Event ID: 8aecfad47fc7427d8e6d9a3aa67975f2 
    Event sequence: 470 
    Event occurrence: 3 
    Event detail code: 0 
     
    Application information: 
        Application domain: /LM/W3SVC/4/ROOT-5-130402245558229590 
        Trust level: Full 
        Application Virtual Path: / 
        Application Path: D:\Projects\Sitefinity\xxx\docs\ 
        Machine name: xxx 
     
    Process information: 
        Process ID: 5196 
        Process name: w3wp.exe 
        Account name: IIS APPPOOL\SITEFINITY - xxx
     
    Exception information: 
        Exception type: HttpException 
        Exception message: Unable to validate data.
       at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
       at System.Web.UI.Page.DecryptString(String s, Purpose purpose)
       at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

     
     
    Request information: 
        Request URL: http://xxx/WebResource.axd?d=yVKaYgqYAPHSokHm4FtvIXWIJyp1i74CP49wpKmGngQDAyOYJpy_QX6btirBTx6k_iTXnmMCGfvoQeRtk00gdk6ChIGW_Zi-8MTTcdSfknxUbc8-SZ5WYIBSORqh9QONQQs-9JIW90yHAX21MVW2sw13hcAVY0vwtMq-EeeQ-zR4M7x9kDW8aQmUSHUpeW7i0&t=634715586700000000 
        Request path: /WebResource.axd 
        User host address: 10.97.59.4 
        User:  
        Is authenticated: False 
        Authentication Type:  
        Thread account name: IIS APPPOOL\SITEFINITY - xxx 
     
    Thread information: 
        Thread ID: 23 
        Thread account name: IIS APPPOOL\SITEFINITY - xxx 
        Is impersonating: False 
        Stack trace:    at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
       at System.Web.UI.Page.DecryptString(String s, Purpose purpose)
       at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

  2. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    31 Mar 2014
    Link to this post
    Hello Richard,

    There is several scenarios in ASP.NET applications that cause such error. If you've changed servers - this includes from development servers such as IIS Express or Cassini. Each server has their own configuration and decryption key and if you're using Forms Authentication the cookie is encrypted/decrypted with it. So, if you have the cookie encrypted with IIS, then switch to another server, that server cannot decrypt the cookie. You can avoid this by putting the decryption key in your web.config:
    <machineKey decryptionKey="..." />

    If can also occur if the same machineKey entry shown above ends with xmlns="". In these scenarios the following registry key likely also has a value of "1".

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy 

    Try changing your web.config to something like:

    <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="3DES" decryption="3DES"/>

    This would force the web application to auto-generate a decryption key instead of using the IIS assigned one which would be invalid in some server scenarios.

    You could also try to recycle the application and see if the problem still persist.

    You also could try to back-up your current database and restore an old one to check if there is issue with the database or upgrade to a newer version of Sitefinity.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Richard
    Richard avatar
    63 posts
    Registered:
    20 Jan 2010
    03 Apr 2014 in reply to Svetoslav Manchev
    Link to this post

    Hi Svetoslav,

    We decrypted the webresource.axd error and the issue is being caused by a Rad Combo box when it is being rendered which is on the homepage. We will do some further investigating.

     Thanks for your help.

  4. Poonam
    Poonam avatar
    1 posts
    Registered:
    10 Mar 2016
    10 Mar in reply to Svetoslav Manchev
    Link to this post

    HI,i tried this but did not help.

    My issue is with telerik radeditor toolbar.we have migrated from win 2008 to win 2012 and IIs also got upgraded.After upgradation toolrbars are not visible.and in eventlog i see event id :3012 getting logged.

  5. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    14 Mar
    Link to this post
    Hello Poonam,

    In that case I would recommend you to open a support ticket in order to inspect your project more detailed. Once you have the solution you can share it with the community.

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  6. Gerrit
    Gerrit avatar
    30 posts
    Registered:
    28 Jul 2010
    13 May in reply to Svetoslav Manchev
    Link to this post

    Hi

    We upgraded to Sitefinity 9 and the site totally just crashed once we went live. I noticed we had a lot of these errors in the event log of the server.

    We took the "testing" site, and just switched it over to the "live" site. Note that the "testing" site was a full backup of the "live" site. So if I understand correctly they will have the same decryption keys, will that be a problem?

    Trying to figure out if this was the issue why the site crashed.

     

    Thanks

  7. Svetoslav Manchev
    Svetoslav Manchev avatar
    735 posts
    Registered:
    30 Sep 2016
    18 May
    Link to this post
    Hello Gerrit,

    Can you please elaborate some more about the site crash? Do you have any error message during the site initialization, some functionality that does not work, etc.?

    As I understand the site runs well on the test server. If so, you can also check the deployment and the IIS settings:
    - http://docs.sitefinity.com/deployment 
    http://docs.sitefinity.com/configure-the-iis-to-host-sitefinity-projects
    http://docs.sitefinity.com/run-projects-on-iis-7-0-and-above

    Regards,
    Svetoslav Manchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  8. pradeep
    pradeep avatar
    5 posts
    Registered:
    29 Feb 2016
    04 Aug
    Link to this post

    Hello Team,

    I have already implemented the following:

    +++++++++++++++++++++++++++++++++++++++++

    decryption key in your web.config:
    <machineKey decryptionKey="..." />
    If can also occur if the same machineKey entry shown above ends with xmlns="". In these scenarios the following registry key likely also has a value of "1".

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\fipsalgorithmpolicy 

    Try changing your web.config to something like:
    <machineKey validationKey="AutoGenerate,IsolateApps"decryptionKey="AutoGenerate,IsolateApps" validation="3DES"decryption="3DES"/>

    ++++++++++++++++++++++++++++++

    Also, implemented the steps given in the url:

    http://docs.sitefinity.com/configure-the-iis-to-host-sitefinity-projects

     

    But still we are getting the error :

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

    Event code: 3012 
    Event message: An error occurred processing a web or script resource request. The resource identifier failed to decrypt. 
    Event time: 8/4/2016 1:09:19 PM 
    Event time (UTC): 8/4/2016 6:09:19 PM 
    Event ID: 9ed7856e9baa479f944599104bda8f46 
    Event sequence: 1265 
    Event occurrence: 6 
    Event detail code: 0 
     
     
    Exception information: 
        Exception type: HttpException 
        Exception message: Unable to validate data.
       at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
       at System.Web.UI.Page.DecryptString(String s, Purpose purpose)
       at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

     
     
        Stack trace:    at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo, Boolean useLegacyMode, IVType ivType, Boolean signData)
       at System.Web.UI.Page.DecryptString(String s, Purpose purpose)
       at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)

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

    Please advice.

    Regards,

8 posts, 0 answered