error when publishing Azure site

2

Create an application with the WebAplication template of Visual Studio 2015 with MVC, it handles the Scripts and CSS by bundle, it turns out that When I publish in Azure I do not load any style, I could not make it published correctly.

Could someone guide me how do I publish correctly?

    
asked by Angelo cardona 30.09.2016 в 16:04
source

1 answer

2

My guess is that the directory that contains your bundles (content / css for example) exists physically in your application . In that case IIS would be handling the request and not the MVC pipeline.

Make sure that the virtual directory for the bundle (the SyleBundle or ScriptBundle parameter) does not match any folder in the file system.

  

A good idea is that when creating our bundles we include a prefix   that does not exist as a bundle for example. This would prevent possible   Routing problems.

    
answered by 30.09.2016 / 16:41
source