asp.net mvc 4 - MVC 4 Mobile Razor Views not being rendered when deployed on Windows 7 IIS -
i working on asp.net mvc 4 website has both desktop , mobile views. example have desktop view named home/dashboard.cshtml. created mobile layout view name shared/_layout.mobile.cshtml , added mobile version of dashboard view name home/dashboard.mobile.cshtml.
i run application visual studio iis express , tested mobile version overriding user-agent google chrome iphone , works until published , deployed same application on iis (verssion 7.5) of win7, doesn't rendered mobile version of dashboard view. strange here render mobile version of layout shared/_layout.mobile.cshtml not rendering mobile version of dashboard home/dashboard.mobile.cshtml.
note tested iis deployed version on samsung galaxy s (android) same result.
why iis not rendering mobile version. faced same situation? ideas?
ok figured out. build action somehow set 'none' instead of 'content' dashboard.mobile.cshtml not being published iis. bad overlooked it.
Comments
Post a Comment