{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/41","repository_url":"https://api.github.com/repos/Microsoft/monaco-editor","labels_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/41/comments","events_url":"https://api.github.com/repos/Microsoft/monaco-editor/issues/41/events","html_url":"https://github.com/Microsoft/monaco-editor/issues/41","id":163047923,"number":41,"title":"Loader silently fails when used on page in ASP.NET MVC \"Areas\" page.","user":{"login":"jhurdlow","id":609779,"avatar_url":"https://avatars.githubusercontent.com/u/609779?v=3","gravatar_id":"","url":"https://api.github.com/users/jhurdlow","html_url":"https://github.com/jhurdlow","followers_url":"https://api.github.com/users/jhurdlow/followers","following_url":"https://api.github.com/users/jhurdlow/following{/other_user}","gists_url":"https://api.github.com/users/jhurdlow/gists{/gist_id}","starred_url":"https://api.github.com/users/jhurdlow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhurdlow/subscriptions","organizations_url":"https://api.github.com/users/jhurdlow/orgs","repos_url":"https://api.github.com/users/jhurdlow/repos","events_url":"https://api.github.com/users/jhurdlow/events{/privacy}","received_events_url":"https://api.github.com/users/jhurdlow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-29T23:10:56Z","updated_at":"2016-06-29T23:10:56Z","closed_at":null,"body":"I can easily use Monaco on a page hosted in the standard Views folder of an ASP.NET MVC site (like `http://localhost/MySite/Monaco`. That works great. However when I try to do the same thing on a page under an [Area](http://aspnetmvc.readthedocs.io/projects/mvc/en/latest/controllers/areas.html)  in my site (like `http://localhost/MySite/Admin/Monaco`, the loader silently fails and leaves \"monaco\" undefined. The loader does not throw any errors, but when you try to create an editor `monaco.editor.create(...)`, you get a `Uncaught ReferenceError: monaco is not defined` error. Watching the file loads from the browser's debugger shows that the last file loaded by the browser is `editor.main.js` (and it does load successfully, it's not an issue of it not being able to find the file); In a **successful** Monaco load (such as on the base site), that is followed by the `editor.main.css` and `editor.main.nls.js` files (then a whole bunch of other workers and services once we 'create' our editor). *I have tried hosting the Monaco files both in the local site, as well as putting them on another site (CDN-style)* and using the provided guidance to ensure web-worker support (both ways work on a standard view, but not one in an Area). I've tried it on Chrome, FFox, and IE; all three show the same behavior. In IE, if I load the page with the debugger open, it will sometimes stop on an error `Object doesn't support property or method 'create'` on `editor.main.js line 47280 column 21`, which maps to `file:///C:/Alex/src/vscode/src/vs/editor/common/services/editorSimpleWorker.ts line 315`. I don't know if that's actually related to the load failure or not. Whatever the cause, I've spend several hours trying to get this working to no avail, so I'm opening this issue."}}
{"actor":{"display_login":"jhurdlow"}}