Getting Intermittent Execution permission cannot be acquired error
I hope I can explain the issue as I am more of a business/end user than a SharePoint expert. We are running a SharePoint intranet (MOSS 2007) within a Citrix environment. On intermittent occasions, we are receiving the error that I will post at the end of this message. This is happening intermittently and we simply can not reproduce the error.
100% of the time, we perform an IISReset on the SharePoint server and that resolves the problem. I actually have a scheduled task to run each morning to reset IIS, but the error still occurs on occasion. (again, once the error happens, if i reset IIS, it comes back up).
Has anyone ever run into this issue? Any comments or suggestions? Here is the error message:
Execution permission cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Security.Policy.PolicyException: Execution permission cannot be acquired.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[PolicyException: Execution permission cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +7604136
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'msvcm80, Version=8.0.50727.3053, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Failed to grant permission to execute. (Exception from HRESULT: 0x80131418)]
<CrtImplementationDetails>.DoDllLanguageSupportValidation() +0
<CrtImplementationDetails>.LanguageSupport._Initialize(LanguageSupport* ) +112
<CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* ) +96
[ModuleLoadException: The C++ module failed to load.
]
<CrtImplementationDetails>.ThrowModuleLoadException(String errorMessage, Exception innerException) +38
<CrtImplementationDetails>.ThrowModuleLoadException(String , Exception ) +0
<CrtImplementationDetails>.LanguageSupport.Initialize(LanguageSupport* ) +146
.cctor() +31
[TypeInitializationException: The type initializer for '<Module>' threw an exception.]
System.Runtime.CompilerServices.RuntimeHelpers._RunClassConstructor(IntPtr type) +0
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(RuntimeTypeHandle type) +4
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +141
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +17
Microsoft.SharePoint.Administration.SPAutoSerializingObject.GetInstanceFromType(Type type) +291
Microsoft.SharePoint.Administration.SPPersistedObject.GetInstance(XmlNode xml, Guid classId) +263
Microsoft.SharePoint.Administration.SPFileSystemCache.FetchObjectFromFileSystem(Guid id) +1375
Microsoft.SharePoint.Administration.SPFileSystemCache.GetValue(Guid id) +85
Microsoft.SharePoint.Administration.SPCache`2.get_Item(K key) +92
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id, Boolean checkInMemoryCache) +162
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id) +62
Microsoft.SharePoint.Administration.SPAutoSerializingObject.DeserializeBasicObject(XmlElement xmlValue) +5591
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlNodeList childNodes) +823
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlDocument value) +85
Microsoft.SharePoint.Administration.SPPersistedObject.Initialize(SPConfigurationDatabase configurationDatabase, Guid id, Guid parentId, String name, SPObjectStatus status, Int64 version, XmlDocument state) +563
Microsoft.SharePoint.Administration.SPFileSystemCache.FetchObjectFromFileSystem(Guid id) +1375
Microsoft.SharePoint.Administration.SPFileSystemCache.GetValue(Guid id) +85
Microsoft.SharePoint.Administration.SPCache`2.get_Item(K key) +92
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id, Boolean checkInMemoryCache) +162
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id) +62
Microsoft.SharePoint.Administration.SPAutoSerializingObject.DeserializeBasicObject(XmlElement xmlValue) +5591
Microsoft.SharePoint.Administration.SPAutoSerializingObject.DeserializeBasicObject(XmlElement xmlValue) +2041
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlNodeList childNodes) +823
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlDocument value) +85
Microsoft.SharePoint.Administration.SPAutoSerializingObject.DeserializeBasicObject(XmlElement xmlValue) +607
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlNodeList childNodes) +823
Microsoft.SharePoint.Administration.SPAutoSerializingObject.SetStateXml(XmlDocument value) +85
Microsoft.SharePoint.Administration.SPPersistedObject.Initialize(SPConfigurationDatabase configurationDatabase, Guid id, Guid parentId, String name, SPObjectStatus status, Int64 version, XmlDocument state) +563
Microsoft.SharePoint.Administration.SPFileSystemCache.FetchObjectFromFileSystem(Guid id) +1375
Microsoft.SharePoint.Administration.SPFileSystemCache.GetValue(Guid id) +85
Microsoft.SharePoint.Administration.SPCache`2.get_Item(K key) +92
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id, Boolean checkInMemoryCache) +162
Microsoft.SharePoint.Administration.SPConfigurationDatabase.GetObject(Guid id) +62
Microsoft.SharePoint.Administration.SPPersistedObjectCollection`1.get_BackingList() +993
Microsoft.SharePoint.Administration.SPPersistedObjectCollection`1.GetEnumerator() +62
Microsoft.SharePoint.Administration.SPWebApplication.AcquireAlternateUrlCache(SPFarm farm) +161
Microsoft.SharePoint.Administration.SPWebApplication.Lookup(SPFarm farm, Uri requestUri, Boolean fallbackToHttpContext, SPAlternateUrl& alternateUrl, SiteMapInfo& hostHeaderSiteInfo, Boolean& lookupRequiredContext) +1491
Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.EnsureInitialize(HttpRequest request) +692
Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.BeginRequestHandler(Object oSender, EventArgs ea) +2347
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3601
March 30th, 2010 4:56pm
So Much for my being on to something....The error came back...I've opened up a support case with MS...Will post back any resolution.
Free Windows Admin Tool Kit Click here and download it now
August 6th, 2010 4:53pm
Anything back from MS? I also get excatly the same callstack.
From the callstack, it somehow seems to be related to the on-Disk-Cache of Shrepoint ...
September 2nd, 2010 12:41pm
ARG! My problem has returned.
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2010 5:50am
I have this issue too in one of the SharePoint farms I am currently responsible for. Except that my error message is slightly different:
Could not load file or assembly 'msvcm80, Version=8.0.50727.4053 <- note the minor build number of the msvcm80.dll.
If you go into c:\windows\winSxS\ and search it and its subdirectories for msvcm80.dll, what do you find? I found several versions of this dll, all in folders that have names that include
either amd or x86 and the full version number of the dll along with other gunk - very long folder names. I think SharePoint is using the latest version of the versions in this folder. One thing you can try is this update,
http://www.microsoft.com/downloads/en/details.aspx?familyid=fb01abe6-9099-4544-9aec-0ac13f19bc50&displaylang=en, because it deploys msvcm80.dll v8.0.50727.5592. I'm
hoping, although I have no proof yet, that this newer version won't have the issue that the .3053 and .4053 versions do.
Do you have any details about what the interaction is with the Search
service? Can you reproduce the issue on demand by having the search service timer jobs run at just the right time?Sr. Consultant, Magenic [Microsoft Gold Partner] | MCITP SP2010, MCTS, MCSE, MCDBA, MCAD, CAPM | Webmaster, Chicago SharePoint User Group - www.cspug.org | INETA Community Champion, 3Q2010
April 26th, 2011 9:51am
I've got a solution to your problem here:
http://support.microsoft.com/kb/2481343
Hope it helps! Good luck!
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2011 5:34am