打开单词加载项对话框时,ScriptedSandbox64.exe已停止工作 [英] ScriptedSandbox64.exe has stopped working when opening word add-in dialog

查看:243
本文介绍了打开单词加载项对话框时,ScriptedSandbox64.exe已停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Visual Studio 2017 Community Edition(在Windows Server 2016 Standard上开发-带有RDP)制作Word Web加载项.

我需要在应用程序中添加一个对话框窗口,因为我需要为应用程序的一部分提供更多的屏幕空间.

因此,我正在显示一个对话框,在此进行了解释: https://dev.office. com/docs/add-ins/develop/dialog-api-in-office-add-ins

Office.context.ui.displayDialogAsync(window.location.protocol + '//' + window.location.host + '/TestDialog.html'); 

TestDialog.html:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>Test Dialog</title>
    <script src="https://www.promisejs.org/polyfills/promise-7.0.4.min.js"></script>
    <script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>

    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/2.1.0/fabric.min.css">
    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/2.1.0/fabric.components.min.css">
</head>
<body>
    Test dialog
</body>
</html>

该对话框成功弹出,但是此后立即出现Windows错误"ScriptedSandbox64.exe已停止工作".另外,在那之后,当我执行任何代码来同步文档时,我会收到错误消息:

GeneralException:发生内部错误

我想这是由崩溃的ScriptedSandbox.exe引起的. 当我对异常执行console.log()并尝试在VisualStudio中查看异常信息时,也会收到ScriptedSandbox.exe错误.

我尝试了这个stackoverflow问题的解决方案,但这确实对我有帮助: ScriptedSandbox64.exe已停止工作-Visual Studio 2015

在Windows事件日志中,我看到以下内容:

  • 当我在Office中收到错误消息时:

故障存储桶,键入0事件名称:VisualStudioNonFatalErrors2 响应:不可用驾驶室ID:0问题签名:P1: ScriptedSandbox64.exe P2:15.0.26228.9 D15RTWSVC P3: VS/ScriptedHost/Dom版本:1.0 P4:标题:Dom版本:1.0域: microsoft.com P5:15.0.26228.0 P6:58b562f7 P7:res://c:\ program文件 (x86)\ Microsoft Visual studio \ 2017 \ community \ common7 \ ide \ commonextensions \ microsoft \ webclient \ diagnostics \ toolwindows \ vsresources.dll/#23/console/ConsoleMerged.js P8:5938 P9:已添加目标:uid0 P10:ScriptedPluginHost 附件:\?\ C:\ Users \ ADMINI〜1 \ AppData \ Local \ Temp \ 2 \ SPE9F38.tmp 这些文件可能在这里可用:分析符号:重新检查 解决方案:0报告ID:66676cbf-1228-11e7-85c1-d8d385e237a2报告 状态:262144哈希桶:

  • 当我在Visual Studio中收到错误时,尝试获取异常信息时:

故障桶127830074891,类型5事件名称: VisualStudioNonFatalErrors2响应:不可用出租车编号:0问题 签名:P1:ScriptedSandbox64.exe P2:15.0.26228.9 D15RTWSVC P3: VS/ScriptedHost/Dom版本:1.0 P4:标题:Dom版本:1.0 域:microsoft.com P5:15.0.26228.0 P6:58b562f7 P7: res://c:\ program files(x86)\ microsoft visual studio \ 2017 \ community \ common7 \ ide \ commonextensions \ microsoft \ webclient \ diagnostics \ toolwindows \ vsresources.dll/#23/console/ConsoleMerged.js P8:3632 P9:无法获取未定义或为空的属性"channel" 参考:P10:ScriptedPluginHost附件: \?\ C:\ Users \ ADMINI〜1 \ AppData \ Local \ Temp \ 2 \ SPE862B.tmp \?\ C:\ ProgramData \ Microsoft \ Windows \ WER \ Temp \ WER86C1.tmp.WERInternalMetadata.xml 这些文件可能在这里可用: C:\ ProgramData \ Microsoft \ Windows \ WER \ ReportArchive \ Critical_ScriptedSandbox6_f7aa31cc56162be295698083cac29769faeb4a7_00000000_17ac8f0e 分析符号:重新检查解决方案:0报告ID: b0b5bb75-1228-11e7-85c1-d8d385e237a2报告状态:1哈希值桶: 558ba9ae3c60bfdc002e0f1b9732736d

有人对这个问题可能是什么,或者我如何解决这个问题有任何想法吗?

解决方案

我怀疑这确实是2个独立的问题.

似乎不可能从外接程序对话框中同步到文档.为了解决这个问题,我现在使用以下代码将信息传递回主用户界面:

    Office.context.ui.messageParent(JSON.stringify({
        type: 'myCustomType',
        data: myData
    }))

另一个问题,消息"ScriptedSandbox64.exe已停止工作",仅当您使用Visual Studio时才会出现,而不是在已发布的版本中出现.我现在就点击它.

I'm currently making a Word Web Add-in using Visual Studio 2017 Community Edition (developing on Windows Server 2016 Standard - with RDP).

I need to add a dialog window to my application, because I need a little more screen estate for a part of my application.

So I'm showing a dialog as it's been explained over here: https://dev.office.com/docs/add-ins/develop/dialog-api-in-office-add-ins

Office.context.ui.displayDialogAsync(window.location.protocol + '//' + window.location.host + '/TestDialog.html'); 

TestDialog.html:

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>Test Dialog</title>
    <script src="https://www.promisejs.org/polyfills/promise-7.0.4.min.js"></script>
    <script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>

    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/2.1.0/fabric.min.css">
    <link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/2.1.0/fabric.components.min.css">
</head>
<body>
    Test dialog
</body>
</html>

The dialog pops up succesfully, but right after that I get a windows error "ScriptedSandbox64.exe has stopped working". Also, after that, when I execute any code to sync the document, I get the error:

GeneralException: An internal error occured

I suppose this is caused by the crashed ScriptedSandbox.exe. When I do a console.log() of the exception, and I try to look at the exception information in VisualStudio, I also get the ScriptedSandbox.exe error.

I tried the solution from this stackoverflow issue, but this does help in my case: ScriptedSandbox64.exe has stopped working - Visual Studio 2015

In the windows event log, I see the following:

  • When I get the error in Office:

Fault bucket , type 0 Event Name: VisualStudioNonFatalErrors2 Response: Not available Cab Id: 0 Problem signature: P1: ScriptedSandbox64.exe P2: 15.0.26228.9 D15RTWSVC P3: VS/ScriptedHost/Dom Version:1.0 P4: Title:Dom Version:1.0 Domain: microsoft.com P5: 15.0.26228.0 P6: 58b562f7 P7: res://c:\program files (x86)\microsoft visual studio\2017\community\common7\ide\commonextensions\microsoft\webclient\diagnostics\toolwindows\vsresources.dll/#23/console/ConsoleMerged.js P8: 5938 P9: Target already added: uid0 P10: ScriptedPluginHost Attached files: \?\C:\Users\ADMINI~1\AppData\Local\Temp\2\SPE9F38.tmp These files may be available here: Analysis symbol: Rechecking for solution: 0 Report Id: 66676cbf-1228-11e7-85c1-d8d385e237a2 Report Status: 262144 Hashed bucket:

  • When I get the error in Visual Studio, upon trying to get the exception information:

Fault bucket 127830074891, type 5 Event Name: VisualStudioNonFatalErrors2 Response: Not available Cab Id: 0 Problem signature: P1: ScriptedSandbox64.exe P2: 15.0.26228.9 D15RTWSVC P3: VS/ScriptedHost/Dom Version:1.0 P4: Title:Dom Version:1.0 Domain:microsoft.com P5: 15.0.26228.0 P6: 58b562f7 P7: res://c:\program files (x86)\microsoft visual studio\2017\community\common7\ide\commonextensions\microsoft\webclient\diagnostics\toolwindows\vsresources.dll/#23/console/ConsoleMerged.js P8: 3632 P9: Unable to get property 'channel' of undefined or null reference P10: ScriptedPluginHost Attached files: \?\C:\Users\ADMINI~1\AppData\Local\Temp\2\SPE862B.tmp \?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER86C1.tmp.WERInternalMetadata.xml These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\Critical_ScriptedSandbox6_f7aa31cc56162be295698083cac29769faeb4a7_00000000_17ac8f0e Analysis symbol: Rechecking for solution: 0 Report Id: b0b5bb75-1228-11e7-85c1-d8d385e237a2 Report Status: 1 Hashed bucket: 558ba9ae3c60bfdc002e0f1b9732736d

Does anyone have any idea of what the issue might be, or how I could work around it?

解决方案

As I suspected, these are indeed 2 seperate issues.

It seems that it's impossible to sync to the document from within an add-in dialog. To fix this, I'm now passing the information back to the main user interface using this code:

    Office.context.ui.messageParent(JSON.stringify({
        type: 'myCustomType',
        data: myData
    }))

The other problem, the message "ScriptedSandbox64.exe has stopped working", it only appears when you're using Visual Studio, not in the published version. I just click it away now.

这篇关于打开单词加载项对话框时,ScriptedSandbox64.exe已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆