Public Overridable ReadOnly Property IsPost As Boolean' is declared in project

Posted by Dotnet_EVIL under ASP.NET MVC on 7/30/2014 | Points: 10 | Views : 1617 | Status : [Member] | Replies : 0
Hello,

I am using ASP.Net MVC with VB.Net and Razor. Now, with the "IsPost" is blue colored underlined and showing the following error:-
----------------------------
Error 1 'Public Overridable ReadOnly Property IsPost As Boolean' is declared in project 'System.Web.WebPages.dll', which is not referenced by project '1_Views_Home_Index.vbhtml'. Add a reference to 'System.Web.WebPages.dll' to your project '1_Views_Home_Index.vbhtml'. This error could also be due to mixing a file reference to 'C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\Assemblies\System.Web.WebPages.dll' in project 'MvcApplication2' with a file reference to 'C:\Program Files\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.WebPages.dll' in project '1_Views_Home_Index.vbhtml'. If both assemblies are identical, try replacing these references so both references are from the same location. C:\Documents and Settings\arijit server\my documents\visual studio 2010\Projects\MvcApplication2\MvcApplication2\Views\Home\Index.vbhtml 37 8 MvcApplication2
-----------------------------

Please let me know why I am getting this error and how can I get a solution of this error.


Thanks.




Responses

(No response found.)

Login to post response