Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IE Trusted Sites

Posted on 2012-09-19
16
Medium Priority
?
467 Views
Last Modified: 2012-09-21
Hello Experts,

I have an ASP.NET web application that has SSL applied to the entire site. If I use IE7, 8, or 9 it does not render my Javascript. If I add the site as a Trusted Site in IE then it renders the site fine.

Note:
The site renders fine in FF and Chrome as it should without any issue.

Any ideas why IE will not render the site correctly when SSL is applied to it? It renders fine in IE without SSL just not with SSL enabled.
0
Comment
Question by:asp_net2
  • 8
  • 8
16 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38416264
I have found that I have had problems with the security rights for the Javascript and CSS files are our target servers, which are running on https, and that IE is the only one having a problem with that.
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38418181
Hi TheLearnedOne,

Yeah, it's very odd. Especially since i'm using IIS and ASP.NET. You would like to think that out of all the browsers out there that IE would not give you any issues.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38418557
I have learned that all browsers are not the same, and that makes my job very difficult.  I have three installed, but we have others on the QA team with more installed (like Safari).
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 4

Author Comment

by:asp_net2
ID: 38419173
Hi TheLearnedOne,
I did figure something out. I had to select "Ignore" as an option for the SSL Settings within IIS7.5. SSL is still running as it should and so is my CSS and JS. If I click on the lock it displays my cert and the information about my cert.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38419771
Can you show me a screen shot of what you just described, please?
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38421584
I'm attaching a screenshot now.
Untitled-2.png
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 total points
ID: 38421651
OK, now I remember the place...Ignore is the default behavior for IIS, when applying SSL.  Usually, the server provides a certificate, and the client verifies that certain conditions are met with the server certificate.  

You can also have the requirement that clients must provide a certificate also, but that can be a pretty restrictive requirement.
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38421690
The only issue that I still face with IE and SSL is that I still cannot use the Bundling and Minification for my CSS and JS using IE. It works fine for FF and Chrome just not any flavor of IE.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38421718
That would suggest that you are using something like MVC 4, and I haven't made it up to that version yet (still stuck at MVC 3).
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38421726
I'm not a fan of using MVC. I prefer WebForms.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38421842
What happens when you try to use the Bundling and Minification in IE?
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38421940
Actually when I use it in IE modernizer.js will not load which is part of the JS bundle along with a few other js files. But most importanlty modernizer does not load. I can tell because IE needs that for the new HTML5 tags.
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38421947
TheLearnedOne,

Also, would you be willing to possible assist me with the following post below. So far nobody as offered help on it. Since I seen your credentials I'm sure it will be a very easy for you to figure out.

http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_27873328.html
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38422160
How are you configured to load modernizr.js with the bundle?
0
 
LVL 4

Author Comment

by:asp_net2
ID: 38422197
Attached was what my bundle.cs file looked like. Then in the bottom of my HTML markup I would include. <% StyleBuilder.Render("bundle/js") %>

Like I said before this process worked fine in any other browser except for IE7, 8, and 9. That is because IE needs modernizer to display the HTML5 elements correctly.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace ShapeUpReporting_12_13
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254726
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;

            BundleTable.Bundles.Add(new StyleBundle("~/bundle/css").Include(
                  "~/Content/css/main.css",
                  "~/Content/css/ie8.css",
                  "~/Content/css/jquery-ui-1.8.22.custom.css"));

            BundleTable.Bundles.Add(new ScriptBundle("~/bundle/js").Include(
                  "~/Scripts/js/modernizr-2.6.1.min.js",
                  "~/Scripts/js/jquery-1.7.2.js",
                  "~/Scripts/js/jquery-ui-1.8.22.custom.js",
                  "~/Scripts/js/jquery-ui-1.8.20.min.js",
                  "~/Scripts/js/plugins.js",
                  "~/Scripts/js/main.js"));
        }
    }
}

Open in new window

0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 38422352
I do know that the order of loading script files can be important, but bundling introduces a different concept, since all the files are grouped together into a single request.  I don't have any real experience with them, enough to know what the issue is with IE.  But, I do know that IE can be very unforgiving when you don't do things just right.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question