blogspot visit counter

Wednesday, 19 June 2013

The type 'ModelClientValidationRule' exists in both dlls

When i create a first MVC 3 Project then i got the error

The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' and 'c:\Program Files\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll'    E:\DemoMVC\DemoMVC\Models\AccountModels


Error 1 The type 'System.Web.Mvc.ModelClientValidationRule' exists in both 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll' and 'c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' C:\studyCode\MVCDemo-Part12\MVCDemo-Part12\MVCDemo\Attributes\Validation\EqualAttribute.cs 54 28 MVCDemo

Solution for this problem is

Write Click on References in your project [write side]

as show in image 

and Delete the Reference Dll

As Shown Below


after delete this  .dll  build your project  . Build Success

The type 'ModelClientValidationRule' exists in both dlls

1 comment:

Related Posts Plugin for WordPress, Blogger...