Solved

Run time error with script.render loc

Posted on 2016-09-23
2
26 Views
Last Modified: 2016-09-29
Hi, I'm using VS2013 on Windows 10.
I'm taking back a project from a co-worker after he made some modification.  The project compiles fine and I was able to run it yesterday but today I am getting a run-time error and it breaks at the line below in Site.Master
    <asp:PlaceHolder runat="server">
        <%: Scripts.Render("~/bundles/modernizr") %>
    </asp:PlaceHolder>
    <webopt:bundlereference runat="server" path="~/Content/css" />

When I click under Tools-> Manage Nuget Packages, I was able to find WebGrease and it says it's installed already for this project/solution.


How can I fix this?  thank you.
rendererror.txt
0
Comment
Question by:lapucca
2 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
Comment Utility
Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
  Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


You have to add webgrease to your GAC  by registering the .dll
0
 

Author Comment

by:lapucca
Comment Utility
In the  Manage Nuget Package I unchecked the check marks in the solution for WebGrease but then I got the attached error message that i can't uninstall it.  I was trying to uninstall then reinstall per your suggestion.   How corrupted is this project or is it my VS setting is wrong?  Thank you
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now