1

Hey there I' after publishing my project to azure I have used data comparison to transfer my database to the online server database but now My DateTimePicker does not work it now displayes in the top left corner and does not input data at all. When i ran the project again on the localversion it worked fine?

I found the followig errors in the console.

enter image description here

This has me fairly stumped. Has anyone seen anything like this before.

Azure View

enter image description here

Localhost View

enter image description here

Bundles file

enter image description here

file structure

enter image description here

JH_Dev
  • 426
  • 7
  • 26
  • 1
    Please see this thread: http://stackoverflow.com/questions/19664287/bootstrap-icons-are-loaded-locally-but-not-when-online. My guess is that because of bundling, paths are getting messed up. – Gaurav Mantri Apr 20 '16 at 17:34
  • @GauravMantri the bundles file is attached there, from my understanding of the link you posted is that the naming of the bundle is the issue? – JH_Dev Apr 20 '16 at 17:48
  • Can you please share a screenshot of the folder structure in your project as well. I am specifically looking for the folders where css and javascript files are stored. – Gaurav Mantri Apr 20 '16 at 17:53
  • added the screenshot there @GauravMantri – JH_Dev Apr 20 '16 at 18:22
  • Try once by using the – Aman Sharma Apr 20 '16 at 18:54
  • Alas OP, I sympathize with your situation (been there), but you'll need to do the root cause analysis yourself as you're the only one with access to the problem currently. Get back to us when you have a minimal repro - without it we can only *guess* at the cause... – Jeroen Apr 20 '16 at 19:15
  • Hey guys It looks like that was it i changed the bundle with the individual scripts and its work just without the styles i originally had selected so i think i can fix that. If i were to add the budle back into it would i have to rename it? @AmanSharma do you wanna put your solution up as an answer so i can accept it? – JH_Dev Apr 20 '16 at 20:14
  • Also Thanks to @GauravMantri – JH_Dev Apr 20 '16 at 20:15
  • and @Jeroen for the help much appreciated – JH_Dev Apr 20 '16 at 20:15
  • Thanks for updating @whiskeycoder, I will add my comment as answer with additional info. – Aman Sharma Apr 20 '16 at 20:22

1 Answers1

2

As from the comments, the issue seemed to be originating from the scripts being included in an incorrect manner by the Bundle.

Trying with individual <Script src=""> tags explicitly will give you more control on the order of the scripts. And in this case seems to be solving the problem.

You can additionally also try splitting the js bundle into multiple bundles and try to add in order. Then check in the browser source if the ordering and result are appropriate even with the bundles. You can check the <script> tags generated by bundles and compare with your manual script tags, which work, and then alter the bundles.

Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Aman Sharma
  • 1,930
  • 1
  • 17
  • 31