Found the problem after 6 hours.I had a web.config within the directory that had the static resource! I removed it and was good.
Appreciate everyone help. From: [email protected] [mailto:[email protected]] On Behalf Of Nathan Chere Sent: Wednesday, 26 June 2013 9:38 AM To: ozDotNet Subject: RE: Static resources in MVC 4 It would be easier if you provide all your route setup, not just that one line in isolation. From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Tuesday, 25 June 2013 11:23 PM To: 'ozDotNet' Subject: RE: Static resources in MVC 4 Found a bug i think... If i have a ignore routes.IgnoreRoute("members/{*pathInfo}") It will show all files except if there is a directory that is a no? Eg http://localhost:3027/members/ <http://localhost:3027/members/11366/hello.gif> 11366/hello.gif 'The resource cannot be found. http://localhost:3027/members/hello/hello.gif 'Works Something i am doing wrong? From: [email protected] [mailto:[email protected]] On Behalf Of Wallace Turner Sent: Tuesday, 25 June 2013 10:19 PM To: ozDotNet Subject: Re: Static resources in MVC 4 set the RouteCollection's RouteExistingFiles property to true. (It's false by default.) source: http://forums.asp.net/t/1536510.aspx Click here <https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==> to report this email as spam. This message has been scanned for malware by Websense. <http://www.websense.com/> www.websense.com
