Outlook Web 插件清单创建 'Invalid xsi:type=Event'
Outlook Web Addin manifest creates 'Invalid xsi:type=Event'
我们正在创建一个包含 Onsend
功能的 Outlook Web 插件。
模板在没有在清单中添加 ExtensionType
标签的情况下工作正常,但是当我们添加该标签时,它会触发错误 (screenshot):
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
</ExtensionPoint>
我们 searched further and found that adding a verionoverrides
(screenshot) 标记更正了错误,但在编译过程中,它抛出了错误:
Failed to deploy the manifest file to the Exchange server. An internal server error occurred. The operation failed., Object reference not set to an instance of an object.
有没有人遇到同样的错误,或者任何人都可以指导正确的路径来解决这个问题吗?
以下片段包含在版本覆盖 1.0 中:
没有扩展点,这不是清单的有效部分。删除后,您应该能够安装清单。
在尝试了所有方法之后,我终于找到了一种方法,而且它太简单了。实际上,您需要做的只是从您的清单文件 (.xml) 中复制所有代码,并将其替换为您在服务器上发布的代码或您的个人清单文件,无论您的情况如何。
这是解决方案,我通过在 onsend 事件中放置一个测试对话框来确认它有效。希望这对有同样经历的人有所帮助。
PS。我认为文档应该提及此解决方法,以便更容易理解。
我们正在创建一个包含 Onsend
功能的 Outlook Web 插件。
模板在没有在清单中添加 ExtensionType
标签的情况下工作正常,但是当我们添加该标签时,它会触发错误 (screenshot):
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
</ExtensionPoint>
我们 searched further and found that adding a verionoverrides
(screenshot) 标记更正了错误,但在编译过程中,它抛出了错误:
Failed to deploy the manifest file to the Exchange server. An internal server error occurred. The operation failed., Object reference not set to an instance of an object.
有没有人遇到同样的错误,或者任何人都可以指导正确的路径来解决这个问题吗?
以下片段包含在版本覆盖 1.0 中:
在尝试了所有方法之后,我终于找到了一种方法,而且它太简单了。实际上,您需要做的只是从您的清单文件 (.xml) 中复制所有代码,并将其替换为您在服务器上发布的代码或您的个人清单文件,无论您的情况如何。
这是解决方案,我通过在 onsend 事件中放置一个测试对话框来确认它有效。希望这对有同样经历的人有所帮助。
PS。我认为文档应该提及此解决方法,以便更容易理解。