Unable to view restored site pages - sharepoint-2010

I made a prototype of the SharePoint 2010 site in via the VirtualBox machine. I have successfully made a backup of the entire farm (all elements are backuped without errors).
After that I have restored the backup on another VirtualBox snapshot and on a real machine without errors (all elements were restored successfully).
However, when browsing some SubSites and their page, I receive the following error:
Server Error in '/' Application.
<nativehr>0x80070012</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000CADB7) at 0x000007FEEEB6ADB7
stswel.dll: (unresolved symbol, module offset=00000000000F7F3F) at 0x000007FEEEB97F3F...
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:
[
COMException (0x80070012): <nativehr>0x80070012</nativehr><nativestack>stswel.dll: (unresolved symbol, module offset=00000000000CADB7) at 0x000007FEEEB6ADB7
stswel.dll: (unresolved symbol, module offset=00000000000F7F3F) at 0x000007FEEEB97F3F
stswel.dll: (unresolved symbol, module offset=00000000000F945B) at 0x000007FEEEB9945B
owssvr.dll: (unresolved symbol, module offset=00000000000B460F) at 0x000007FEEE2C460F
owssvr.dll: (unresolved symbol, module offset=00000000000C07CC) at 0x000007FEEE2D07CC
mscorwks.dll: (unresolved symbol, module offset=00000000002BF827) at 0x000007FEF76AF827
Microsoft.SharePoint.Library.ni.dll: (unresolved symbol, module offset=00000000000E6D39) at 0x000007FEEEA16D39
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A4F67D) at 0x000007FEF2F6F67D
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001A1E9B6) at 0x000007FEF2F3E9B6
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C0779E) at 0x000007FEF312779E
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001C080E4) at 0x000007FEF31280E4
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F22EAC) at 0x000007FEF3442EAC
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FD0545) at 0x000007FEF34F0545
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FD2FBE) at 0x000007FEF34F2FBE
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C467F) at 0x000007FEF08C467F
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C447B) at 0x000007FEF08C447B
System.Web.ni.dll: (unresolved symbol, module offset=00000000002C432A) at 0x000007FEF08C432A
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FCFE7A) at 0x000007FEF34EFE7A
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F21816) at 0x000007FEF3441816
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001F22D20) at 0x000007FEF3442D20
Microsoft.SharePoint.ni.dll: (unresolved symbol, module offset=0000000001FCFF46) at 0x000007FEF34EFF46
Micros</nativestack>]
Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +0
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +589
[SPException]
Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) +27254482
Microsoft.SharePoint.Library.SPRequest.GetFileAndMetaInfo(String bstrUrl, Byte bPageView, Byte bPageMode, Byte bGetBuildDependencySet, String bstrCurrentFolderUrl, Int32 iRequestVersion, Boolean& pbCanCustomizePages, Boolean& pbCanPersonalizeWebParts, Boolean& pbCanAddDeleteWebParts, Boolean& pbGhostedDocument, Boolean& pbDefaultToPersonal, Boolean& pbIsWebWelcomePage, String& pbstrSiteRoot, Guid& pgSiteId, UInt32& pdwVersion, String& pbstrTimeLastModified, String& pbstrContent, Byte& pVerGhostedSetupPath, UInt32& pdwPartCount, Object& pvarMetaData, Object& pvarMultipleMeetingDoclibRootFolders, String& pbstrRedirectUrl, Boolean& pbObjectIsList, Guid& pgListId, UInt32& pdwItemId, Int64& pllListFlags, Boolean& pbAccessDenied, Guid& pgDocid, Byte& piLevel, UInt64& ppermMask, Object& pvarBuildDependencySet, UInt32& pdwNumBuildDependencies, Object& pvarBuildDependencies, String& pbstrFolderUrl, String& pbstrContentTypeOrder) +27641455
Microsoft.SharePoint.SPWeb.GetWebPartPageContent(Uri pageUrl, Int32 pageVersion, PageView requestedView, HttpContext context, Boolean forRender, Boolean includeHidden, Boolean mainFileRequest, Boolean fetchDependencyInformation, Boolean& ghostedPage, Byte& verGhostedPage, String& siteRoot, Guid& siteId, Int64& bytes, Guid& docId, UInt32& docVersion, String& timeLastModified, Byte& level, Object& buildDependencySetData, UInt32& dependencyCount, Object& buildDependencies, SPWebPartCollectionInitialState& initialState, Object& oMultipleMeetingDoclibRootFolders, String& redirectUrl, Boolean& ObjectIsList, Guid& listId) +1750
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformationForInit(HttpContext context, SPWeb spweb, Boolean mainFileRequest, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& spLevel, String& masterPageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData, SPWebPartCollectionInitialState& initialState, String& siteRoot, String& redirectUrl, Object& oMultipleMeetingDoclibRootFolders, Boolean& objectIsList, Guid& listId, Int64& bytes) +26195281
Microsoft.SharePoint.ApplicationRuntime.SPRequestModuleData.FetchWebPartPageInformation(HttpContext context, String path, Boolean impersonate, Boolean& fGhostedPage, Byte& verGhostedPage, Guid& docId, UInt32& docVersion, String& timeLastModified, SPFileLevel& level, String& masterpageUrl, String& customMasterPageUrl, String& webUrl, String& siteUrl, Guid& siteId, Object& buildDependencySetData) +388
Microsoft.SharePoint.ApplicationRuntime.SPDatabaseFile.EnsureContentFetched(HttpContext context, SPRequestModuleData requestData) +364
Microsoft.SharePoint.ApplicationRuntime.SPVirtualFile.GetFile(String virtualPath, Boolean fetchContent) +101
Microsoft.SharePoint.ApplicationRuntime.SPVirtualPathProvider.GetFile(String virtualPath) +78
System.Web.Hosting.VirtualPathProvider.GetFileWithCheck(String virtualPath) +31
System.Web.UI.DependencyParser.ParseFile(String physicalPath, VirtualPath virtualPath) +219
System.Web.UI.DependencyParser.GetVirtualPathDependencies() +10955063
Some resource files imported via the SharePoint designer are unavailable as well.

This issue is caused by the fact that the v4.master Master Page of a specific SubSite is corrupted (and was missing after restoration... for some reason).
When opening a restored SubSite in the SharePoint Designer, the corresponding Design Time error message occurs.

Related

Downloading Clickonce application fails in WebBrowser control

I am using webbrowser Control in my application and conditionally needs to download another application ( click once based) without user interaction. the download of the application works from Edge browser as expected.
Download fails in webbrowser control with following error
OPERATION PROGRESS STATUS
* [3/4/2022 3:58:28 PM] : Activation of C:\Users\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce[1].application has started.
* [3/4/2022 3:58:29 PM] : Processing of deployment manifest has successfully completed.
* [3/4/2022 3:58:29 PM] : Installation of the application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [3/4/2022 3:58:29 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
- Downloading file:///C:/Users/Test4/AppData/Local/Microsoft/Windows/INetCache/IE/2XZDUQN2/TestClickonce.exe.manifest did not succeed.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- Source: System
- Stack trace:
at System.Net.FileWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- Inner Exception ---
System.Net.WebException
- Could not find file 'C:\Users\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- Source: System
- Stack trace:
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
at System.Net.FileWebRequest.GetResponseCallback(Object state)
--- Inner Exception ---
System.IO.FileNotFoundException
- Could not find file 'C:\Users\Test4\AppData\Local\Microsoft\Windows\INetCache\IE\2XZDUQN2\TestClickonce.exe.manifest'.
- Source: mscorlib
- Stack trace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.Net.FileWebStream..ctor(FileWebRequest request, String path, FileMode mode, FileAccess access, FileShare sharing, Int32 length, Boolean async)
at System.Net.FileWebResponse..ctor(FileWebRequest request, Uri uri, FileAccess access, Boolean asyncHint)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

No project templates are compiling with Visual Studio 2017 RC

On clean a Windows 10 64 machine, I have installed Visual Studio 2017 RC (along with ALL components) and no projects are building at all. They are all failing with this error:
Child node "2" exited prematurely. Shutting down. Diagnostic
information may be found in files in the temporary files directory
named MSBuild_*.failure.txt.
When i investigate the log file it mentions it says:
UNHANDLED EXCEPTIONS FROM PROCESS 7300:
===================== 07/01/2017 19:30:19 System.IO.FileNotFoundException: The system cannot find the file
specified. (Exception from HRESULT: 0x80070002) at
Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance() at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.ReadApplicationConfiguration()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.get_ConfigurationSection()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.<get_ToolsVersions>d__8.MoveNext()
at
Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties) at
Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties, String&
msBuildOverrideTasksPath, String& defaultOverrideToolsVersion) at
Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2
toolsets, ToolsetRegistryReader registryReader,
ToolsetConfigurationReader configurationReader, PropertyDictionary`1
environmentProperties, PropertyDictionary`1 globalProperties,
ToolsetDefinitionLocations locations) at
Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader
registryReader, ToolsetConfigurationReader configReader) at
Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2
globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers,
ToolsetDefinitionLocations toolsetDefinitionLocations, Int32
maxNodeCount, Boolean onlyLogCriticalEvents) at
Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection()
at
Microsoft.Build.Execution.OutOfProcNode.HandleNodeConfiguration(NodeConfiguration
configuration) at
Microsoft.Build.Execution.OutOfProcNode.HandlePacket(INodePacket
packet) at Microsoft.Build.Execution.OutOfProcNode.Run(Boolean
enableReuse, Exception& shutdownException) at
Microsoft.Build.CommandLine.MSBuildApp.StartLocalNode(CommandLineSwitches
commandLineSwitches) at
Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches
switchesFromAutoResponseFile, CommandLineSwitches
switchesNotFromAutoResponseFile, String& projectFile, String[]&
targets, String& toolsVersion, Dictionary`2& globalProperties,
ILogger[]& loggers, LoggerVerbosity& verbosity, List`1&
distributedLoggerRecords, Boolean& needToValidateProject, String&
schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter&
preprocessWriter, Boolean& debugger, Boolean& detailedSummary, Boolean
recursing) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String
commandLine) at Microsoft.Build.CommandLine.MSBuildApp.Main()
=================== 07/01/2017 19:30:19 System.IO.FileNotFoundException: The system cannot find the file
specified. (Exception from HRESULT: 0x80070002) at
Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance() at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.ReadApplicationConfiguration()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.get_ConfigurationSection()
at
Microsoft.Build.Evaluation.ToolsetConfigurationReader.<get_ToolsVersions>d__8.MoveNext()
at
Microsoft.Build.Evaluation.ToolsetReader.ReadEachToolset(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties) at
Microsoft.Build.Evaluation.ToolsetReader.ReadToolsets(Dictionary`2
toolsets, PropertyDictionary`1 globalProperties, PropertyDictionary`1
initialProperties, Boolean accumulateProperties, String&
msBuildOverrideTasksPath, String& defaultOverrideToolsVersion) at
Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2
toolsets, ToolsetRegistryReader registryReader,
ToolsetConfigurationReader configurationReader, PropertyDictionary`1
environmentProperties, PropertyDictionary`1 globalProperties,
ToolsetDefinitionLocations locations) at
Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader
registryReader, ToolsetConfigurationReader configReader) at
Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2
globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers,
ToolsetDefinitionLocations toolsetDefinitionLocations, Int32
maxNodeCount, Boolean onlyLogCriticalEvents) at
Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection()
at
Microsoft.Build.Execution.OutOfProcNode.HandleNodeConfiguration(NodeConfiguration
configuration) at
Microsoft.Build.Execution.OutOfProcNode.HandlePacket(INodePacket
packet) at Microsoft.Build.Execution.OutOfProcNode.Run(Boolean
enableReuse, Exception& shutdownException) at
Microsoft.Build.CommandLine.MSBuildApp.StartLocalNode(CommandLineSwitches
commandLineSwitches) at
Microsoft.Build.CommandLine.MSBuildApp.ProcessCommandLineSwitches(CommandLineSwitches
switchesFromAutoResponseFile, CommandLineSwitches
switchesNotFromAutoResponseFile, String& projectFile, String[]&
targets, String& toolsVersion, Dictionary`2& globalProperties,
ILogger[]& loggers, LoggerVerbosity& verbosity, List`1&
distributedLoggerRecords, Boolean& needToValidateProject, String&
schemaFile, Int32& cpuCount, Boolean& enableNodeReuse, TextWriter&
preprocessWriter, Boolean& debugger, Boolean& detailedSummary, Boolean
recursing) at Microsoft.Build.CommandLine.MSBuildApp.Execute(String
commandLine) at Microsoft.Build.CommandLine.MSBuildApp.Main()
===================
I have repaired the installation and done a full uninstall/install that doesnt make a difference.
Tried turning logging on under Tools -> Options to diagnostic but it doesnt show me which file it is refering to in the error message in the log file.
This works with existing projects and new projects. Any ideas?
NOTE: I did originally install VS on a non default non system drive but removed this and re did it to the default installation.

System.TypeLoadException: "ImageResizer.Util.BundleAttribute"

I try migration ImageResizer v3 to v4. After upgrade I can not call ImageResizer and not even support page. Support page error is:
[TypeLoadException: Der Typ "ImageResizer.Util.BundleAttribute" in der Assembly "ImageResizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" konnte nicht geladen werden.]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +191
System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +162
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) +148
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +604
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +144
System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit) +111
System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit) +17
System.Reflection.CustomAttributeExtensions.GetCustomAttribute(Assembly element) +60
ImageResizer.Plugins.Basic.DiagnosticPageHandler.GenerateOutput(HttpContext context, Config c) +943
ImageResizer.Plugins.Basic.DiagnosticPageHandler.ProcessRequest(HttpContext context) +168
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +904
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +98
How can I fix that? I uninstalled modules and reinstalled but with no luck:
ImageResizer.4.0.5
ImageResizer.Plugins.TinyCache.4.0.5
You have left in 1 or more plugins from ImageResizer v3. You can't use a a v3 plugin with v4 ImageResizer.dll.

Missing reference to Microsoft.scripting.ExtensionAttrribute.dll

We intermittently get this error on our .net 4 web forms web site. Recycling the app pool seems typically resolves it.
The only references i can find to it seem to be related to either using Umbraco, or the Dynamic language Runtime. Neither of which applies to us.
The only useful link I have found is this: http://support.frozenmountain.com/entries/23667761-Compatibility-issue-using-ASP-Net-4-0-Extensions-and-ScriptManager
Any other solutions, other than adding the unnecesary reference?
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)
Although you said that you're not using the DLR, that's the only place this file exists. The error message strongly suggests that you're using an older version of IronPython (or IronRuby or some other DLR-based thing) which was built for .NET 2.0-3.5. Somewhere, there are files with names like "Microsoft.Dynamic.dll", "Microsoft.Scripting.Core.dll", and "Microsoft.Scripting.dll". Whatever is using this should be updated with a version of the DLR which was built specifically for .NET 4.0.

Adding Unity dll reference to Silverlight 4 project

This morning I had an unusual issue with my Silverlight 4 app. I have been a big fan of IoC frameworks, so decided I will use Unity for my project. But as soon as I added the assembly to my project, I got this following error.
System.Windows.Markup.XamlParseException occurred
Message=Could not load type 'System.Security.AllowPartiallyTrustedCallersAttribute' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.
StackTrace: 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.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.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
at System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit)
at MS.Internal.XamlSchemaContext.ProcessXmlnsDefinitions(Assembly assembly, String assemblyName)
at MS.Internal.XamlSchemaContext.EnsureManagedAssemblyAttributesLoaded()
InnerException:
Now if I remove the dll my app works absolutely fine. I have been scratching my head since morning and not having much luck with StackOverflow search or Google.
Any help is much appreciated.
Cheers---Jag
Please verify that you're actually referencing the Silverlight assembly rather than the desktop one. The AllowPartiallyTrustedCallersAttribute class isn't in the Silverlight version.
Are you using Unity 2.0? If so, the DLL is named "Microsoft.Practices.Unity.Silverlight.dll". Is that the DLL you've added? If the ".Silverlight" isn't in the file name, then you're referencing the desktop dll instead.
This article might provide some useful information. It basically says that:
"the limitation when using Unity in a
partial trust environment is that you
cannot register and use mappings using
the RegisterType methods where the
target class is internal (C#), Friend
(Visual Basic .NET), private (C#), or
Private (Visual Basic .NET)."
Doing a clean build followed by a full rebuild fixed this issue for me.