RelateLinks problem: 'umbraco.item' does not contain a definition for 'Content'
Would appreciate some help on this error as soon as possible, please. :-)
What I'm trying to accomplish:
I have a template that's using RelatedLinks to allow content editors to pick a bunch of internal links and display them on a given page. This functionality was working flawlessly at one point, but I think my models have become corrupt, or they are not working correctly because I had Zbu ModelsBuilder and Jeavon's ModelsBuilder installed before upgrading to 7.6.3, and then I tried to uninstall those, but I got an error. And things have gone awry since then.
I'm able to get the RelatedLinks array without any issues. The problem occurs when I try to iterate over RelatedLink in RelatedLinks. I want to get the Content Node name of RelatedLink, so I do RelatedLink.Content.Name. This worked for me before, but it no longer works. Basically, I'm trying to access methods and properties available to RelatedLinkBase and IPublishedContent via RelatedLink.
Currently, @item.Content.Name is getting me the full path of the Content item, instead of it's name.
Please enlighten me as to where I could improve. Thank you!
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: CS0117: 'umbraco.item' does not contain a definition for 'Content'
Source Error:
Line 52: <p class="mt-4 mb-1">
Line 53: <strong>Goldman Sachs Dynamo Strategy Index Accounts</strong>
Line 54: <a class="BodyLinkL" data-toggle="modal" data-target="#@item.Content.GetPropertyValue("pageID")-modal"
Line 55: href="@item.Link" aria-controls="@item.Content.GetPropertyValue("pageID")-modal"
Line 56: aria-expanded="false" aria-label="Toggle index account details popup" aria-hidden="false"
Source File: c:\inetpub\et\Views\Section.cshtml Line: 54
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Resources.ResourceManager\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Resources.ResourceManager.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.Annotations\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ComponentModel.Annotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\20d16334\00d14cee_48f4d201\Microsoft.AspNet.Identity.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\e1899542\00d14cee_48f4d201\log4net.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.EventBasedAsync\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ComponentModel.EventBasedAsync.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\1355e451\00d14cee_48f4d201\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\bbd2d355\0018c5ec_97f6d201\Diplo.GodMode.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Emit.ILGeneration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Emit.ILGeneration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\c3eed4e6\00d14cee_48f4d201\Log4Net.Async.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\App_global.asax.85sq_hk_.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\6dfb32d1\00d14cee_48f4d201\umbraco.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\263521d8\00d14cee_48f4d201\umbraco.editorControls.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\619d776e\00b67b91_6f1bd301\AutoMapper.Net4.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\acacac54\00d14cee_48f4d201\ClientDependency.Core.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\5a0ed6a7\00d14cee_48f4d201\interfaces.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\71da7620\00d14cee_48f4d201\Umbraco.ModelsBuilder.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\a14d39cf\00d14cee_48f4d201\umbraco.providers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b4098354\00d14cee_48f4d201\businesslogic.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Numerics\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Numerics.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\7abfe542\00d14cee_48f4d201\Microsoft.ApplicationBlocks.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices.WindowsRuntime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.WindowsRuntime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\57bdbe75\00d14cee_48f4d201\System.Web.WebPages.Razor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Contracts\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Contracts.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.NetworkInformation\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.NetworkInformation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ObjectModel\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ObjectModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b5d08378\00d14cee_48f4d201\Microsoft.IO.RecyclableMemoryStream.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\75de69b8\00d14cee_48f4d201\controls.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Linq.Queryable\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.Queryable.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\9bdf4b3a\00cce353_9af6d201\BackOfficeVisualiser.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\1fdaf7f9\156ef9cc_291dd301\Microsoft.CodeAnalysis.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.XmlSerializer\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Xml.XmlSerializer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections.Concurrent\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.Concurrent.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\82aa1928\00d14cee_48f4d201\System.Web.WebPages.Deployment.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\d39547f1\00d14cee_48f4d201\ImageProcessor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Collections\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks.Parallel\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.Parallel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b42996c5\00d14cee_48f4d201\Lucene.Net.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\bd6e614d\00d14cee_48f4d201\System.Threading.Tasks.Dataflow.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Globalization\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Globalization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.NetTcp\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceModel.NetTcp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ComponentModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\fa9004a6\00d14cee_48f4d201\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.Xml\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\bf7b394a\00d14cee_48f4d201\System.Web.Http.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.Runtime.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.ReaderWriter\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Xml.ReaderWriter.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\8090178f\00d14cee_48f4d201\System.Collections.Immutable.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Emit\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Emit.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Requests\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Requests.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\711a1d2d\00d14cee_48f4d201\umbraco.MacroEngines.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\c81e06a1\00d14cee_48f4d201\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\ff0c08f8\00b4a993_98f6d201\Skybrud.Social.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\a11e8add\00d14cee_48f4d201\Microsoft.AspNet.SignalR.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\87457979\00d14cee_48f4d201\UmbracoExamine.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\e438b43c\00d14cee_48f4d201\ICSharpCode.SharpZipLib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\bf6ec7b5\00d14cee_48f4d201\Microsoft.AspNet.Identity.Owin.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\eb845950\00d14cee_48f4d201\MarkdownSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\dc8d3a8e\00d14cee_48f4d201\System.Web.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceModel.Http.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceModel.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\0d6ea17a\00d14cee_48f4d201\Umbraco.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\57483c14\00d14cee_48f4d201\Microsoft.Owin.Security.Cookies.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b1a91be2\00d14cee_48f4d201\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\39fec66c\00d14cee_48f4d201\System.Reflection.Metadata.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b7c64e36\00d14cee_48f4d201\cms.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceModel.Security.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.Json\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Json.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Security.Principal\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.Principal.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b19bdfc6\00d14cee_48f4d201\HtmlAgilityPack.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\19f77505\00d14cee_48f4d201\Owin.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\a189ef16\00d14cee_48f4d201\Umbraco.Web.UI.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\bfc87ff7\00d14cee_48f4d201\MiniProfiler.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\0e54ef7f\00d14cee_48f4d201\ImageProcessor.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.XDocument\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Xml.XDocument.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\b585c3e1\00d14cee_48f4d201\TidyNet.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Tools\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tools.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\24e337a5\00d14cee_48f4d201\Microsoft.Owin.Host.SystemWeb.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Debug\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Debug.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\59c85f50\00d14cee_48f4d201\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IO\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\58dc1c00\00d14cee_48f4d201\CookComputing.XmlRpcV2.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\af38decd\15790ccd_291dd301\Microsoft.CodeAnalysis.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\c84dbdb8\00d14cee_48f4d201\Microsoft.Owin.Security.OAuth.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\6b60a05a\00d14cee_48f4d201\umbraco.DataLayer.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Primitives.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\74ad9232\00d14cee_48f4d201\System.Data.SqlServerCe.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\a6bcc1ab\00d14cee_48f4d201\Semver.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\086599cc\00d14cee_48f4d201\SQLCE4Umbraco.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\251bae24\00d14cee_48f4d201\System.Data.SqlServerCe.Entity.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\c04a36b3\00b67b91_6f1bd301\AutoMapper.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.InteropServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.InteropServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Linq.Expressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.Expressions.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\938c0eea\00d14cee_48f4d201\System.Web.Http.WebHost.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\318b9cd5\00d14cee_48f4d201\ClientDependency.Core.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\App_Web_all.generated.cs.8f9494c4.geviewc3.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\e2a4c656\00d14cee_48f4d201\MySql.Data.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\4fe4f2a3\00d14cee_48f4d201\Examine.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Tracing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tracing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Duplex\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceModel.Duplex.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\851fdbb7\00d14cee_48f4d201\System.Net.Http.Formatting.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\d03b64a3\00b4a993_98f6d201\Analytics.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Emit.Lightweight\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Emit.Lightweight.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\954212d0\00d14cee_48f4d201\Microsoft.Owin.Security.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\assembly\dl3\e4fc03c7\00d14cee_48f4d201\Microsoft.Owin.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Linq.Parallel\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.Parallel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Text.RegularExpressions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.RegularExpressions.dll" /out:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\App_Web_section.cshtml.65a2d1ee.i0q3effh.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror- "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\App_Web_section.cshtml.65a2d1ee.i0q3effh.0.cs" "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\e5c6f369\10214164\App_Web_section.cshtml.65a2d1ee.i0q3effh.1.cs"
Microsoft (R) Visual C# Compiler version 4.6.1099.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
c:\inetpub\et\Views\Section.cshtml(54,110): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(55,87): error CS0117: 'umbraco.item' does not contain a definition for 'Link'
c:\inetpub\et\Views\Section.cshtml(55,92): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(63,63): error CS0117: 'umbraco.item' does not contain a definition for 'Caption'
c:\inetpub\et\Views\Section.cshtml(72,106): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(73,87): error CS0117: 'umbraco.item' does not contain a definition for 'Link'
c:\inetpub\et\Views\Section.cshtml(73,88): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(75,55): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(80,59): error CS0117: 'umbraco.item' does not contain a definition for 'Caption'
c:\inetpub\et\Views\Section.cshtml(86,87): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(87,87): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(89,101): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(90,87): error CS0117: 'umbraco.item' does not contain a definition for 'Content'
c:\inetpub\et\Views\Section.cshtml(97,72): error CS0117: 'umbraco.item' does not contain a definition for 'Link'
c:\inetpub\et\Views\Section.cshtml(100,55): error CS0117: 'umbraco.item' does not contain a definition for 'Caption'
Please, check that you define "item" as a variable, this error told you that item is a umbraco.item class, and it's not right, try to rename "item" or define a variable as a variable.
RelateLinks problem: 'umbraco.item' does not contain a definition for 'Content'
Would appreciate some help on this error as soon as possible, please. :-)
What I'm trying to accomplish:
I have a template that's using RelatedLinks to allow content editors to pick a bunch of internal links and display them on a given page. This functionality was working flawlessly at one point, but I think my models have become corrupt, or they are not working correctly because I had Zbu ModelsBuilder and Jeavon's ModelsBuilder installed before upgrading to 7.6.3, and then I tried to uninstall those, but I got an error. And things have gone awry since then.
I'm able to get the RelatedLinks array without any issues. The problem occurs when I try to iterate over RelatedLink in RelatedLinks. I want to get the Content Node name of RelatedLink, so I do RelatedLink.Content.Name. This worked for me before, but it no longer works. Basically, I'm trying to access methods and properties available to RelatedLinkBase and IPublishedContent via RelatedLink.
Currently, @item.Content.Name is getting me the full path of the Content item, instead of it's name.
Please enlighten me as to where I could improve. Thank you!
Umbraco 7.6.3 Windows 7 Professional
web.config file (Views dir) has the following:
web.config (root dir) has the following:
The page where I'm trying to render the content has the following code at the top:
YSOD and strack trace:
Hi Aluma
Please, check that you define "item" as a variable, this error told you that item is a umbraco.item class, and it's not right, try to rename "item" or define a variable as a variable.
Or post all the code and we will fix it.
Thanks,
Alex
Hi Aluma
Did you find out what is the problem?
Thanks,
Alex
is working on a reply...