After upgrade from 4.0 to 4.5 framework, my styles and images have disappeared on my website remotely
Posted on 2014-12-24
I have a windows web server 2008. I am using visual studio 2012. I upgraded my 4.0 asp.net web site to 4.5 framework. I updated the targetFramework="4.5" in the web.config.
I updated all my project's libraries to 4.5 framework in the properties. I ran a clean solution and then build solution. It looks great when run locally from VS2012.
I published to my webserver. Once I did, all my stylesheets are now ignored and my images are broken. They are still in the directories. They are still being referenced. No coding was changed. Just the framework.
if I look at my add/remove programs on the actual web server, it shows 4.5.1 framework, but no 4.0 framework; so it has to be using the 4.5 framework on the app pool. In the apppool, the application is set to the 4.0 framework (which is the 4.5 framework).
So if anyone has any other ideas where I might be missing something that is causing it to ignore my styles, I'd appreciate any advice. Sorry, I can't provide a working example or send you to a web page to look at, so don't yell at me for not providing enough info. If I haven't I'm sorry. Just seeing if anyone has an "aha" moment.