Glyphicons with error when publishing in IIS

5

I'm developing an application with

asked by anonymous 10.07.2015 / 16:46

2 answers

2

Apparently it is a problem in the Bundling transformer . Try using another Bundle Transformer , like Yui , and see what happens.

Example usage:

var cssBundle = new StyleBundle("~/Content/css").Include(
                  "~/Content/bootstrap.css",
                  "~/Content/site.css");
cssBundle.Transforms.Add(new CssTransformer(new YuiCssMinifier()));
bundles.Add(cssBundle);
    
10.07.2015 / 19:51
1

I had the same problem.

Not to use a new engine ( as @CiganoMorrisonMendez quoted ) the solution was to correctly set the < in> responseEncoding and requestEncoding of the application.

Before I used:

<system.web>
    <globalization requestEncoding="Windows-1252" 
                   responseEncoding="Windows-1252" 
                   responseHeaderEncoding="Windows-1252" />
    ...
</system.web>

Changing to UTF-8, the Glyphicons worked normally:

<system.web>
    <globalization requestEncoding="utf-8" 
                   responseEncoding="utf-8" 
                   responseHeaderEncoding="utf-8" />
    ...
</system.web>

If you do not have the globalization tag configured in your application's web.config , it is probably configured directly in IIS, at: SeuServer > .Net Globalization > Encoding .

    
27.08.2015 / 22:15