When i create a first MVC 3 Project then i got the error
and
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
System.Web.WebPages
after delete this .dll build your project . Build Success
The type 'ModelClientValidationRule' exists in both dlls
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
and
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
System.Web.WebPages
after delete this .dll build your project . Build Success
No comments:
Post a Comment