ASP.NET MVC jQuery Validation scripts bundles error - jquery-validate

I'm having trouble deploying my application to a UAT server. The code has been working fine on my machine for months. When I run the application I get and exception error but no real useful information. The error just says 'Value cannot be null. Parameter name: key'.
I can provide the stack trace if needed but I don't think it will help. I did a search and others have had success by updating the Microsoft.aspnet.web.Optimization package. I did update the package but Nuget already says I have 1.1.3 installed.
For reference here is a snippet of my BundleConfig.cs file. It has this in it:
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/jquery.unobtrusive*",
"~/Scripts/jquery.validate*"));
What am I doing wrong?

I ended up just recreating the whole application in another solution copying/pasting the code. An extreme solution but it worked.

Related

i am getting error when i try to create web service client in Spring STS

i am getting this error when try to create new web service client.
IWAB0503E Unable to update Java build path. Please check your system environment.
Some web searching uncovered that what this error really means is “The Web Services generation tool detected multiple versions of the javax.xml.soap plug-in installed. Resolve this error by removing the conflicting plug-in.”
Sure enough, when I checked in Eclipse there were two versions.
WebService
I encountered two speed bumps when testing this theory:
There’s no easy way to uninstall a plug-in within the Eclipse UI, so I had to resort to removing the directory from eclipse\plugins directly from Windows Explorer.
Which version should I remove? It took me two tries to figure out which version was causing the error. Turns out that newer is not always better…in this case 1.3 was at fault and 1.2 (javax.xml.soap_1.2.0.v200905122109) was the version to keep.
This is old but, in my case the details of the error were:
IWAB0503E Unable to update Java build path. Please check your system environment.
java.io.FileNotFoundException: /lib/saaj.jar
So \lib\saaj.jar was not found in folder
C:\sts-4.8.0\sts-4.8.0.RELEASE\plugins\javax.xml.soap_1.3.0.v201105210645\
I created the folder lib and copied saaj.jar in it from another STS instance that I had and then it worked.

Class Library (Package) project with error when installing SpecFlow.NUnit

I have just created a Class Library (Package) project. I have never used this template before. When I install SpecFlow.NUnit, my References folder is displayed "References (Errors - see error list)". My SpecFlow.NUnit has that warning sign. Maybe I shouldn't use this type of project but I would like to understand why. Thanks.
Update: I've tried installing SpecFlow.xUnit in a second project too without success. I've installed them through Nuget.
Follow the instructions, should not be any problem. And use a Test project, that is the easiest way to get started.
Specflow documentation

error in Dundas Dashboard not working

I just installed Dundas dashboard 4.0.2 and it installed successfully. However when I try to open the program, the webpage shows me error:
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0009: Metadata file 'c:\Windows\Microsoft.NET\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. '
Source Error:
{No relevant source lines]
Source File: Line: 0
Looks identical to the error message in the following link:
http://www.telerik.com/community/forums/silverlight/vs-extensions/silverlight-demo-error.aspx
Based on that, it would seem like some prerequisite was not installed. Please post if the solution proposed there resolves your issue.
Hi i had the same problem not to long ago. I resolved it by uninstalling the latest release of Microsoft Silverlight and installing version 4 of it. Solved my problem instantly. There does seem to be an issue regarding the new version of Silverligh and Windows.
I would recommend re-installing the .NET 4.0 framework on the server.
After doing this, check IIS and make sure the application pool which is running Dundas Dashboard is set up to use ASP.NET 4.0 (not 2.0).

Missing reference setting up Web API with MVC3

I'm trying to follow these instructions for building with ASP.NET Web API and MVC 3, but am running into a problem around Step 4 tring to add this line:
routes.Add(new ServiceRoute("api/contacts", new HttpServiceHostFactory(), typeof(ContactsApi)));
The issue seems to be around the HttpServiceHostFactory; I don't have the proper reference. The related namespace is Microsoft.ApplicationServer, which I cannot find on my machine at all. I've installed AppFabric to no avail. Any idea where I can find this, and why it wasn't installed along with Web API?
Heh. Found the answer - grabbed the wrong NuGet package. When searching through the packages, "WebApi.All" never showed, both other webApi packages did. Had more success using the Package Manager Console and typing in Install-Package WebApi.All -Version 0.6.0.
Soooo... nevermind.

Exception thrown in a referenced .dll how do I debug?

I'm using watermark extenders on textboxes and an exception is being thrown from the AJAX Control Toolkit .dll. It's strange because this just started happening.
I tried debugging from the Ajax solution and Ajax examples (but with my code), but no dice.
Is there a way to step into the Ajax .dll from my solution to see where this is happening?
Couldn't you just get the source for the Ajax Control Toolkit and include it as a project in your solution and then reference it? You'd then be able to step into the code and if you really needed to, you can just put the precompiled one out when you deploy out.
The source code for the AJAX Control Toolkit is available from:
http://www.codeplex.com/AjaxControlToolkit/Release/ProjectReleases.aspx?ReleaseId=16488
Just download and start debugging.
You don't need to include the AjaxControlToolkit project. Just open the file you need (in the VS instance where your code that currently breaks is), and set a breakpoint where appropriate.
Maybe a black box approach is more appropriate here. You said that this error just started - what has changed in your environment to start this? You may be headed down a rabbit hole by stepping through the code. Can you deploy to a clean environment and not get the error? Or, does it work in the dev but not the test environment?

Resources