I have looked at
which seemed to be my issue at first, but debugging my code is showing that the access denied error is occurring when the modal is called and before any of my code is run.
If anyone has an idea as to why this is failing in razor but not in the aspx page, I would appreciate it.
Edit: This is happening when its run in IE10 which is a requirement. When I run the app in chrome I do not get the access denied error, but my scripts still do not load