Solved

Run time error with script.render loc

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacing HTML tags in Textarea/Textbox 5 46
IIS URL Rewrite to do 2 actions: Set a ServerVariable, then redirect 3 63
Resolve Dependency Issues 4 40
SQL Login 17 37
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
A short film showing how OnPage and Connectwise integration works.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

948 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

24 Experts available now in Live!

Get 1:1 Help Now