6

Debugger error “Unable to attach. The System cannot find the file specified” from the Ripple and Android emulator

I've just installed the Multi-device Hybrid Apps preview for Visual Studio 2013, and I'm getting an error when attempting to debug against Ripple or other emulators

The build process is always completed successfully, but while start debugging the VS show up this error message:

“Unable to attach. The System cannot find the file specified”

VS2013 Multi-device Hybrid Apps Debugging error

There is no useful output provided by Visual Studio 2013, rather the debugger just doesn't attach to the browser Ripple emulator after showing the exception. The exception happens immediately and the debugger never attaches. I've had this error occur since installation, so it shouldn't have anything to do with the project itself. I checked my paths and they appear to be correct as in @Freddy's answer, because the build is always successful.

Community
  • 1
  • 1
Zakaria
  • 1,055
  • 12
  • 16

1 Answers1

8

This may happen when Visual Studio is installed on a non-system drive. If that's the case, you can work around it by copying the assembly typescriptSourceMapReader.dll from

<SystemDrive>\Program Files(x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies

to the same location on the drive where Visual Studio is installed.
Relaunching VS after doing this should fix the issue.

Ellen
  • 1,189
  • 7
  • 9
  • "Program Files(x86)" is missing a space and should be "Program Files (x86)" – Veener Apr 13 '15 at 21:17
  • @Zakaria i have only C drive in my system and i have installed VS2015 with Apache Cordova. The Ripple emulator always gives the above mentioned Error. – Koushik Saha Sep 30 '15 at 07:15
  • I installed VS 2015 on win server 2012,first I faced some issues (ScriptedSandbox64.exe ) I show http://stackoverflow.com/a/31973059/2467917, then I upgrade to 2012 R2, repair VS installation,update some security options in IE, then follow steps urls: http://taco.visualstudio.com/en-us/docs/install-vs-tools-apache-cordova/ http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/ http://taco.visualstudio.com/en-us/docs/configure-vs-tools-apache-cordova/#vstac check dependency : VS IDE >> tools >> options >> tools for apache cordova >> cordova tools >> run dependency checker – Zakaria Oct 10 '15 at 21:28