Taritsyn / BundleTransformer

Bundle Transformer - a modular extension for System.Web.Optimization (also known as the Microsoft ASP.NET Web Optimization Framework).
Apache License 2.0
130 stars 19 forks source link

Virtual Directory Error When Using CustomStyleBundle on Azure Website #45

Closed koimad closed 3 years ago

koimad commented 3 years ago

Hi I get the following error when using CustomStyleBundle on an azure website.

System.ArgumentException: Directory does not exist. Parameter name: directoryVirtualPath at System.Web.Optimization.Bundle.IncludeDirectory(String directoryVirtualPath, String searchPattern, Boolean searchSubdirectories) at School.Components.BundleConfig.RegisterBundles(BundleCollection bundles) in C:\Users\koima\source\repos\School-8\School-8\Components\BundleComponent.cs:line 53

StyleBundle works fine for normal css files.

Everything works fine on a local IIS server.

Taritsyn commented 3 years ago

Hello!

… on an azure website.

Unfortunately, I don't use the Azure.

at System.Web.Optimization.Bundle.IncludeDirectory(String directoryVirtualPath, String searchPattern, Boolean searchSubdirectories) at School.Components.BundleConfig.RegisterBundles(BundleCollection bundles) in C:\Users\koima\source\repos\School-8\School-8\Components\BundleComponent.cs:line 53

Is it really a full stack trace?

StyleBundle works fine for normal css files.

Do you use a BundleTransformer.Less and BundleTransformer.SassAndScss modules?

Everything works fine on a local IIS server.

Are you sure that the settings of virtual directories on the local IIS server and the Azure are same?

koimad commented 3 years ago

Hi it was my mistake, one of the directories did not deploy correctly. Once I manually deployed the files all worked fine.