Setup And Getting Started Forum


2.0 Getting error

 
An error occurred when trying to create a controller of type 'MvcCms.Web.Controllers.HomeController'. Make sure that the controller has a parameterless public constructor.

Fails here first

public IEnumerable<ContentCategory> ListAllCategories()
{
return (from c in _entities.ContentCategorySet
.Include("ParentCategory")
.Include("SubCategories")
.Include("Portal")
orderby c.ParentCategory.CategoryID, c.Importance, c.Title
select c).ToList();
}

_entities is null


Then with a refresh get the above error message.
1 years 8 months 20 days ago by wlgray

Replies

Reply posted by wlgray 1 years 8 months 20 days ago View Branch And Reply
Ok got the login working now I get this

Server Error in '/' Application.
----------------------------------------------------------------------------


MvcCmsDataModel.msl(3148,6) : error 3007: Problem in mapping fragments starting at lines 2817, 3148:Column(s) ProductID are being mapped in both fragments to different conceptual side properties.
...admin edit for length...

System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207




----------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Reply posted by wlgray 1 years 8 months 20 days ago View Branch And Reply
When I rebuild the solution I get
Error 78 Error 3007: Problem in mapping fragments starting at lines 10117, 10336:Column(s) ProductID are being mapped in both fragments to different conceptual side properties.
C:\projects\mvccms\MvcCms 2.0\MvcCms.Data\MvcCmsDataModel.edmx 10337 10341 MvcCms.Data

My dev environment:
Visual Studio 2010 Ultimate
SQL Server 2008 Enterprise
IIS 7
All development done on Windows 7 Ultimate box

I ran the SQL Full Script and haven't changed the portal information. Running from the dev env.
Reply posted by jon 1 years 8 months 19 days ago View Branch And Reply
The project isn't setup yet for studio 2010, you will need to use 2008.
Reply posted by jon 1 years 4 months 8 days ago View Branch And Reply
The project is running in Studio 2010 now. I have this site running on the new version. I am having some problems with Wikiplex taking up a very large amount of memory when it starts up some of its features. But overall its working.