【发布时间】:2014-02-24 03:03:36
【问题描述】:
我在 Windows Server 2003 上运行 C# 应用程序时遇到问题。我的内部清单文件包含以下几行
<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>
它适用于 Windows 7 或 8,当用户尝试在没有管理员权限的情况下运行应用程序时会提示 UAC。但是在 windows server 2003 上,用户可以在没有管理员权限的情况下启动它,并且不会提示 UAC,因此应用程序无法正常工作。
【问题讨论】:
标签: c# manifest windows-server-2003 uac