Asked by:
A property with name 'Server.Id' does not exist in metadata for entity type 'Cmdb.Web.ServerSoftwareLink'.

Question
-
User1794034192 posted
I have 3 tables called server, software and ServerSoftwareLink. If i click in the table list on one of them I see the list. I have one server record and one software record, but there is no link between them in de ServerSoftwareLink table.
If I click in \Server\List.aspx on view ServerSoftwareLink (\ServerSoftwareLink\List.aspx?Server.Id=1) then I get an error. (see below)
Any sugestions on how to fix it? If you need more info let me know
A property with name 'Server.Id' does not exist in metadata for entity type 'Cmdb.Web.ServerSoftwareLink'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: A property with name 'Server.Id' does not exist in metadata for entity type 'Cmdb.Web.ServerSoftwareLink'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: A property with name 'Server.Id' does not exist in metadata for entity type 'Cmdb.Web.ServerSoftwareLink'.] System.Web.UI.WebControls.EntityDataSourceView.GenerateWhereClause(String& whereClause, ObjectParameter[]& whereParameters) +919 System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments, Creator qbConstructor) +306 System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +154 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +19 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 System.Web.UI.WebControls.GridView.DataBind() +4 System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72 System.Web.UI.Control.EnsureChildControls() +87 System.Web.UI.Control.PreRenderRecursiveInternal() +44 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Control.PreRenderRecursiveInternal() +171 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
<!-- [InvalidOperationException]: A property with name 'Server.Id' does not exist in metadata for entity type 'Cmdb.Web.ServerSoftwareLink'. at System.Web.UI.WebControls.EntityDataSourceView.GenerateWhereClause(String& whereClause, ObjectParameter[]& whereParameters) at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect[T](DataSourceSelectArguments arguments, Creator qbConstructor) at System.Web.UI.WebControls.EntityDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.GridView.DataBind() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.dynamicdata_pagetemplates_list_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->Friday, August 15, 2008 10:01 AM
All replies
-
User535736832 posted
Could you please place your code and SQL query?
Friday, August 15, 2008 10:37 AM -
User-330204900 posted
I'm asuming your using Dynamic Data re:List.aspx I think you must setup a link between them to get any where. However m:m (Many to Many) is not directly supported by DD there are some post on this forum that have workarounds for this.
Hope this helps [:D]
Friday, August 15, 2008 11:40 AM -
User660823006 posted
We are investigating this issue and hope to post a solution or a work around soon.
Friday, August 15, 2008 12:01 PM -
Friday, August 15, 2008 1:57 PM
-
User-797310475 posted
We have a solution that is pending testing. We will have more details about it on Monday.
Friday, August 15, 2008 9:03 PM -
User660823006 posted
Please see the following post: http://forums.asp.net/t/1306469.aspx. Which contains links to a beta of the workaround we just posted.
Saturday, August 16, 2008 6:33 PM -
User1794034192 posted
Thank you guys. that solved it for me. great start for a monday morning[:D]
Monday, August 18, 2008 3:14 AM