i publish mvc website in iis 7 in server. when check page source, see not rendered correctly in laptop.
here page source after publish in iis server:
<title>index - abc system</title> <link href="/content/css?v=_rlk6cmatu8nrngsccmx7zja8m5gs5kiruta39lx1ha1" rel="stylesheet"/> <script src="/bundles/modernizr?v=wbewdufh_8md-pbioxomt90vm6tjn2pyy9u9zhtwspo1"></script> <script src="/bundles/jquery?v=fvs3acwolivinral5sdzr2jrcdmvowfbzmy6g6q0ule1"></script> <script src="/bundles/bootstrap?v=powlo484qpyf7e94xnxyy8f7n2gfx0utqqxyuc9p62e1"></script> <script src="/bundles/jqueryui?v=ztbsbudklnejotet91w1sw3wm7_cmvufkuttvjnnqlk1"></script> <!-- script menu --> <script src="/scripts/jqsimplemenu.js" type="text/javascript"></script>
here page source when test in laptop:
<title>index - abc system</title> <link href="/content/jqueryui/jquery-ui.css" rel="stylesheet"/> <link href="/content/jqsimplemenu.css" rel="stylesheet"/> <link href="/content/bootstrap.css" rel="stylesheet"/> <link href="/content/site.css" rel="stylesheet"/> <link href="/content/datepicker.css" rel="stylesheet"/> <script src="/scripts/modernizr-2.6.2.js"></script> <script src="/scripts/jquery-1.10.2.min.js"></script> <script src="/scripts/respond.js"></script> <script src="/scripts/moment.js"></script> <script src="/scripts/bootstrap.js"></script> <script src="/scripts/bootstrap-datepicker.js"></script> <script src="/scripts/jquery-ui.js"></script> <!-- script menu --> <script src="/scripts/jqsimplemenu.js" type="text/javascript"></script>
here code bundleconfig.cs:
public class bundleconfig { // more information on bundling, visit http://go.microsoft.com/fwlink/?linkid=301862 public static void registerbundles(bundlecollection bundles) { bundles.add(new scriptbundle("~/bundles/jquery").include( "~/scripts/jquery-{version}.js")); bundles.add(new scriptbundle("~/bundles/jquery").include( "~/scripts/jquery-1.10.2.min.js")); bundles.add(new scriptbundle("~/bundles/jqueryui").include( "~/scripts/jquery-ui.js")); bundles.add(new scriptbundle("~/bundles/jqueryval").include( "~/scripts/jquery.validate*")); // use development version of modernizr develop , learn from. then, when you're // ready production, use build tool @ http://modernizr.com pick tests need. bundles.add(new scriptbundle("~/bundles/modernizr").include( "~/scripts/modernizr-*")); bundles.add(new scriptbundle("~/bundles/bootstrap").include( "~/scripts/respond.js", "~/scripts/moment.js", "~/scripts/bootstrap.js", "~/scripts/bootstrap-datepicker.js")); bundles.add(new stylebundle("~/content/css").include( "~/content/jqueryui/jquery-ui.css", "~/content/jqsimplemenu.css", "~/content/bootstrap.css", "~/content/site.css", "~/content/datepicker.css")); } }
here result of page after publish in server:
here expected result:
error in page:
can know how resolve issue? thanks.
try :
check web.config configuration , make sure compilation debug set false
open iis config -> authentication -> right click on anonymous auth ->click edit -> choose application pool identity