You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 logAlso here is my setup
The text was updated successfully, but these errors were encountered: