the sample project doesn't work

Nov 7, 2010 at 8:45 AM

i tried the mvc sample on this project.

it is using mvc3 fromwork.But it's old mvc version.

so,it have a lot of problem to compile it.

i solved some problem but it still have a lot.

anyone can  keep doing research... XD

1.you have to reference the follow dll:
system.web.helpers
system.web.webpages
WebMatrix.Data

2.Replace "LayoutPage" to "Layout"
LayoutPage is old version method.that's why we have to replace it.

and then... i still got error message... and  i didn't know how to solve it.

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: CS1061: 'System.Collections.Generic.IEnumerable<MVCSample.UI.Models.NewsSearchModel>' does not contain a definition for 'Title' and no extension method 'Title' accepting a first argument of type 'System.Collections.Generic.IEnumerable<MVCSample.UI.Models.NewsSearchModel>' could be found (are you missing a using directive or an assembly reference?)

Source Error:

 
Line 2:  
Line 3:  @{
Line 4:  	View.Title = Model.Title;
Line 5:  	Layout = "~/Views/Shared/_Layout.cshtml";
Line 6:  }

 

Coordinator
May 13, 2011 at 11:08 AM

Hi superos,

Sorry for this lately response. I have a long time for business, and just came back last week. 

After went to this project, I saw your problem. I have a question for you. Why don't you got the latest ASP.NET MVC 3, just released by Microsoft? I think it will be work good.

And Gapi4net only need to reference to your project.

Coordinator
Jun 1, 2011 at 4:52 PM
superos wrote:

i tried the mvc sample on this project.

it is using mvc3 fromwork.But it's old mvc version.

so,it have a lot of problem to compile it.

i solved some problem but it still have a lot.

anyone can  keep doing research... XD

1.you have to reference the follow dll:
system.web.helpers
system.web.webpages
WebMatrix.Data

2.Replace "LayoutPage" to "Layout"
LayoutPage is old version method.that's why we have to replace it.

and then... i still got error message... and  i didn't know how to solve it.

 

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: CS1061: 'System.Collections.Generic.IEnumerable<MVCSample.UI.Models.NewsSearchModel>' does not contain a definition for 'Title' and no extension method 'Title' accepting a first argument of type 'System.Collections.Generic.IEnumerable<MVCSample.UI.Models.NewsSearchModel>' could be found (are you missing a using directive or an assembly reference?)

Source Error:

 

 
Line 2:  
Line 3:  @{
Line 4:  	View.Title = Model.Title;
Line 5:  	Layout = "~/Views/Shared/_Layout.cshtml";
Line 6:  }

I have just finished to upgrade this project to ASP.NET MVC 3.0. Thanks for your comment!