Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matching file found error #72

Open
zoinkydoink opened this issue Jan 13, 2018 · 0 comments
Open

No matching file found error #72

zoinkydoink opened this issue Jan 13, 2018 · 0 comments

Comments

@zoinkydoink
Copy link

zoinkydoink commented Jan 13, 2018

UPDATE: It seems I may not understand the process as I thought, before when i created a publish it would create an obj folder with WebOptimizerCache and i would deploy this folder with my deployment and everything was fine.

Now when i create a publish, it does not create \obj\WebOptimizerCache and when i run the site on prod I get errors saying that access to this folder is denied. I created a blank structure for this folder and I no longer get errors but I dont see anything being put into this folder like it did before.

Could you explain what is suppose to be deployed and what is suppose to be produced and at what stage?

Please and thank you


(Below is the original post)

I get the following error:
[12/01/18 16:07:45.185 -5] ERR HTTP "GET" "/js/bundle.js" responded 500 in 1.3499 ms System.IO.FileNotFoundException: No files found matching "/js/bundle.js" exist in "C:\inetpub\wwwroot\site.com\wwwroot\" at WebOptimizer.Asset.ExpandGlobs(IAsset asset, IHostingEnvironment env) at WebOptimizer.Asset.GenerateCacheKey(HttpContext context) at WebOptimizer.AssetBuilder.<BuildAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at WebOptimizer.AssetMiddleware.<HandleAssetAsync>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at cryptocal.ui.Support.SerilogMiddleware.<Invoke>d__4.MoveNext() in D:\projects\project\project.ui\Support\ErrorHandlingMiddleware.cs:line 33

I use to create a bundle named "js/bundle.js" but since then I changed the name to "js/homebundle.js" but i keep getting these errors caught by my error handler.

Now i did clear my entire deployment folder on the server so I am not sure if this is some sort of caching issue or not but as of right now I have NO references to anywhere in my code that say "js/bundle.js" so I am not even sure where its picking this up now.

If this is an caching issue, can you let me know which folder I have to nuke? I have also restarted IIS and the entire server, still same issue

I also notice that the publish in Visual Studio no longer produces the ob/weboptimizecache folder
even though the output window does have Adding WebOptimizer cache files to publish output in the log

Also here is my setup

        services.AddWebOptimizer(pipeline =>
        {
            //minifify
            pipeline.MinifyJsFiles("js/*.js");
            pipeline.MinifyCssFiles("css/**/*.css");

            //bundle
            pipeline.AddCssBundle("/css/bundle.css", "css/*.css");


            pipeline.AddJavaScriptBundle("/js/commonbundle.js",

                "/lib/jquery/dist/jquery.min.js",
                  "/lib/bootstrap/dist/js/bootstrap.min.js",
               "/lib/moment/min/moment.min.js",
               "/lib/jquery-validation/dist/jquery.validate.min.js",
              "/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js",
              "/lib/jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.min.js",
              "/js/sweet_alert.min.js",
              "/js/select2.min.js",
              "/js/commonalerts.js",
              "/js/common.js");


            pipeline.AddJavaScriptBundle("/js/homepagebundle.js",
                "/lib/fullcalendar/dist/fullcalendar.min.js",
                "/js/switchery.min.js",
                "/js/home.js");



        });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant