简体   繁体   English

打字稿-在VS2013中运行解决方案时,“ SourceMap文件读取失败”

[英]Typescript - “SourceMap file read failed” when running solution in VS2013

I encounter some weird issue when launching my TypeScript solutions (it happens even with the default solution which comes along with a new TypeScript project in visual-studio). 启动TypeScript解决方案时,我遇到一些奇怪的问题(即使使用visual-studio中新的TypeScript项目随附的默认解决方案,也会发生这种情况)。 Sometimes (it happens very often), when i launch my TypeScript solution (with IE), it takes quite a while to load (i just get a blank white page for a while (for around 10-15 seconds), and after that the homepage is loaded). 有时(这种情况经常发生),当我启动TypeScript解决方案(使用IE)时,加载需要相当长的时间(我只是得到空白页一段时间(大约10到15秒),然后主页已加载)。 In the output window of VS2013, i can see that the reason for that is because there was a timeout in reading few of the source-map files (image is attached). 在VS2013的输出窗口中,我可以看到原因是因为读取少量源映射文件(图像已附加)超时。

在此处输入图片说明

Does anyone knows why it happens? 有谁知道为什么会这样吗? Ever happened to anyone? 有人发生过吗? it is very annoying... :( Any help will be much appreciated. 这很烦人... :(任何帮助将不胜感激。

I'm using Win8 / VS2013 / TS 0.9.5 / IIS Express. 我正在使用Win8 / VS2013 / TS 0.9.5 / IIS Express。

There are a couple ideas I have for you... 我有几个想法适合您...

-Verify the .js.map file exists. -验证.js.map文件是否存在。

-Initiate a new WebClient object for the next request rather than trying to reuse the object. -为下一个请求启动一个新的WebClient对象,而不是尝试重用该对象。

http://social.msdn.microsoft.com/Forums/wpapps/en-US/c0e2fdde-c5fc-4ff2-8ac5-ba4a254c0a23/webclient-does-not-support-concurrent-io-operations?forum=wpdevelop http://social.msdn.microsoft.com/Forums/wpapps/en-US/c0e2fdde-c5fc-4ff2-8ac5-ba4a254c0a23/webclient-does-not-support-concurrent-io-operations?forum=wpdevelop

WebClient does not support concurrent I/O operations. WebClient不支持并发I / O操作。

Seems like some error in Visual Studio 2013 after debugging for a while. 调试一段时间后,似乎在Visual Studio 2013中出现一些错误。 I have restarted Visual Studio and it is gone. 我重新启动了Visual Studio,但它不见了。

Edit: I have also noticed this happening when JavaScript runtime exception happens (see Output window of VS). 编辑:我还注意到JavaScript运行时异常发生时会发生这种情况(请参阅VS的“输出”窗口)。 Then fixing the JavaScript and then restarting Visual Studio helped. 然后修复JavaScript,然后重新启动Visual Studio帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM