首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从文件MaterialDesignThemes.Wpf.dll加载清单时发生异常

从文件MaterialDesignThemes.Wpf.dll加载清单时发生异常
EN

Stack Overflow用户
提问于 2022-08-22 20:45:24
回答 1查看 101关注 0票数 0

我几乎每隔一次就这个错误访问过一次,似乎找不到解决问题的方法。我有一个在公司内部使用的ClickOnce应用程序,安装程序在几台不同的机器上工作,但不是我的用户的。我想知道这是否是权限问题或其他什么问题,因为考虑到它对其他人都安装得很好,这些错误是没有意义的。请告诉我你的想法。下面的错误文件(为了隐私起见删除了一些部分):

代码语言:javascript
复制
    Windows             : 10.0.19044.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.8.4270.0 built by: NET48REL1LAST_C
    clr.dll             : 4.8.4515.0 built by: NET48REL1LAST_C
    dfdll.dll           : 4.8.4270.0 built by: NET48REL1LAST_C
    dfshim.dll          : 10.0.19041.1 (WinBuild.160101.0800)

IDENTITIES
    Deployment Identity     : Parsing Helper.application, Version=1.0.0.20, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil
    Application Identity        : Parsing Helper.exe, Version=1.0.0.20, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
    * Installable application.

ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of I:\..\Parsing Helper.application resulted in exception. Following failure messages were detected:
        + Exception occurred loading manifest from file MaterialDesignThemes.Wpf.dll: the manifest may not be valid or the file could not be opened. 
        + File MaterialDesignThemes.Wpf.dll is not a valid Portable Executable (PE) file.
        + PE file does not have enough data.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
    No transaction error was detected.

WARNINGS
    * The manifest for this application does not have a signature. Signature validation will be ignored.
    * The manifest for this application does not have a signature. Signature validation will be ignored.
    * The manifest for this application does not have a signature. Signature validation will be ignored.

OPERATION PROGRESS STATUS
    * [8/18/2022 3:11:50 PM] : Activation of I:\..\Parsing Helper.application has started.
    * [8/18/2022 3:11:52 PM] : Processing of deployment manifest has successfully completed.
    * [8/18/2022 3:11:52 PM] : Installation of the application has started.
    * [8/18/2022 3:11:54 PM] : Processing of application manifest has successfully completed.
    * [8/18/2022 3:11:56 PM] : Found compatible runtime version 4.0.30319.
    * [8/18/2022 3:11:56 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
    Following errors were detected during this operation.
    * [8/18/2022 3:12:32 PM] System.Deployment.Application.InvalidDeploymentException (ManifestLoad)
        - Exception occurred loading manifest from file MaterialDesignThemes.Wpf.dll: the manifest may not be valid or the file could not be opened. 
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.Manifest.AssemblyManifest.ManifestLoadExceptionHelper(Exception exception, String filePath)
            at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
            at System.Deployment.Application.DownloadManager.ProcessDownloadedFile(Object sender, DownloadEventArgs e)
            at System.Deployment.Application.FileDownloader.DownloadModifiedEventHandler.Invoke(Object sender, DownloadEventArgs e)
            at System.Deployment.Application.FileDownloader.OnModified()
            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.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
            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.IO.IOException
        - File MaterialDesignThemes.Wpf.dll is not a valid Portable Executable (PE) file.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)
            at System.Deployment.Application.Manifest.AssemblyManifest.LoadFromInternalManifestFile(String filePath)
        --- Inner Exception ---
        System.IO.IOException
        - PE file does not have enough data.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.PEStream.PEComponent.ReadData(FileStream file, Int64 position, Type dataType)
            at System.Deployment.Application.PEStream.ResourceDirectoryEntry..ctor(FileStream file, Int64 address)
            at System.Deployment.Application.PEStream.ResourceDirectory..ctor(ResourceSection resourceSection, FileStream file, Int64 rootResourceAddress, Int64 resourceAddress, Int64 addressDelta, Boolean partialConstruct)
            at System.Deployment.Application.PEStream.ResourceSection..ctor(FileStream file, SectionHeader sectionHeader, Boolean partialConstruct)
            at System.Deployment.Application.PEStream.ConstructPEImage(FileStream file, Boolean partialConstruct)
            at System.Deployment.Application.PEStream.ConstructFromFile(String filePath, Boolean partialConstruct)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.
EN

回答 1

Stack Overflow用户

发布于 2022-09-01 01:12:41

终于明白了。它与MaterialDesignThemes没有任何关系,具体而言,由于权限问题,没有任何东西能够写入用户的驱动器。我通过取消应用程序最终安装的子文件夹属性上的“只读”复选框来解决这个问题:C:\Users\<username>\AppData\Local\Apps

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73450850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档