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

LessAssetHandler and Virtual Path Providers #18

Closed ZNS closed 6 years ago

ZNS commented 6 years ago

Hello!

I've made a custom virtual path provider which serves a dynamic less-file. However it doesn't work with the LessAssetHandler. I get a 404.

Taritsyn commented 6 years ago

Hello, Ulrik!

Everything should work. Try to solve this problem yourself by using a Visual Studio debugger.

ZNS commented 6 years ago

I've debugged and ProcessRequest is never called in AssetHandlerBase.cs for my virtual file. It is called for physical files. Also I've made my own IHttpHandler and that does get called and can read the virtual file.

ZNS commented 6 years ago

Problem solved! I removed resourceType="File" from the handler in web.config