Finally solved it!

The issue was to do with Asp.Net not being set up correctly. I just did [this][1] and everything started working. Hopefully this'll help someone else out there...


  [1]: https://stackoverflow.com/questions/6846544/how-to-fix-handler-pagehandlerfactory-integrated-has-a-bad-module-managedpip