Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi
in BundleConfig.cs file i create a bundles :
C#
bundles.Add(new Bundle("~/bundles/jquery").Include(
                      "~/Scripts/jquery-{version}.js",
                      "~/Scripts/jquery-migrate-1.2.1.js",
                      "~/Scripts/custom.js",
                      "~/Scripts/jquery.tabs.setup.js",
                      "~/Scripts/jquery-prettyPhoto.js",
                      "~/Scripts/tinymce/jquery.tinymce.js",
                      "~/Scripts/tinymce/tiny_mce.js",
                      "~/Scripts/otf.js"
                      ));


and in _Layout.cshtml i writed this code:
HTML
@Scripts.Render("~/bundles/jquery")
@Styles.Render("~/Content/css")


it's work well when i use visual studio 2012 all js and css file loaded completely but when i upload my web site in my Host js and css not loaded completely and in view page source i see just :
HTML
<script src="/bundles/jquery?v=LP3rXi_N6xYJxm_-rpBVdxByPgYGeZwklRBTd7uXHZQ1"></script>

   <script src="/bundles/modernizr?v=dtqgLuAIjLqkWUg5M8PJAS3lUdIXrYzWCsdNomXHMGk1"></script>

   <script src="/bundles/jqueryval?v=QqAmIKObfP2Ew0RC7FZiPTlveyDpGRejUBAPO8IekIY1"></script>




   <link href="/Content/css?v=muHFqnUUc3VOc1ulG4430C4L5EsTCQ7L3jUUnG_LXm41" rel="stylesheet"/>


now What should I do؟؟
Posted
Comments
NorouziFar 28-May-14 3:50am    
Heplp?
Kornfeld Eliyahu Peter 13-Jul-14 5:02am    
When uploading to host, do you upload also the js files?
NorouziFar 13-Jul-14 22:42pm    
yes

1 solution

You have to upload the Scripts and Content folders of your application, with the same directory structure you see in your project.
 
Share this answer
 
Comments
NorouziFar 13-Jul-14 22:43pm    
yes

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900