What does GCFrame mean in output of !clrstack command in WinDBG? - asp.net

Can somebody help me with answering my 2 questions below?
What does GCFrame mean in !clrStack output?
What does System.IndexOutOfRangeException..ctor() showing in the stack mean? Does it mean there is actually exception on thread?
0:023> !clrstack
OS Thread Id: 0xe1c (23)
Child SP IP Call Site
0000000005cab978 000007fef909caf6 [HelperMethodFrame_PROTECTOBJ: 0000000005cab978] System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, Boolean, Boolean, Boolean)
0000000005cabb50 000007fef80316ce System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(System.String, System.Globalization.CultureInfo, System.Version, Boolean, System.Threading.StackCrawlMark ByRef)
0000000005cabbc0 000007fef8031357 System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo, System.Threading.StackCrawlMark ByRef)
0000000005cabc50 000007fef8038972 System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
0000000005cabd10 000007fef8038678 System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)
0000000005cabdd0 000007fef8038403 System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)
0000000005cabe20 000007fef8037fcc System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)
0000000005cabec0 000007fef803e10b System.Environment+ResourceHelper.GetResourceStringCode(System.Object)
0000000005cac608 000007fef903ee74 [HelperMethodFrame_PROTECTOBJ: 0000000005cac608] System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
0000000005cac730 000007fef803dd88 System.Environment+ResourceHelper.GetResourceString(System.String, System.Globalization.CultureInfo)
0000000005cac780 000007fef803e5b8 System.Environment.GetResourceStringLocal(System.String)
0000000005cacb98 000007fef903ee74 [ContextTransitionFrame: 0000000005cacb98]
0000000005cacb58 000007fef903ee74 [GCFrame: 0000000005cacb58]
0000000005cacdb8 000007fef903ee74 [HelperMethodFrame_2OBJ: 0000000005cacdb8] System.Environment.GetResourceFromDefault(System.String)
0000000005cacee0 000007fef870fc58 System.IndexOutOfRangeException..ctor()
0000000005cad2c8 000007fef903ee74 [GCFrame: 0000000005cad2c8]
0000000005cad468 000007fef903ee74 [GCFrame: 0000000005cad468]
0000000005cad5c0 000007fef903ee74 [GCFrame: 0000000005cad5c0]
0000000005cad978 000007fef903ee74 [HelperMethodFrame: 0000000005cad978] System.Buffer.InternalBlockCopy(System.Array, Int32, System.Array, Int32, Int32)
0000000005cadab0 000007fef807c705 System.IO.StreamWriter.Write(Char[], Int32, Int32)
0000000005cadb10 000007fef807ba5c System.IO.TextWriter.WriteLine(System.String)
0000000005cadb70 000007fef807c9ff System.IO.TextWriter+SyncTextWriter.WriteLine(System.String)
0000000005cadbc0 000007ff0021a74e log4net.Util.LogLog.EmitOutLine(System.String)
0000000005cadc10 000007ff00223fdf log4net.Appender.FileAppender.OpenFile(System.String, Boolean)
0000000005cadc90 000007ff00223b31 log4net.Appender.RollingFileAppender.OpenFile(System.String, Boolean)
0000000005cadd10 000007ff00223837 log4net.Appender.FileAppender.SafeOpenFile(System.String, Boolean)
0000000005cadd70 000007ff005daec3 log4net.Appender.TextWriterAppender.PreAppendCheck()
0000000005caddb0 000007ff005dabc1 log4net.Appender.AppenderSkeleton.DoAppend(log4net.Core.LoggingEvent)
0000000005cade10 000007ff005da910 log4net.Util.AppenderAttachedImpl.AppendLoopOnAppenders(log4net.Core.LoggingEvent)
0000000005cade90 000007ff005da511 log4net.Repository.Hierarchy.Logger.CallAppenders(log4net.Core.LoggingEvent)
0000000005cadf10 000007ff005da12b log4net.Repository.Hierarchy.Logger.Log(System.Type, log4net.Core.Level, System.Object, System.Exception)
0000000005cadf80 000007ff005de0f2 log4net.Core.LogImpl.DebugFormat(System.String, System.Object[])
0000000005cadff0 000007ff005ddfb0 Secure.Utility.LogHelper.DebugFormat(System.String, System.Object[])
0000000005cae060 000007ff005ded4d Secure.Portal.Messaging.GenericProcessor.OnMessageReceive(WaveSecure.Messaging.GatewayProvider, System.String, System.String, System.String, System.String, WaveSecure.EventInitiatorTypeList, System.Web.HttpContext)
0000000005cae360 000007ff005dbc3e Secure.Portal.Handlers.XmlServiceMessageHandler.ProcessRequest(System.Web.HttpContext)
0000000005cae420 000007fef0f1f831 System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
0000000005cae500 000007fef0eec26e System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)
0000000005cae5d0 000007fef168cff5 System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception)
0000000005cae690 000007fef15b0bf5 System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, System.AsyncCallback)
0000000005cae6e0 000007fef1592576 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)
0000000005cae780 000007fef167df1f System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
0000000005cae920 000007fef167e3f2 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
0000000005cae970 000007fef167d141 DomainNeutralILStubClass.IL_STUB_ReversePInvoke(Int64, Int64, Int64, Int32)
0000000005caf228 000007fef90e62e7 [NDirectMethodFrameStandalone: 0000000005caf228] System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatus ByRef)
0000000005caf1f0 000007fef162ff47 DomainNeutralILStubClass.IL_STUB_PInvoke(IntPtr, System.Web.RequestNotificationStatus ByRef)
0000000005caf2c0 000007fef167e054 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)
0000000005caf460 000007fef167e3f2 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)
0000000005caf4b0 000007fef167d141 DomainNeutralILStubClass.IL_STUB_ReversePInvoke(Int64, Int64, Int64, Int32)
0000000005caf718 000007fef90e654b [ContextTransitionFrame: 0000000005caf718]

The exception is in the process of being constructed -- its constructor is currently running. It is probably being thrown by the BlockCopy method (you can inspect it in Reflector to see under which conditions it throws this exception). In the process of running the constructor, a satellite resource assembly is being loaded to get a string (which is probably the human-readable exception message).

Related

Xamarin forms: Plugin.LatestVersion.LatestVersionException: Error comparing current app version number with latest

I am getting the below exception from the Xam.Plugin.LatestVersion plugin on my xamarin forms app:
Plugin.LatestVersion.LatestVersionException: Error comparing current app version number with latest.
I found the same issue reported over here and here on GitHub. Also, the same issue is reported on the stack. I tried the solutions suggested on the above thread, but no luck.
I have updated my plugin version to the latest(2.1.0), but the same exception is showing. Any solution for this issue? The issue is only on the Android platform.
Update:
I have tried the 2.1.1-beta.107 version, now getting another exception.
Plugin.LatestVersion.LatestVersionException: Error parsing content from the Play Store. Url=play store url&hl=en. ---> Jurassic.JavaScriptException: TypeError: undefined cannot be converted to an object
at Jurassic.TypeConverter.ToObject (Jurassic.ScriptEngine engine, System.Object value, System.Int32 lineNumber, System.String sourcePath, System.String functionName) [0x00037] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at (wrapper dynamic-method) Jurassic.Compiler.MethodGenerator.anonymous(Jurassic.Compiler.ExecutionContext,object[])
at Jurassic.Library.UserDefinedFunction.CallLateBound (System.Object thisObject, System.Object[] argumentValues) [0x00014] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at Jurassic.Library.FunctionInstance.CallWithStackTrace (System.String path, System.String function, System.Int32 line, System.Object thisObject, System.Object[] argumentValues) [0x0000f] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at (wrapper dynamic-method) Jurassic.Compiler.MethodGenerator.anonymous(Jurassic.Compiler.ExecutionContext,object[])
at Jurassic.Library.UserDefinedFunction.CallLateBound (System.Object thisObject, System.Object[] argumentValues) [0x00014] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at Jurassic.Library.FunctionInstance.CallWithStackTrace (System.String path, System.String function, System.Int32 line, System.Object thisObject, System.Object[] argumentValues) [0x0000f] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at (wrapper dynamic-method) Jurassic.Compiler.MethodGenerator.eval(Jurassic.Compiler.ExecutionContext)
at Jurassic.Compiler.GlobalOrEvalMethodGenerator.Execute (Jurassic.ScriptEngine engine, Jurassic.Compiler.RuntimeScope parentScope, System.Object thisObject) [0x00030] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at Jurassic.ScriptEngine.Evaluate (Jurassic.ScriptSource source) [0x000a7] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at Jurassic.ScriptEngine.Evaluate (System.String code) [0x00007] in <018e8bf6db3d46cd85eb0a9bc95f4b3f>:0
at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber () [0x001ff] in <7361502664264164a28b556feec777a7>:0
--- End of inner exception stack trace ---
at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber () [0x0023d] in <7361502664264164a28b556feec777a7>:0

ASP.NET Session - Internal ArrayList exception

We have a web based application developed using the .NET framework 4 and ASP.NET MVC.When you set an item to a session in a section of the code, we are faced with an internal exception directly from mscorlib which causes our application to work unexpectedly.The fault stack trace is as follows;
0:072> !clrstack
OS Thread Id: 0x31ec (72)
Child SP IP Call Site
000000aea766d968 000007f9736a4650 [HelperMethodFrame: 000000aea766d968]
000000aea766da50 000007f9674e0e5a System.Collections.ArrayList.Add(System.Object)
000000aea766da90 000007f966655292 System.Collections.Specialized.NameObjectCollectionBase.BaseAdd(System.String, System.Object)
000000aea766dae0 000007f9650ac4c9 System.Web.SessionState.SessionStateItemCollection.set_Item(System.String, System.Object)
000000aea766db20 000007f90ed89ce9 UTL.WebStateManager.set_Item(System.String, System.Object)
000000aea766dbf0 000007f90f29370c WebStateManagerHelper.get_OriginalPNR()
000000aea766dc80 000007f90f29242d QueryDynamicLoggingComponent.LogTransaction(System.String, System.String)
000000aea766e110 000007f90f2917e3 WSHelper.Log(System.String, System.String, Boolean, System.String)
000000aea766e160 000007f90f28fd17 WSHelper.GetResponse(System.String, SecurityInfo, System.String, System.String, System.String ByRef, System.String, System.String)
000000aea766e5d0 000007f90f29eae6 WSHelper.SendQuery(System.String, SecurityInfo, System.String)
000000aea766e7f0 000007f90f29e7f8 WSHelper.SendQuery(SecurityInfo, System.String)
000000aea766e840 000007f90f29e4af APIWSPool.SendAndReceiveQueryToString(Agency, System.String, Token, Boolean)
000000aea766e940 000007f90f29e374 APIWSPool.SendAndReceiveQuery(Agency, Token, Boolean)
000000aea766e9b0 000007f90f6168f4 FlightBookingManager.SearchFlightForMPSearchedFlightRecommendations1(Agency, FlightFareDrivenSearchInfo, Boolean)
000000aea766eb80 000007f90f615ec1 ApiFlightBookingProvider.SearchFlightForMPSearchedFlightRecommendations1(Agency, FlightFareDrivenSearchInfo, Boolean)
000000aea766ebe0 000007f90f6158f2 APICOM.Threading.OWCOutboundSearchThread.Work()
000000aea766edb0 000007f9674e2d45 System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
000000aea766ef10 000007f9674e2ab9 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
000000aea766ef40 000007f9674e2a97 System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
000000aea766ef90 000007f9674fa161 System.Threading.ThreadHelper.ThreadStart()
000000aea766f2a8 000007f96e0eab53 [GCFrame: 000000aea766f2a8]
000000aea766f5f8 000007f96e0eab53 [DebuggerU2MCatchHandlerFrame: 000000aea766f5f8]
000000aea766f788 000007f96e0eab53 [ContextTransitionFrame: 000000aea766f788]
000000aea766f9a8 000007f96e0eab53 [DebuggerU2MCatchHandlerFrame: 000000aea766f9a8]
When I run !dso in the thread I am receiving the error and look at the ArrayList that the Session uses, I can't see any problem.
0:072> !DumpObj /d 000000adb1348540
Name: System.Collections.ArrayList
MethodTable: 000007f967727868
EEClass: 000007f967109b60
Size: 40(0x28) bytes
File: C:\Windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll
Fields:
MT Field Offset Type VT Attr Value Name
000007f9676b31c0 4000c2f 8 System.Object[] 0 instance 000000abf0b6ec10 _items
000007f967722238 4000c30 18 System.Int32 1 instance 17 _size
000007f967722238 4000c31 1c System.Int32 1 instance 17 _version
000007f96771fca0 4000c32 10 System.Object 0 instance 0000000000000000 _syncRoot
000007f9676b31c0 4000c33 5e8 System.Object[] 0 shared static emptyArray
>> Domain:Value 000000ab6a93ba10:000000ac6b0b23c0 000000aea416c820:000000ac2b1f8730 <<
0:072> !DumpObj /d 000000abf0b6ec10
Name: System.Object[]
MethodTable: 000007f9676b31c0
EEClass: 000007f9671078f8
Size: 288(0x120) bytes
Array: Rank 1, Number of elements 32, Type CLASS (Print Array)
Fields:
None
0:072> !DumpArray /d 000000abf0b6ec10
Name: System.Object[]
MethodTable: 000007f9676b31c0
EEClass: 000007f9671078f8
Size: 288(0x120) bytes
Array: Rank 1, Number of elements 32, Type CLASS
Element Methodtable: 000007f96771fca0
[0] 000000adb1348b90
[1] 000000adb1348c08
[2] 000000adb137e268
[3] 000000adb137e348
[4] 000000adb137e5c8
[5] 000000adb137e6b0
[6] 000000adb137e8d0
[7] 000000adb137ea98
[8] 000000adb137eb48
[9] 000000adb13f57d8
[10] 000000adb13f5a78
[11] 000000adb13f5b08
[12] 000000adb13f9018
[13] 000000adb13f9470
[14] 000000adb14b7618
[15] 000000abf0b6e4d8
[16] 000000abf0b6ebf0
[17] null
[18] null
[19] null
[20] null
[21] null
[22] null
[23] null
[24] null
[25] null
[26] null
[27] null
[28] null
[29] null
[30] null
[31] null
We know that the Session is not thread-safe for some operations.When we analyzed dumps we didn't see any other thread trying to access the same session object.We checked the source code of .NET in referencesource.microsoft.com and we think that it is a related an error indexing the internal array of the ArrayList.I'm not sure, but it seems to have a memory problem.Any ideas?

ASP.Net raises error "System.InvalidOperationException: Collection was modified;" when switching to Vietnamese

Environment: OS Windows 2008 R2 Sp1, IIS 7.5, Application Pool CLR .Net 4 x64 (integrated mode).
Our production site is ASP.net web site (not web application), it supports 6 languages with UI Culture as follows:
en-US, ja-JP, th-TH, zh-CN, zh-TW, ko-KR, and vi-VN.
The site works perfectly with all languages except Vietnamese. Sometimes, when we change language to Vietnamese, some pages throw exception like below
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name, CultureInfo culture, Version version, Boolean throwOnFileNotFound, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo lookForCulture, StackCrawlMark& stackMark)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at Resources.Lang.get_noofticket()
Looking at the error message, we understand that the error occured when Resource.Lange.get_nooticket() was called and method thrown the exception was
System.Reflection.RuntimeAssembly
_nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, Boolean, Boolean, Boolean).
Resource.Lang is global resource file.
We found nothing "special" about Vietnamese resource files except some keys missing in Vietnamese resource files. However, from what I know, it cannot be the problem, because ResourceManager can automatically switch to default culture (English) to get resource value. Moreover, the bug does not happen frequently, we don't know how to reproduce.
We also have report from dump file as follows:
KERNELBASE!RaiseException+39
MSVCR100_CLR0400!CxxThrowException+81
clr!AssemblySpecBindingCache::AssemblyBinding::ThrowIfError+38
clr! ?? ::FNODOBFM::`string'+6f100
clr!AssemblySpec::LoadDomainAssembly+129
clr!AssemblySpec::LoadAssembly+1b
clr!AssemblyNative::Load+26a
[[HelperMethodFrame_PROTECTOBJ] (System.Reflection.RuntimeAssembly._nLoad)] System.Reflection.RuntimeAssembly._nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMarkByRef, Boolean, Boolean, Boolean)
mscorlib_ni!System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(System.String, System.Globalization.CultureInfo, System.Version, Boolean, System.Threading.StackCrawlMark ByRef)+ee
mscorlib_ni!System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(System.Globalization.CultureInfo, System.Threading.StackCrawlMark ByRef)+d7
mscorlib_ni!System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(System.Globalization.CultureInfo, System.Collections.Generic.Dictionary`2<System.String,System.Resources.ResourceSet>, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)+e2
mscorlib_ni!System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)+268
mscorlib_ni!System.Resources.ResourceManager.InternalGetResourceSet(System.Globalization.CultureInfo, Boolean, Boolean)+23
mscorlib_ni!System.Resources.ResourceManager.GetString(System.String, System.Globalization.CultureInfo)+13c
Resources.Lang.get_noofticket()+5b
Fanex.Age.UI.Reports.Winloss.WinlossDetailMaster_ExcelContents_Block.get_s32()+28
Fanex.Age.UI.Reports.Winloss.WinlossDetailMaster_ExcelContents_Block.ToString(System.Text.StringBuilder ByRef)+3ce
Fanex.Age.UI.Reports.Winloss.WinlossDetailMaster_Template.ToString(System.Text.StringBuilder ByRef)+40d
Fanex.Age.UI.Reports.Winloss.WinlossDetailMaster_Page.RenderContent(System.Web.UI.HtmlTextWriter)+1fa
Fanex.Age.UI.TplPage.Render(System.Web.UI.HtmlTextWriter)+293
System_Web_ni!System.Web.UI.Page.ProcessRequestMain(Boolean, Boolean)+149a
System_Web_ni!System.Web.UI.Page.ProcessRequest(Boolean, Boolean)+c1
System_Web_ni!System.Web.UI.Page.ProcessRequest()+77
System_Web_ni!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext)+a7
System_Web_ni!System.Web.HttpApplication+CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()+255
System_Web_ni!System.Web.HttpApplication.ExecuteStep(IExecutionStep, Boolean ByRef)+10a
System_Web_ni!System.Web.HttpApplication+PipelineStepManager.ResumeSteps(System.Exception)+6d9
System_Web_ni!System.Web.HttpApplication.BeginProcessRequestNotification(System.Web.HttpContext, System.AsyncCallback)+85
System_Web_ni!System.Web.HttpRuntime.ProcessRequestNotificationPrivate(System.Web.Hosting.IIS7WorkerRequest, System.Web.HttpContext)+2c6
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)+3bf
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)+22
System_Web_ni!DomainNeutralILStubClass.IL_STUB_ReversePInvoke(Int64, Int64, Int64, Int32)+51
clr!UMThunkStubAMD64+77
webengine4!W3_MGD_HANDLER::ProcessNotification+79
webengine4!W3_MGD_HANDLER::DoWork+310
webengine4!RequestDoWork+42d
webengine4!CMgdEngHttpModule::OnExecuteRequestHandler+24
iiscore!NOTIFICATION_CONTEXT::RequestDoWork+233
iiscore!NOTIFICATION_CONTEXT::CallModulesInternal+174
iiscore!NOTIFICATION_CONTEXT::CallModules+25
iiscore!W3_CONTEXT::DoWork+34d
iiscore!W3_CONTEXT::IndicateCompletion+8c
webengine4!W3_MGD_HANDLER::IndicateCompletion+59
webengine4!MgdIndicateCompletion+22
clr!DoNDirectCall__PatchGetThreadCall+7b
System_Web_ni!DomainNeutralILStubClass.IL_STUB_PInvoke(IntPtr, System.Web.RequestNotificationStatus ByRef)+57
[[NDirectMethodFrameStandalone] (System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion)] System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr, System.Web.RequestNotificationStatusByRef)
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr, IntPtr, IntPtr, Int32)+4f4
System_Web_ni!System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr, IntPtr, IntPtr, Int32)+22
System_Web_ni!DomainNeutralILStubClass.IL_STUB_ReversePInvoke(Int64, Int64, Int64, Int32)+51
clr!UM2MThunk_WrapperHelper+4b
clr!UM2MThunk_Wrapper+90
clr!Thread::DoADCallBack+127
[[ContextTransitionFrame]]
clr!UM2MDoADCallBack+9e
clr!UMThunkStubAMD64+273
webengine4!W3_MGD_HANDLER::ProcessNotification+79
webengine4!ProcessNotificationCallback+43
clr!UnManagedPerAppDomainTPCount::DispatchWorkItem+181
clr!ThreadpoolMgr::NewWorkerThreadStart+2e5
clr!ThreadpoolMgr::WorkerThreadStart+3b
clr!Thread::intermediateThreadProc+7d
kernel32!BaseThreadInitThunk+d
ntdll!RtlUserThreadStart+1d
We did try to read source code of mscorlib but System.Reflection.RuntimeAssembly._nLoad led us to a dead-end. Why the issue just occurs with Vietnamese language?
I would greatly appreciate it if you kindly give me some clues to resolve this issue.

Get “Padding is Invalid and cannot be removed” in ASP.NET

I'm seeing this error a lot in my log lately on my prod. I've searched over the net on this error. I saw some notes like this, this or this. The bottom line on all of them is that I should set machineKey. But I already have machineKey set!
Like that:
<machineKey decryption="AES"
validation="SHA1"
decryptionKey="64 hex key"
validationKey="other 64 hex key"/>
Also I'm on web farm server and my application is on asp.net 3.5.
I'm pretty hopeless about this problem =\ How can I solve this?
Thanks.
EDIT:
Here is a full log:
Time: 04/07/2011 19:52:25
MESSAGE: Padding is invalid and cannot be removed.
HTTP_REFERER:
SOURCE: mscorlib
FORM:
QUERYSTRING: d=iAY45pNWTDkOra20F86mL9NBCe-wjxevTFjlNNxafjqLF0Aug2JmvB-c_8JQN4XnDIU1UJTmY2MC1xuySMKscg2&t=633851453303086250
TARGETSITE: Int32 DecryptData(Byte[], Int32, Int32, Byte[] ByRef, Int32, System.Security.Cryptography.PaddingMode, Boolean)
STACKTRACE: 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, IVType ivType, Boolean useValidationSymAlgo)
at System.Web.UI.Page.DecryptStringWithIV(String s, IVType ivType)
at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
A recent ASP.Net patch changed the encryption format.
Make sure that every server in the farm is fully updated.

Microsoft.Practices.Unity.ResolutionFailedException

After installing my WPF application and I try to run the application it crashes and records the error below in the Event Viewer. Anyone has ideas?
'----------------------------------------------------------------------
Application: MyApp.Windows.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: Microsoft.Practices.Unity.ResolutionFailedException
Stack:
at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(System.Type, System.Object, System.String, System.Collections.Generic.IEnumerable`1<Microsoft.Practices.Unity.ResolverOverride>)
at Microsoft.Practices.Unity.UnityContainer.Resolve(System.Type, System.String, Microsoft.Practices.Unity.ResolverOverride[])
at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Microsoft.Practices.Unity.IUnityContainer, Microsoft.Practices.Unity.ResolverOverride[])
at MyApp.Windows.IoC.Resolve[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]()
at MyApp.Windows.Navigation.NavigationController.Navigate(System.String, System.Windows.Controls.UserControl)
at MyApp.Windows.LoginWindow..ctor()
at MyApp.Windows.App.OnStartup(System.Windows.StartupEventArgs)
at System.Windows.Application.<.ctor>b__1(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.runTryCode(System.Object)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode, CleanupCode, System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at MyApp.Windows.App.Main()
I know this thread is pretty old now, but I just wanted to say I just had the same exact exception, and the solution was also pretty much the same.
The event viewer had the same output as in Joe's case.
I managed to catch the exception in VS and it showed me a "ResolutionFailedException while setting value for property Views.MainWindow".
The real problem however was that entity framework tried to build the SqlCE database in a directory that did not exist.. Pretty basic, but the exception was so weird I though i would share my findings.

Resources