Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Rasmussen 81 posts 310 karma points
    Nov 28, 2012 @ 16:55
    Kim Rasmussen
    0

    Compilation Error

    Hi, 

    I have just installed the starter kit, but nothing shows on the frontend, except nasty errors.

     
    Line 7:      <ul> 
    Line 8:              @{
    Line 9:          var nodeIds = Model.Content.GetPropertyValue("slideshow").Split(',');
    Line 10:         List<IPublishedContent> slides = new List<IPublishedContent>();
    Line 11: 

    Source File: c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml    Line: 9 

    Umbraco 4.11.1 - MVC-mode was set in configuration file before install. Running local in WebMatrix. 

    Best regards 
    Kim

  • Chris Koiak 700 posts 2626 karma points
    Nov 29, 2012 @ 15:48
    Chris Koiak
    0

    Hi Kim,

    Can you give some detail on the error that's thrown at line 9?

    Cheers

    Chris

  • alexant 22 posts 42 karma points
    Nov 29, 2012 @ 16:15
    alexant
    0

    about the same problem:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = "SW_Master.cshtml"; }

      @{ var nodeIds = Model.Content.GetPropertyValue("slideshow").ToString().Split(','); Listslides = new List(); foreach (var nodeId in nodeIds) { if (!String.IsNullOrEmpty(nodeId)) { var publishedContent = Umbraco.NiceUrl(Convert.ToInt32(nodeId)); if (!String.IsNullOrEmpty(publishedContent) && publishedContent != "#") { slides.Add(Umbraco.TypedContent(nodeId)); } } } } @foreach (var slide in slides) { if(slide != null) { string styleString = !slide.IsFirst() ? "display:none;" : "";
    • @slide.Name
      @Html.Raw(@slide.GetPropertyValue("bodyText").ToString())
      } }
      @foreach (var slide in slides) { string classString = slide.IsFirst() ? "selected" : "";
    • @slide.Position() }
    @Html.Raw(Model.Content.GetPropertyValue("panelContent1").ToString())
    @Html.Raw(Model.Content.GetPropertyValue("panelContent2").ToString())
    @Html.Raw(Model.Content.GetPropertyValue("panelContent3").ToString())
     
     
     
    that's what is being shown insteed of compilation of my site
  • Chris Koiak 700 posts 2626 karma points
    Nov 29, 2012 @ 16:16
    Chris Koiak
    0

    Alexant - Have you set the defaultRenderingEngine to MVC?

  • Kim Rasmussen 81 posts 310 karma points
    Nov 29, 2012 @ 16:41
    Kim Rasmussen
    0

    Hi Chris,

    Detailed Compiler Output - some errors in Danish, but I'am sure you know what's going on :)

    C:\Users\kra\Desktop> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /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\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\e877fb8f\7568bae3_7acdcd01\MySql.Data.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\9933a97a\353825e4_7acdcd01\umbraco.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\ddda5129\d57b46e4_7acdcd01\umbraco.XmlSerializers.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\c5537230\d51472e3_7acdcd01\ClientDependency.Core.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\a1119620\c5227ee3_7acdcd01\cms.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\14db703a\3508b0e3_7acdcd01\Microsoft.Web.Helpers.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\244a389e\75734ae4_7acdcd01\UmbracoExamine.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\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\a375f29c\054b38e4_7acdcd01\umbraco.providers.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\36aaf6c3\655334e4_7acdcd01\umbraco.macroRenderings.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.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\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\0585d4d6\153642e4_7acdcd01\umbraco.webservices.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\af02396e\151f31e4_7acdcd01\umbraco.MacroEngines.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\d304a120\b5a28c18_7ccdcd01\Lucene.Net.Contrib.Highlighter.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\7d4294e0\556dc1e3_7acdcd01\Our.Umbraco.uGoLive.47x.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\f3072cc6\65a295e3_7acdcd01\ICSharpCode.SharpZipLib.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\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\e66a3279\354b90e3_7acdcd01\HtmlAgilityPack.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\fc1a6aae\357b05e4_7acdcd01\TidyNet.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Razor.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\cc84e40d\553f9fe3_7acdcd01\log4net.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\251f4729\156b4ee4_7acdcd01\UrlRewritingNet.UrlRewriter.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Helpers\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.Helpers.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\7c3ce968\153d2ce4_7acdcd01\umbraco.editorControls.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.SqlServerCe.Entity\v4.0_4.0.0.0__89845dcd8080cc91\System.Data.SqlServerCe.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\24da71c6\35ac6be3_7acdcd01\businesslogic.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\App_Code.wd58ejt-.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\a149a996\f5b7cce3_7acdcd01\SQLCE4Umbraco.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\5c1f8d05\3526abe3_7acdcd01\Microsoft.ApplicationBlocks.Data.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.Web.Extensions.Design\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.Design.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.Web.Routing\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Routing.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\1eb52370\856882e3_7acdcd01\controls.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\0f1976a8\65e7c8e3_7acdcd01\Our.Umbraco.uGoLive.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\4c50ea47\454814e4_7acdcd01\umbraco.DataLayer.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\71753399\c5efc4e3_7acdcd01\Our.Umbraco.uGoLive.Checks.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\25ed4c4e\55d586e3_7acdcd01\CookComputing.XmlRpcV2.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\App_global.asax.av5ikxxs.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\4bac16bf\25428be3_7acdcd01\Examine.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\7333e186\b5d698e3_7acdcd01\interfaces.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\7f75a176\45660fe4_7acdcd01\Umbraco.Core.DLL" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\6abd54af\b5d8ebe3_7acdcd01\System.Web.Mvc.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Abstractions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Abstractions.dll" /R:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\627fdabe\557f3be4_7acdcd01\Umbraco.Web.UI.DLL" /R:"C:\Windows\assembly\GAC_MSIL\System.Data.SqlServerCe\4.0.0.0__89845dcd8080cc91\System.Data.SqlServerCe.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:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\assembly\dl3\4c194b80\e5f1a7e3_7acdcd01\Lucene.Net.DLL" /out:"C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\App_Web_home.cshtml.65a2d1ee.m9a5hk20.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror-  "C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\App_Web_home.cshtml.65a2d1ee.m9a5hk20.0.cs" "C:\Users\kra\AppData\Local\Temp\Temporary ASP.NET Files\root\f192c25c\ce7199ce\App_Web_home.cshtml.65a2d1ee.m9a5hk20.1.cs"
    
    
    Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
    Copyright (C) Microsoft Corporation. Alle rettigheder forbeholdes.
    
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(9,67): error CS1061: 'object' indeholder ikke en definition til 'Split', og der blev ikke fundet en udvidelsesmetode 'Split', der accepterer et første argument af typen 'object' (mangler du en 'using'-direktiv eller en assemblyreference?)
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(33,22): error CS1502: Den overloadede metode, der passer til 'System.Web.Mvc.HtmlHelper.Raw(string)', indeholder ugyldige argumenter
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(33,31): error CS1503: Argumentet 1: kan ikke konvertere fra 'object' til 'string'
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(55,22): error CS1502: Den overloadede metode, der passer til 'System.Web.Mvc.HtmlHelper.Raw(string)', indeholder ugyldige argumenter
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(55,31): error CS1503: Argumentet 1: kan ikke konvertere fra 'object' til 'string'
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(59,22): error CS1502: Den overloadede metode, der passer til 'System.Web.Mvc.HtmlHelper.Raw(string)', indeholder ugyldige argumenter
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(59,31): error CS1503: Argumentet 1: kan ikke konvertere fra 'object' til 'string'
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(63,22): error CS1502: Den overloadede metode, der passer til 'System.Web.Mvc.HtmlHelper.Raw(string)', indeholder ugyldige argumenter
    c:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml(63,31): error CS1503: Argumentet 1: kan ikke konvertere fra 'object' til 'string'
    

    Show Complete Compilation Source:

    Line 1:    #pragma checksum "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C83A3201192B34E828C320EA92FFD6E1"
    Line 2:    //------------------------------------------------------------------------------
    Line 3:    // <auto-generated>
    Line 4:    //     This code was generated by a tool.
    Line 5:    //     Runtime Version:4.0.30319.296
    Line 6:    //
    Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
    Line 8:    //     the code is regenerated.
    Line 9:    // </auto-generated>
    Line 10:   //------------------------------------------------------------------------------
    Line 11:   
    Line 12:   namespace ASP {
    Line 13:       using System;
    Line 14:       using System.Collections.Generic;
    Line 15:       using System.IO;
    Line 16:       using System.Linq;
    Line 17:       using System.Net;
    Line 18:       using System.Web;
    Line 19:       using System.Web.Helpers;
    Line 20:       using System.Web.Security;
    Line 21:       using System.Web.UI;
    Line 22:       using System.Web.WebPages;
    Line 23:       using Microsoft.Web.Helpers;
    Line 24:       using umbraco;
    Line 25:       using Examine;
    Line 26:       using System.Web.Mvc;
    Line 27:       using System.Web.Mvc.Ajax;
    Line 28:       using System.Web.Mvc.Html;
    Line 29:       using System.Web.Routing;
    Line 30:       using Umbraco.Web;
    Line 31:       using Umbraco.Core;
    Line 32:       using Umbraco.Core.Models;
    Line 33:       
    Line 34:       
    Line 35:       public class _Page_Views_Home_cshtml : Umbraco.Web.Mvc.UmbracoTemplatePage {
    Line 36:           
    Line 37:   #line hidden
    Line 38:   
    Line 39:           
    Line 40:           public _Page_Views_Home_cshtml() {
    Line 41:           }
    Line 42:           
    Line 43:           protected ASP.global_asax ApplicationInstance {
    Line 44:               get {
    Line 45:                   return ((ASP.global_asax)(Context.ApplicationInstance));
    Line 46:               }
    Line 47:           }
    Line 48:           
    Line 49:           public override void Execute() {
    Line 50:   
    Line 51:   
    Line 52:               
    Line 53:               #line 2 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 54:     
    Line 55:       Layout = "SW_Master.cshtml";
    Line 56:   
    Line 57:   
    Line 58:               
    Line 59:               #line default
    Line 60:               #line hidden
    Line 61:   WriteLiteral(" \r\n    <div id=\"slideshow\">\r\n    <ul> \r\n");
    Line 62:   
    Line 63:   
    Line 64:               
    Line 65:               #line 8 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 66:                 
    Line 67:           var nodeIds = Model.Content.GetPropertyValue("slideshow").Split(',');
    Line 68:           List<IPublishedContent> slides = new List<IPublishedContent>();
    Line 69:   
    Line 70:           foreach (var nodeId in nodeIds)
    Line 71:           {
    Line 72:               if (!String.IsNullOrEmpty(nodeId))
    Line 73:               {
    Line 74:                   var publishedContent = Umbraco.NiceUrl(Convert.ToInt32(nodeId));
    Line 75:                   if (!String.IsNullOrEmpty(publishedContent) && publishedContent != "#")
    Line 76:                   {
    Line 77:                       slides.Add(Umbraco.TypedContent(nodeId));
    Line 78:                   }
    Line 79:               }
    Line 80:           }
    Line 81:           
    Line 82:   
    Line 83:               
    Line 84:               #line default
    Line 85:               #line hidden
    Line 86:   WriteLiteral("\r\n");
    Line 87:   
    Line 88:   
    Line 89:               
    Line 90:               #line 25 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 91:            foreach (var slide in slides)
    Line 92:           {
    Line 93:               if(slide != null)
    Line 94:               {
    Line 95:                   string styleString = !slide.IsFirst() ? "display:none;" : "";
    Line 96:   
    Line 97:               
    Line 98:               #line default
    Line 99:               #line hidden
    Line 100:  WriteLiteral("                <li class=\"rotating-panel fc\" style=\"");
    Line 101:  
    Line 102:  
    Line 103:              
    Line 104:              #line 30 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 105:                                                  Write(styleString);
    Line 106:  
    Line 107:              
    Line 108:              #line default
    Line 109:              #line hidden
    Line 110:  WriteLiteral("\">\r\n                    <img class=\"fl\" alt=\"");
    Line 111:  
    Line 112:  
    Line 113:              
    Line 114:              #line 31 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 115:                                      Write(slide.Name);
    Line 116:  
    Line 117:              
    Line 118:              #line default
    Line 119:              #line hidden
    Line 120:  WriteLiteral("\" src=\"");
    Line 121:  
    Line 122:  
    Line 123:              
    Line 124:              #line 31 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 125:                                                        Write(slide.GetPropertyValue("mainImage"));
    Line 126:  
    Line 127:              
    Line 128:              #line default
    Line 129:              #line hidden
    Line 130:  WriteLiteral("\"/>\r\n                    <div class=\"\">\r\n                    ");
    Line 131:  
    Line 132:  
    Line 133:              
    Line 134:              #line 33 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 135:                 Write(Html.Raw(@slide.GetPropertyValue("bodyText")));
    Line 136:  
    Line 137:              
    Line 138:              #line default
    Line 139:              #line hidden
    Line 140:  WriteLiteral("\r\n                    </div>\r\n                </li>\r\n");
    Line 141:  
    Line 142:  
    Line 143:              
    Line 144:              #line 36 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 145:              }
    Line 146:          }
    Line 147:  
    Line 148:              
    Line 149:              #line default
    Line 150:              #line hidden
    Line 151:  WriteLiteral("    </ul>\r\n      <ul id=\"slidePager\">\r\n");
    Line 152:  
    Line 153:  
    Line 154:              
    Line 155:              #line 40 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 156:           foreach (var slide in slides)
    Line 157:          {
    Line 158:              string classString = slide.IsFirst() ? "selected" : "";
    Line 159:  
    Line 160:              
    Line 161:              #line default
    Line 162:              #line hidden
    Line 163:  WriteLiteral("          <li>\r\n            <a href=\"?position={position()}\" class=\"");
    Line 164:  
    Line 165:  
    Line 166:              
    Line 167:              #line 44 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 168:                                                 Write(classString);
    Line 169:  
    Line 170:              
    Line 171:              #line default
    Line 172:              #line hidden
    Line 173:  WriteLiteral("\">\r\n              ");
    Line 174:  
    Line 175:  
    Line 176:              
    Line 177:              #line 45 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 178:           Write(slide.Position());
    Line 179:  
    Line 180:              
    Line 181:              #line default
    Line 182:              #line hidden
    Line 183:  WriteLiteral("\r\n            </a>\r\n          </li>\r\n");
    Line 184:  
    Line 185:  
    Line 186:              
    Line 187:              #line 48 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 188:          }
    Line 189:  
    Line 190:              
    Line 191:              #line default
    Line 192:              #line hidden
    Line 193:  WriteLiteral("      </ul>\r\n\r\n    </div>\r\n \r\n    <div class=\"fc\">\r\n        <div class=\"feature f" +
    Line 194:  "l\">\r\n                    ");
    Line 195:  
    Line 196:  
    Line 197:              
    Line 198:              #line 55 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 199:                 Write(Html.Raw(Model.Content.GetPropertyValue("panelContent1")));
    Line 200:  
    Line 201:              
    Line 202:              #line default
    Line 203:              #line hidden
    Line 204:  WriteLiteral("\r\n             </div>\r\n\r\n        <div class=\"feature fl\">\r\n                    ");
    Line 205:  
    Line 206:  
    Line 207:              
    Line 208:              #line 59 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 209:                 Write(Html.Raw(Model.Content.GetPropertyValue("panelContent2")));
    Line 210:  
    Line 211:              
    Line 212:              #line default
    Line 213:              #line hidden
    Line 214:  WriteLiteral("\r\n             </div>\r\n\r\n        <div class=\"feature fr\">\r\n                    ");
    Line 215:  
    Line 216:  
    Line 217:              
    Line 218:              #line 63 "C:\Users\kra\Desktop\Umbraco 4.11.1\Views\Home.cshtml"
    Line 219:                 Write(Html.Raw(Model.Content.GetPropertyValue("panelContent3")));
    Line 220:  
    Line 221:              
    Line 222:              #line default
    Line 223:              #line hidden
    Line 224:  WriteLiteral("\r\n             </div>\r\n    </div>");
    Line 225:  
    Line 226:  
    Line 227:          }
    Line 228:      }
    Line 229:  }
    Line 230:  


    Best regards
    Kim

  • alexant 22 posts 42 karma points
    Nov 30, 2012 @ 16:14
    alexant
    0

    Yes I did set it to MVC.

  • Kim Rasmussen 81 posts 310 karma points
    Dec 03, 2012 @ 16:19
    Kim Rasmussen
    1

    Okay, that's weird ... after a reinstall of the package, it works - so no worries! 

    Best regards
    Kim 

  • Pete K 317 posts 56 karma points
    Dec 21, 2012 @ 18:26
    Pete K
    0

    Alexant, I had the same problem. In my case, I didn't read the instructions carefully and set the defaultRenderingEngine to MVC only after installing the package. That didn't work. But after uninstalling and then reinstalling (after verifying the defaultRenderingEngine setting) it now renders properly. 

    By the way Chris, I noticed a couple of issues during the uninstall process. The uninstall failed when remiving doc types. It was apparently trying to delete a master doc type before deleting children. Also, it failed to remove the users it created, which caused the next attempt at installation to fail. I got it all straightened out, but I thought you might want to know. 

  • Debbie Wright 1 post 21 karma points
    Jan 28, 2013 @ 17:42
    Debbie Wright
    0

    Pete,

    I did the same thing (installed the package without setting MVC first), how did you fix the uninstall? thank you

    Debbie

  • James Drever 118 posts 149 karma points
    Feb 20, 2013 @ 17:19
    James Drever
    0

    Hi, I'm trying to install the package on Umbraco 6, and I'm getting exactly the same error as Kim above.  I HAVE set defaultRenderingEngine to MVC before installing the package, and I have tried re-installing, but I'm still getting the error message.  I'd be very grateful if anyone had a suggestion about how to fix this!

     

    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: 'object' does not contain a definition for 'Split' and no extension method 'Split' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)

    Source Error:

     
    Line 7:      <ul> 
    Line 8:              @{
    Line 9: var nodeIds = Model.Content.GetPropertyValue("slideshow").Split(','); Line 10:         List<IPublishedContent> slides = new List<IPublishedContent>();
    Line 11: 


    Source File: d:\inetpub\umbraco-6\Views\Home.cshtml    Line: 9 


    Show Detailed Compiler Output:


    Show Complete Compilation Source:




    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033

     

  • Chris Koiak 700 posts 2626 karma points
    Feb 20, 2013 @ 17:22
    Chris Koiak
    1

    1) Can you try republishing the site?

    2) Can you see the nodes in the 'Primary navigation' tab on the homepage?

  • James Drever 118 posts 149 karma points
    Feb 20, 2013 @ 17:33
    James Drever
    0

    Chris, big thanks for your help - but I've just found the problem - which was my own stupity.  I reinstalled with the latest StandardWebsiteMVC_2.0.zip - think I was using an earlier version.  And all works.  Thanks for creating the package, Chris - I'm sure its going to help guide my MVC work with Umbraco. James.

  • Chris Koiak 700 posts 2626 karma points
    Feb 20, 2013 @ 17:34
    Chris Koiak
    0

    No probs, enjoy!

  • Tommy 12 posts 74 karma points
    Feb 20, 2013 @ 23:34
    Tommy
    0

    After installing a completely fresh Umbraco 6.0, defaultRendering to MVC and installing the Standard Website Mvc, I get this error when trying to access the client area:

    Any idea's ?

    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: CS0246: The type or namespace name 'Koiak' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

     
    Line 19:             @Html.Raw(Model.Content.GetPropertyValue<string>("bodyText"))
    Line 20:            
    Line 21: @Html.Partial("LoginForm",new Koiak.StandardWebsite.LoginModel()) Line 22:        </div>
    Line 23: </div>


    Source File: c:\inetpub\vhosts\4730.win4.testsider.dk\httpdocs\Views\Login.cshtml    Line: 21 

  • Tommy 12 posts 74 karma points
    Feb 20, 2013 @ 23:35
    Tommy
    0

    Same thing happens on the contact form:

    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: CS0246: The type or namespace name 'Koiak' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:

     
    Line 13:             @Html.Raw(Model.Content.GetPropertyValue<string>("bodyText"))
    Line 14:            
    Line 15: @Html.Partial("ContactForm",new Koiak.StandardWebsite.ContactFormModel()) Line 16:        </div>
    Line 17: </div>


    Source File: c:\inetpub\vhosts\4730.win4.testsider.dk\httpdocs\Views\Contact.cshtml    Line: 15 

  • Chris Koiak 700 posts 2626 karma points
    Feb 20, 2013 @ 23:41
    Chris Koiak
    0

    Tommy, 


    The error is saying 'The type or namespace name 'Koiak' could not be found'. Have you checked that the models are in you app code correctly?

    Please try and raise separate bugs as separate topics. 

    Cheers

    Chris

  • Tommy 12 posts 74 karma points
    Feb 20, 2013 @ 23:42
    Tommy
    0

    How do I check that ? (sorry about the topic placement)

  • Chris Koiak 700 posts 2626 karma points
    Feb 20, 2013 @ 23:44
    Chris Koiak
    0

    You should find the classes in the App_Code folder.

    I'm also not sure you have the right permissions set. I'd double check that too.

  • Tommy 12 posts 74 karma points
    Feb 20, 2013 @ 23:47
    Tommy
    0

    You are right... The App_Code folder is empty...and the rights for this folder was incorrect... 

    Which files should be in the App_Code folder ?

    Do I need to reinstall or can I fix it manually ?

  • Chris Koiak 700 posts 2626 karma points
    Feb 20, 2013 @ 23:49
    Chris Koiak
    0

    I'd try a reinstall, there's no manual fix

  • Tommy 12 posts 74 karma points
    Feb 20, 2013 @ 23:49
    Tommy
    0

    ok, i'll try that.

    Thanx a lot for your help :-) 

Please Sign in or register to post replies

Write your reply to:

Draft