Windows 脚本宿主文件大小限制 \ 无法检索引用的 URL 异常 [英] Windows Script Host file size limit \ Cannot retrieve referenced URL exception

查看:35
本文介绍了Windows 脚本宿主文件大小限制 \ 无法检索引用的 URL 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在尝试使用 JSTest.Net https://github.com/cbaxter/JSTest.NET 并使用 Windows Script Host 来附加脚本.

So I'm trying to use JSTest.Net https://github.com/cbaxter/JSTest.NET and it uses Windows Script Host to attach scripts.

我正在尝试附加 OpenLayers.js,压缩时为 958 KB,未压缩时为 2590 KB.我遇到过这个问题,上面写着 - 无法检索引用的 URL.我认为(并且开发人员也向我指出了同样的事情)是导致问题的文件大小.

I'm trying to append OpenLayers.js which is 958 KB when compressed and 2590 KB when uncompressed. I have encountered this issue where it says - Cannot retrieve the referenced URL. I think (and also the developer pointed me out to the same thing) it is the file size that is causing the problem.

我也遇到过这个问题,其中用户指出了相同的问题,但在不同的上下文中(Cannot检索引用的 URL)但没有建议解决.

I also came across this question where a user pointed out the same issue but in a different context (Cannot retrieve referenced URL) but no work around was suggested.

有没有人遇到过同样的问题,如果有,你能找到解决方案吗?

Did anyone encounter the same problem, if so were you able to find a solution for that?

推荐答案

您链接的 SO 问题和 其中的论坛链接 显示问题是使用 WSH 导入脚本时未记录的 512KB 大小限制.

The SO question you linked and the forum link in it shows the problem to be an undocumented 512KB size limit in importing scripts with WSH.

此外,该问题的公认答案暗示您可能希望确保它不是以管理员身份运行.

Also, the accepted answer for that SO question implies you might want to make sure it's not running as admin.

确保您的 Visual Studio(或您运行 JSTest.NET 的任何工具)没有以管理员权限运行,看看是否有帮助.

Make sure your Visual Studio (or whatever you're running JSTest.NET from) isn't running with administrator privileges and see if that helps.

这篇关于Windows 脚本宿主文件大小限制 \ 无法检索引用的 URL 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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