The problem was the solution. Despite the fact that when I create the IIS7 website, I said that it would refer to the files as my user (it would not work at all), for the static file, it used the application pool user. Granting access to IIS APPPOOL \ MyApplication to the folder in which my project was fixed.
source share