Bladetrick Posted September 5, 2018 Share Posted September 5, 2018 hi! So since I started using babylon js I've been creating a ton of little stub programs to test it out. Now i'm in the process of combining some of them in an ASP.net site and ran across an issue. The error I get is: SourceMap C:\TEMP\babylon.objFileLoader.js.map read failed: Could not find file 'C:\TEMP\babylon.objFileLoader.js.map'..Exception was thrown at line 24055, column 25 in http://localhost:50739/babylon.js 0x800a03f6 - JavaScript runtime error: Invalid character What's this mean? I've never seen a .map file before, nor had the error when working on my stubs. Anyone come across this before? Here's how I have included my files. They're literally copies of what I had used before: <script src="jquery-3.3.1.slim.min.js"></script> <script src="babylon.js"></script> <script src="babylon.objFileLoader.js"></script> Thanks! Carlos Quote Link to comment Share on other sites More sharing options...
Guest Posted September 5, 2018 Share Posted September 5, 2018 The map file can be used by your browser to provide debug information But this is not the problem here. I recommend using babylon.max.js and turn on "Stop on all exceptions" to find what is the root cause of your exception My uneducated guess would be that your ASP.Net server is not configured to serve .obj MIME type (but I can be wrong) Bladetrick 1 Quote Link to comment Share on other sites More sharing options...
Bladetrick Posted September 6, 2018 Author Share Posted September 6, 2018 15 hours ago, Deltakosh said: turn on "Stop on all exceptions" what's this? are you referring to a setting for babylon or like a browser setting? I'm on IE 11 Quote Link to comment Share on other sites More sharing options...
Bladetrick Posted September 6, 2018 Author Share Posted September 6, 2018 You were right, as usual! I needed to add MIME types for the obj extension in the web config. Thank you for your help! Quote Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2018 Share Posted September 6, 2018 my pleasure Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.