Wednesday, December 4, 2013

Directory does not exist. Parameter name: directoryVirtualPath

I had the same problem and found out that I had some bundles that pointed to non-exisiting files using {version} and * wildcards such as
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
    "~/Scripts/jquery-{version}.js"));
I removed all of those and the error went away.

4 comments:

  1. just reinstall the jquery files from nuget manager/

    ReplyDelete
  2. i had a similar problem. it turned out to be 3rd party extensions (devexpress). once i removed references to it, everything started working. still don't know why.

    ReplyDelete
  3. There is path problem for script folder,find it and place it to its main path (~\Project_Name\Scripts)

    ReplyDelete