Posts

Showing posts from February 27, 2019

Could not load file or assembly 'Microsoft.AspNet.Web.Optimization.WebForms' or one of its dependencies. The...

Image
0 I can't find anything to resolve this and have tried multiple things. Task: I am trying to add bundles to an old existing web project. I have added everything I need I believe as I have done the same in a new project and it works. <webopt:BundleReference runat="server" Path="~/bundles/masterstyle" /> This seems to be where the issue has started with this line above. I installed via nuget the web optimization webforms package which fixed the squiggly line under webopt. However, now, I am getting 2 issues. BundleReference has a squiggly line saying "Element 'BundleReference' is not a known element/ This can occur if there is a complication error in the Web site, or the web.config file is missing". It also can't seem to find the package I have just in