2013-07-08 8 views
0

Мы периодически получаем эту ошибку на нашем веб-сайте .net 4 веб-форм. Обычно утилизация пула приложений решает его.Отсутствует ссылка на Microsoft.scripting.ExtensionAttrribute.dll

Единственные ссылки, которые я могу найти в нем, похоже, связаны либо с использованием Umbraco, либо с использованием динамического языка Runtime. Ни один из них не относится к нам.

Единственная полезная ссылка я нашел это: http://support.frozenmountain.com/entries/23667761-Compatibility-issue-using-ASP-Net-4-0-Extensions-and-ScriptManager

Любых других решений, кроме добавления unnecesary ссылки?

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Scripting.ExtensionAttribute, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'  at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)  at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)  at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)  at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)  at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)  at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)  at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean isDecoratedTargetSecurityTransparent)  at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)  at System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly)  at System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly()  at System.Web.UI.ScriptManager..ctor()  at ASP.masterpages_safarinow_master.__BuildControlMasterScriptManager()  at ASP.masterpages_safarinow_master.__BuildControlfrmMain()  at ASP.masterpages_safarinow_master.__BuildControlmasterBodyTag()  at ASP.masterpages_safarinow_master.__BuildControlTree(masterpages_safarinow_master __ctrl)  at System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection)  at System.Web.UI.Page.ApplyMasterPage()  at System.Web.UI.Page.PerformPreInit()  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].  at System.Web.UI.Page.HandleError(Exception e)  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  at System.Web.UI.Page.ProcessRequest()  at System.Web.UI.Page.ProcessRequest(HttpContext context)  at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

ответ

0

Хотя вы сказали, что не используете DLR, это единственное место, где этот файл существует. Сообщение об ошибке настоятельно указывает на то, что вы используете более старую версию IronPython (или IronRuby или некоторую другую вещь на основе DLR), которая была создана для .NET 2.0-3.5. Где-то есть файлы с именами, такими как «Microsoft.Dynamic.dll», «Microsoft.Scripting.Core.dll» и «Microsoft.Scripting.dll». Все, что с этим связано, должно быть обновлено версией DLR, созданной специально для .NET 4.0.

+0

Спасибо, я думаю, что это может быть связано с использованием обложек оболочки> net> –

Смежные вопросы