I keep getting this warning in the eventlog from my website that uses atlas. I am not doing anything with Cryptography so I am thinking it is from atlas. Any idea on how to fix this?
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 9/1/2006
Time: 4:50:28 PM
User: N/A
Computer: xxxxxxxxxxxxx
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/1/2006 4:50:28 PM
Event time (UTC): 9/1/2006 9:50:28 PM
Event ID: 2d0ae359c3f644e1abe59a1f0154872d
Event sequence: 4021
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Trust level: Full
Application Virtual Path: /
Application Path: xxxxxxxxxxxxxxxx
Machine name: xxxxxxxxxxxx
Process information:
Process ID: 7920
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: CryptographicException
Exception message: Padding is invalid and cannot be removed.
Request information:
Request URL:http://www.windowsformsdatagridhelp.info/WebResource.axd?d=TiBePznmD981jNt4qHilAUYivOfdjr3CnSFDzk5Y9MU1&z=1
Request path: /WebResource.axd
User host address: 72.30.102.135
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 1
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode, Boolean fLast)
at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount)
at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo)
at System.Web.UI.Page.DecryptString(String s)
at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at Microsoft.Web.Services.WebResourceCompressionModule.OnPreRequestHandlerExecute(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
For more information, see Help and Support Center athttp://go.microsoft.com/fwlink/events.asp.
This exception is generated by the new feature in 2.0 calledhealthMonitoring
Basically your app is throwing a exception when hitting this page:
http://www.windowsformsdatagridhelp.info/WebResource.axd?d=TiBePznmD981jNt4qHilAUYivOfdjr3CnSFDzk5Y9MU1&z=1
and the framework is writing the log. You can disable Health monitor on your web.config
<healthMonitoringheartbeatInterval="0"enabled="false">
</healthMonitoring>
I disabled the health monitor in the web.config (isn't it off by default anyway?) and the error is still coming up. I have no other controls making this call to WebResource.axd other than Atlas, so what's the deal with the Cyptography errors?
anyone get a fix on this? I'm getting the same error...
to add insult to injury, I have 1 server running a few sites... I get this error regarding one of my sites, and that seems to take down another site. both sites are running under their own application pool. also, every time I get a 1309 error message, it seems to be followed by at least 2 ".NET Runtime 2.0 Error Reporting" errors (error id 1000, category "None"). anyone have any idea's?
Cheers
Quick question - is your site dynamically generated - meaning that utilize a IHTTP handler to generate the pages / page urls ?
If so then the error you are getting can be fixed...see this blog entry -
if you are serving it all from the file system then it will have no real relevance unless you are doing some kind of url rewriting...
May or may not fix your error....
I am not using any IHTTP handlers or doing anything with Cryptography so I was suprised I was getting the error. Turning off the health monitoring has stopped the event log messages. I am in the process of rewritting the website to use the asp.net ajax beta 1. Hopefully whatever was causing the error was fixed in the latest beta
the problem is usually caused by the request parameter(hashed string value) be invalid and the webresource.axd fail to verify it.
Have you ever found it occurs exactly when you interactively visit any page in your ASP.NET 2.0 application or any other user who get such error when they directly visit the pages in your application?
A web crawler could be causing this by making a request to a url with a hash that has expired ex:
http://www.windowsformsdatagridhelp.info/WebResource.axd?d=TiBePznmD981jNt4qHilAUYivOfdjr3CnSFDzk5Y9MU1&z=1
This will work for sometime after the page is generated but then the hash will expired.
if you are running a web farm you may run into this problem, because you need to configure the mchine.config using the same key
http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx?feedbackid=17c64976-ee21-4055-9de4-992d9c59e589
Other causes could be third party products on the web server such as SecureIIS (by eeye.com). If you go into SecureIIS and disabled the security for the website in question, your JavaScript / WebResource.axd - 404 error may go away.
i'm also geetting the same error... it just hangs or freezes and produce the warning message at the event viewer... but i tried to put the site on another computer and it works perfectly...
has anyone resolved the problem yet?
No comments:
Post a Comment