Event code: 3012
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: xxx/WebResource.axd
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)
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"
/>
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.
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.
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
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
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
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:
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,
We are experiencing this same issue with the exact same error message and stack trace. Has anyone found a solution to this yet?
Thanks,
Tony