Solved

Run time error with script.render loc

Posted on 2016-09-23
2
49 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 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 41812989
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
ID: 41812996
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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