Thanks to Jalpa Panchal comment, i made it work as intended. I converted virtual directory to application in IIS Manager, and voila. Not sure why that didn't work before though.