CodePhobia
CodePhobia

Reputation: 1315

Deploying a ASP.NET MVC 5 Application in Windows Server 2012

I have a ASP.NET MVC5 Solution which uses jQuery, Slickgrid, jQuery UI, Bootstrap. The bundling is working fine in my local system as well as in a VM where I have deployed in Windows Server 2008 R2 after publishing the solution in File System Mode.

This is the correct formatting. enter image description here

But after I do the same filesystem deployment onto to Windows Server 2012 R2. The formatting is broken and it appears like this.

enter image description here

Similar other javascript plugins are also failing.

Datepicker based on bootstrap does not pop out anything on click.

The Grids loading with the help of slickgrid is also failing to load anything.

enter image description here

When Debug the web pages loaded on the two environments and go to the debugger in IE. This is what I observe.

In Windows Server 2008 R2:

enter image description here

In Windows Server 2012 R2:

enter image description here

Any pointers regarding the deployment process or the salient features of deploying on Windows Server 2012 R2 would be really appreciated.

Upvotes: 3

Views: 722

Answers (1)

CodePhobia
CodePhobia

Reputation: 1315

Figured this out!

The issue was the site was not added to trusted sites in the internet explorer and hence it was not allowing my Javascript to be rendered!

There are two possible solutions.

  1. Ask your users to add this to the trusted sites to continue.

OR

  1. Implement an SSL Based HTTPS site.

Upvotes: 2

Related Questions