Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

TypeScript map files - access denied

$
0
0

This is TypeScript related, but I think it's more to do with VS, IISExpress and IE interaction than TS per-se.

Using VS2013 Update 2 RC (TypeScript 1.0), I am unable to debug TypeScript files. All my JS files, JS.MAP and TS files are in the same folder. The mapping directive in a sample JS file is:

//# sourceMappingURL=general.js.map

This should be correct (all in the same folder) but it doesn't work. If I manually edit the directive to be:

//# sourceMappingURL=C:/Users/myname/Documents/Visual Studio 2013/Projects/Test/JSLib/general.js.map

It works great ('Test' is the website root here). If I turn off Windows Authentication, it also Works! Checking the VS Output window, I see:

SourceMap http://localhost:53524/JSLib/general.js.map read failed: The remote server returned an error: (401) Unauthorized.'iexplore.exe' (Script): Loaded 'http://localhost:53524/JSLib/'

So how can I get this to work? I don't want to turn off authentication for the app (although anonymous access to JSLib would be ok), so my workaround is a post-build powershell script to edit the JS files.

Windows 8.1 x64, IE11

Thanks


John



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>