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

  • SEARCH
  • Home
  • 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 7857349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:01:09+00:00 2026-06-02T21:01:09+00:00

I am confused over a little problem i have with jquery in my project.

  • 0

I am confused over a little problem i have with jquery in my project. The project is a MVC4 site in visual studio 11.

The problem is that jQuery is not included in the bundling, and it seems to been working before i updated to 1.7.2, but can’t be sure.

I can see the comment of the jQuery file on top of the bundled file, but cant find any code of it. All other files seems to be included though (my own scripts and jquery ui files).

I have tried bundle filters and create my own bundle, but nothing seems to work.

I really would appreciate any help, as when the page load, all java scripts just crash because a function is not found. This does work if i just include the java script files normally.

Edit:

Global.asax:

protected void Application_Start()
{
    BundleTable.Bundles.EnableDefaultBundles();
}

_Layout.cshtml:

<script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Scripts/js")"></script>

Update 1:

I added some code the the jQuery file, and the bundled file contained this at the top.

function Test(){ }

Then changed to this, and the code was not there this time.

(function Test(){  })

The wierd thing is that the other jQuery files, like the UI ones doesnt get removed, and they being the same way.

Edit: seems like this is intended

Update 2:

Tested some more and found out which file that breaks, if i include any of these files in my custom bundle, it breaks

  • jquery.validate.js
  • jquery.validate.unobtrusive.js
  • jquery.unobtrusive-ajax.min.js

Before them i have these, and they work without any error

  • jquery-1.7.2.min.js
  • jquery-ui-1.8.19.min.js
  • bootstrap.min.js

It is still wierd, if i include these file as normal in the script with <script src="~/Scripts/jquery.validate.js"></script> they work as they should, without errors.

Though, if i bundle the working files, and then add the non-working one after as normally, they still breaks

_Layout.cshtml:

<script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/myBundle")"></script>
<script src="~/Scripts/jquery.validate.js"></script>

Global.asax:

var bundle = new Bundle("~/js", new JsMinify());
bundle.AddFile("~/Scripts/jquery-1.7.2.min.js");
bundle.AddFile("~/Scripts/jquery-ui-1.8.19.min.js");
bundle.AddFile("~/Scripts/bootstrap.min.js");
BundleTable.Bundles.Add(bundle);

Edit: seems like something is changed in the bundled jquery files, that makes the validate plugins to break

Work Around

I tried to add the old files, before the update, and it work! Managed to find out that it was the new jQuery UI 1.8.19 from NuGet that crashed.

I downloaded the jquery ui directly from their site, and used that one instead, and it worked!

So it seems that something in the jquery ui nuget version is changed that the bundling is picking up and changes/removes it, so it breaks..

which part to blame? jQuery UI NuGet packages or mvc4 bundling? And is there a solution to the bundling problem?

  • 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-02T21:01:11+00:00Added an answer on June 2, 2026 at 9:01 pm

    Work Around

    I tried to add the old files, before the update, and it work! Managed to find out that it was the new jQuery UI 1.8.19 from NuGet that crashed.

    I downloaded the jquery ui directly from their site, and used that one instead, and it worked!

    So it seems that something in the jquery ui nuget version is changed that the bundling is picking up and changes/removes it, so it breaks..

    which part to blame? jQuery UI NuGet packages or mvc4 bundling? And is there a solution to the bundling problem?

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

Sidebar

Related Questions

I am currently working with Python and have been confused over the fact that
I have a SOAP service that's been running for a little over a month
I'm a little confused over a ManualResetEvent that I'm using which doesn't appear to
I am a little confused over why people recommend you use: long rantime =
I'm a bit confused over jQuery terminology for what I'm trying to accomplish. Essentially
Mildly confused. I have a combobox that is databound to a list of strings.
Although the problem at hand is solved , it has me a little confused
As a project over summer while I have some downtime from Uni I am
I'm a little confused over the documentation of type TIMESTAMP in MySQL and whether
I'm a little confused over the concept of machine code... Is machine code synonymous

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.