我正在尝试添加一个需要提升到我的.NET 2.0 EXE的应用程序清单.我已经为一个简单的EXE做了这个,它没有任何问题,但是在这个更复杂的EXE上,它不起作用.
我的EXE在我的解决方案中有一个配置文件和许多其他DLL的依赖项.
当我启动EXE时,我收到一个SideBySide错误说" Activation context generation failed for "C:\MyCompany.MyProduct.WinUI.exe".Error in manifest or policy file "C:\MyCompany.MyProduct.WinUI.exe.Config" on line 1. Invalid Xml syntax."
我的配置文件与清单文件有什么关系?这是我的清单:
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"
xmlns:asmv2="urn:schemas-microsoft-com:asm.v2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<assemblyIdentity version="2.10.0.0" name="MyCompany.MyProduct.WinUI"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</asmv1:assembly>
Run Code Online (Sandbox Code Playgroud) 我正在签署一个EXE程序,其中包含由可信CA颁发的证书.我正在使用Windows SDK v6.0a中的signtool.exe.
证书位于计算机商店中,位于"Personals"文件夹中.
我的命令行是:
sign /sm /n "My company" /d MyProductName /du http://my.url.com "C:\Setup\setup.exe"
Run Code Online (Sandbox Code Playgroud)
当我在命令行上运行此命令时,它工作正常.当我在批处理过程中运行此命令(由webservice调用,因此在执行命令时没有用户登录)时,会发生以下错误:
错误数:1 SignTool错误:ISignedCode :: Sign返回错误:0x80092006没有为商店或对象指定提供程序.
有人可以帮忙吗?
我有一个示例WCF项目,它重现了我的真实WCF应用程序的问题.您可以在此处下载我的示例WCF应用程序的源代码
根据代码和配置文件中的超时集,我不明白出现了什么:
**** Server exception : System.ServiceModel.CommunicationObjectAbortedException:
The communication object, System.ServiceModel.Security.SecuritySessionServerSettings+SecurityReplySessionChannel, cannot be used for communication because it
has been Aborted.
at System.ServiceModel.Channels.CommunicationObject.ThrowIfClosedOrNotOpen()
at System.ServiceModel.Security.SecuritySessionServerSettings.ServerSecuritySessionChannel.SecureApplicationMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)
at System.ServiceModel.Security.SecuritySessionServerSettings.SecuritySessionRequestContext.OnReply(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestContextBase.Reply(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestContextBase.Reply(Message message)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Reply(MessageRpc& rpc)
**** client exception : : System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: The message …Run Code Online (Sandbox Code Playgroud)