Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Run time error with script.render loc

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

790 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