Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:50:40+00:00 2026-06-02T00:50:40+00:00

I used to have a .js file in /Public/javascripts/jquery1.1js . Everything was working perfectly

  • 0

I used to have a .js file in /Public/javascripts/jquery1.1js.

Everything was working perfectly but then I needed to delete this file from my project, so I just removed it from the solution in Visual Studio.

Now when I visit my application, I get:

Reference error in “~/Public/javascripts/jquery.unobtrusive-ajax.js”,
line 1. Cannot find “~/Public/javascripts/jquery-1.5.1.js”. Reference
error in “~/Public/javascripts/jquery.validate.unobtrusive.js”, line
1. Cannot find “~/Public/javascripts/jquery-1.5.1.js”.

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.

Exception Details: Cassette.AssetReferenceException: Reference error
in “~/Public/javascripts/jquery.unobtrusive-ajax.js”, line 1. Cannot
find “~/Public/javascripts/jquery-1.5.1.js”. Reference error in
“~/Public/javascripts/jquery.validate.unobtrusive.js”, line 1. Cannot
find “~/Public/javascripts/jquery-1.5.1.js”.

Here’s a stacktrace:

[AssetReferenceException: Reference error in "~/Public/javascripts/jquery.unobtrusive-ajax.js", line 1. Cannot find "~/Public/javascripts/jquery-1.5.1.js".
Reference error in "~/Public/javascripts/jquery.validate.unobtrusive.js", line 1. Cannot find "~/Public/javascripts/jquery-1.5.1.js".]
   Cassette.BundleContainer.ValidateAssetReferences() +387
   Cassette.BundleContainer..ctor(IEnumerable`1 bundles) +41

Granted, I know why this is happening, Cassette is still trying to find the deleted file, but I’m not sure how to tell Cassette: “Hey, this file is no longer relevant. Scan the folder again and rebuild a list of files you need to work with.“

But I just don’t know how to accomplish this.

The documentation has no mention of this and just implies that it should do this automatically for me.

Here’s my Configuration class:

using Cassette.Configuration;
using Cassette.Scripts;
using Cassette.Stylesheets;

namespace XXX.WebUI
{
    /// <summary>
    /// Configures the Cassette asset modules for the web application.
    /// </summary>
    public class CassetteConfiguration : ICassetteConfiguration
    {
        public void Configure(BundleCollection bundles, CassetteSettings settings)
        {
            bundles.AddPerIndividualFile<ScriptBundle>("Public/javascripts/");
            bundles.AddPerIndividualFile<StylesheetBundle>("Public/stylesheets/");
        }
    }
}

And in my _Layout.cshtml file:

@{
    Bundles.Reference("Public/javascripts/site.js");
    Bundles.Reference("Public/javascripts/jquery.validate.unobtrusive.js");
    Bundles.Reference("Public/stylesheets/site.less");
}
<!DOCTYPE html>
    ...

    <head>
        <title>@ViewBag.Title</title>
        @Bundles.RenderStylesheets()

            ...
        @Bundles.RenderScripts()
    </body>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:50:42+00:00Added an answer on June 2, 2026 at 12:50 am

    Does the jquery.validate.unobtrusive.js file contain a JavaScript reference at the top to jquery-1.5.1.js?

    The line would look like:

     /// <reference path="jquery-1.5.1.js" />
    

    If so, remove that line. Cassette uses those references to determine build order.

    ref: http://getcassette.net/documentation/scripts

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used this code to store Object to a file: try{ FileOutputStream saveFile=new
I would like to update an xml file from another xml file.I have used
I have used the andengine.jar file in our application. I have run the physicsexample.
I have a file attachment class (FileAttachment) which is used in several other classes.
I have used xmltextwriter to create xml file and saved on development D: drive.
I used to have one class for one file. For example car.cs has the
I have used a static global variable and a static volatile variable in file
I have used following code to create a simple PDF file. It executes fine
I have to create a file with name FicheBail sign+®eDC.pdf i have used utf-8,
I have CSV file with sample data in this form : 220 30 255

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.