Copied to clipboard

Flag this post as spam?

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


  • MB 273 posts 936 karma points
    Oct 01, 2019 @ 18:36
    MB
    0

    The type or namespace name 'Slimsy' could not be found

    I'm using:

    • Umbraco 7.13.2
    • Slimsy 2.0.0
    • framework 4.5.2
    • HtmlAgilityPack 1.11.15.0

    I have formated my PC, installed Visual Studio Community 2019 and on top of that the plugin Web Compiler 1.12.394. But starting up my website suddenly failed.

    Upon researching the subject I found a ticket which had lots of informations but unfortunately, nothing that helped me (https://our.umbraco.com/packages/website-utilities/slimsy/slimsy-feedback/61805-Error-during-install-of-Slimsy-114)

    My HtmlAgilityPack in web.config looks like:

       <dependentAssembly>
        <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.11.15.0" newVersion="1.11.15.0" />
      </dependentAssembly>
    

    The entire error log I get is:

         2019-10-01 20:33:54,979 [P3696/D6/T1] INFO  Umbraco.Core.CoreBootManager - Umbraco 7.13.2 application starting on DESKTOP-QEV4RC4
     2019-10-01 20:33:54,995 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Determining hash of code files on disk
     2019-10-01 20:33:55,001 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Hash determined (took 6ms)
     2019-10-01 20:33:55,035 [P3696/D6/T1] INFO  Umbraco.Core.MainDom - Acquiring MainDom...
     2019-10-01 20:33:55,036 [P3696/D6/T1] INFO  Umbraco.Core.MainDom - Acquired MainDom.
     2019-10-01 20:33:55,037 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:55,078 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 41ms)
     2019-10-01 20:33:55,078 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IApplicationStartupHandler
     2019-10-01 20:33:55,079 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IApplicationStartupHandler (took 0ms)
     2019-10-01 20:33:55,095 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:55,096 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:55,096 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
     2019-10-01 20:33:55,096 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter (took 0ms)
     2019-10-01 20:33:55,097 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:55,097 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:55,097 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Core.PropertyEditors.IPropertyValueConverter
     2019-10-01 20:33:55,098 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Core.PropertyEditors.IPropertyValueConverter (took 1ms)
     2019-10-01 20:33:55,109 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:55,109 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:55,110 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Web.Mvc.SurfaceController
     2019-10-01 20:33:55,110 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Web.Mvc.SurfaceController (took 0ms)
     2019-10-01 20:33:55,111 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:55,111 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:55,111 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Web.WebApi.UmbracoApiController
     2019-10-01 20:33:55,112 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Web.WebApi.UmbracoApiController (took 0ms)
     2019-10-01 20:33:56,092 [P3696/D6/T1] INFO  Umbraco.Core.DatabaseContext - CanConnect = True
     2019-10-01 20:33:56,261 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Core.Models.PublishedContent.PublishedContentModel
     2019-10-01 20:33:56,263 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Core.Models.PublishedContent.PublishedContentModel (took 1ms)
     2019-10-01 20:33:56,336 [P3696/D6/T1] INFO  Umbraco.Web.Cache.CacheRefresherEventHandler - Initializing Umbraco internal event handlers for cache refreshing
     2019-10-01 20:33:56,365 [P3696/D6/T1] INFO  Umbraco.Forms.Core.Cache.CacheEventHandler - Initializing Umbraco Forms Events to trigger Cache Refreshers
     2019-10-01 20:33:56,376 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:56,377 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:56,377 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolving [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper
     2019-10-01 20:33:56,377 [P3696/D6/T1] INFO  Umbraco.Core.PluginManager - Resolved [Umbraco.Core.Persistence.Mappers.MapperForAttribute]Umbraco.Core.Persistence.Mappers.BaseMapper (took 0ms)
     2019-10-01 20:33:57,734 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 5
    System.Data.SqlServerCe.SqlCeException (0x80004005): A column ID occurred more than once in the specification.
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,762 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 6
    System.Data.SqlServerCe.SqlCeException (0x80004005): Invalid column ID. [ IsUnique ]
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,788 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 7
    System.Data.SqlServerCe.SqlCeException (0x80004005): A column ID occurred more than once in the specification.
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,814 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 8
    System.Data.SqlServerCe.SqlCeException (0x80004005): Invalid column ID. [ FirstNamePropertyAlias ]
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,840 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 9
    System.Data.SqlServerCe.SqlCeException (0x80004005): A column ID occurred more than once in the specification.
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,867 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 10
    System.Data.SqlServerCe.SqlCeException (0x80004005): A column ID occurred more than once in the specification.
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,893 [P3696/D6/T1] ERROR TeaCommerce.Api.Persistence.Installation.PersistenceInstaller - Error executing script. Schema version: 11
    System.Data.SqlServerCe.SqlCeException (0x80004005): A column ID occurred more than once in the specification.
       at System.Data.SqlServerCe.SqlCeCommand.ProcessResults(Int32 hr)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommandText(IntPtr& pCursor, Boolean& isBaseTableCursor)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
       at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQuery()
       at TeaCommerce.Api.Persistence.Database.Execute(Sql Sql)
       at TeaCommerce.Api.Persistence.Installation.PersistenceInstaller.ExecuteScript(Database database, SqlScript sqlScript, Boolean updateDatabaseVersion)
     2019-10-01 20:33:57,964 [P3696/D6/T1] INFO  Umbraco.Web.Search.ExamineEvents - Initializing Examine and binding to business logic events
     2019-10-01 20:33:57,965 [P3696/D6/T1] INFO  Umbraco.Web.Search.ExamineEvents - Adding examine event handlers for index providers: 3
     2019-10-01 20:33:58,698 [P3696/D6/T1] INFO  Umbraco.Core.CoreBootManager - Umbraco application startup complete (took 3766ms)
     2019-10-01 20:33:58,801 [P3696/D6/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - New ApplicationUrl detected: http://localhost:52242/umbraco
     2019-10-01 20:33:58,802 [P3696/D6/T8] INFO  Umbraco.Core.Sync.ApplicationUrlHelper - ApplicationUrl: http://localhost:52242/umbraco (UmbracoModule request)
     2019-10-01 20:33:59,114 [P3696/D6/T8] INFO  umbraco.content - Load Xml from file...
     2019-10-01 20:33:59,127 [P3696/D6/T8] INFO  umbraco.content - Loaded Xml from file.
     2019-10-01 20:33:59,237 [P3696/D6/T8] INFO  Umbraco.Core.PluginManager - Resolving umbraco.interfaces.IDiscoverable
     2019-10-01 20:33:59,238 [P3696/D6/T8] INFO  Umbraco.Core.PluginManager - Resolved umbraco.interfaces.IDiscoverable (took 0ms)
     2019-10-01 20:33:59,238 [P3696/D6/T8] INFO  Umbraco.Core.PluginManager - Resolving Umbraco.Core.PropertyEditors.IParameterEditor
     2019-10-01 20:33:59,239 [P3696/D6/T8] INFO  Umbraco.Core.PluginManager - Resolved Umbraco.Core.PropertyEditors.IParameterEditor (took 0ms)
     2019-10-01 20:34:00,191 [P3696/D6/T8] ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
    System.Web.HttpCompileException (0x80004005): C:\Users\Mikes\AppData\Local\Temp\Temporary ASP.NET Files\vs\53d3e076\5534c5e\App_Web_frontpage.cshtml.65a2d1ee.rxlwvqiw.0.cs(45): error CS0246: The type or namespace name 'Slimsy' could not be found (are you missing a using directive or an assembly reference?)
       at System.Web.Compilation.AssemblyBuilder.Compile()
       at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
       at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
       at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
       at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath virtualPath)
       at System.Web.Compilation.BuildManager.GetCompiledType(String virtualPath)
       at System.Web.Mvc.BuildManagerWrapper.System.Web.Mvc.IBuildManager.GetCompiledType(String virtualPath)
       at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
       at Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer)
       at System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
       at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult)
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult)
       at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End()
       at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
       at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    
  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Oct 02, 2019 @ 08:48
    Jeavon Leopold
    1

    Hey, sounds like you are missing the namespace in the views/web.config, here's an example https://github.com/Jeavon/Slimsy/blob/develop/TestSite/Views/Web.config#L27

  • MB 273 posts 936 karma points
    Oct 02, 2019 @ 14:43
    MB
    0

    Hey Jeavon,

    Thank you for the extremly quick response!

    I took a look in the views/web.config and found that Slimsy is present:

        <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <configSections>
            <sectionGroup name="system.web.webPages.razor"
                type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="host"
                    type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                    requirePermission="false"/>
                <section name="pages"
                    type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                    requirePermission="false"/>
            </sectionGroup>
        </configSections>
        <system.web.webPages.razor>
            <pages pageBaseType="System.Web.Mvc.WebViewPage">
                <namespaces>
                    <add namespace="System.Web.Optimization"/>
                    <add namespace="System.Web.Mvc"/>
                    <add namespace="System.Web.Mvc.Ajax"/>
                    <add namespace="System.Web.Mvc.Html"/>
                    <add namespace="System.Web.Routing"/>
                    <add namespace="Umbraco.Web"/>
                    <add namespace="Umbraco.Core"/>
                    <add namespace="Umbraco.Core.Models"/> 
                    <add namespace="Umbraco.Web.Mvc"/>
                    <add namespace="umbraco"/>
                    <add namespace="Examine"/>
                    <add namespace="Umbraco.Web.PublishedContentModels"/>
                    <add namespace="Slimsy"/>
                </namespaces>
            </pages>
            <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </system.web.webPages.razor>
        <appSettings>
            <add key="webpages:Enabled" value="false"/>
        </appSettings>
        <system.web>
            <httpHandlers>
                <add path="*" verb="*" type="System.Web.HttpNotFoundHandler"/>
            </httpHandlers>
    
            <!--
            Enabling request validation in view pages would cause validation to occur
            after the input has already been processed by the controller. By default
            MVC performs request validation before a controller processes the input.
            To change this behavior apply the ValidateInputAttribute to a
            controller or action.
        -->
            <pages validateRequest="false"
                pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
                userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <controls>
                    <add assembly="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.Mvc" tagPrefix="mvc"/>
                </controls>
            </pages>
        </system.web>
        <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
    
            <handlers>
                <remove name="BlockViewHandler"/>
                <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler"/>
            </handlers>
        </system.webServer>
    </configuration>
    

    I logged into the backend to rebuild models but that didn't help either.

    I have to admit I'm kind of lost. Everything my experience and imagination allows me to do, I've tried.

    // Mike

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Oct 02, 2019 @ 14:58
    Jeavon Leopold
    1

    Strange, could you please post the code you have in this view?

  • MB 273 posts 936 karma points
    Oct 02, 2019 @ 15:11
    MB
    0

    If I remove everything in frontpage.cshml expect for:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @using ContentModels = Umbraco.Web.PublishedContentModels;
    @using System;
    @using System.Collections.Generic;
    @using System.Text;
    
    @{
        Layout = "Master.cshtml";
    }
    

    I still get the error.

    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 'Slimsy' could not be found (are you missing a using directive or an assembly reference?)
    
    Source Error:
    
    
    Line 43:     using Examine;
    Line 44:     using Umbraco.Web.PublishedContentModels;
    Line 45:     using Slimsy;
    Line 46:     
    Line 47:     #line 2 "C:\WEB\Roldskov\Views\Frontpage.cshtml"
    
    Source File: C:\Users\Mikes\AppData\Local\Temp\Temporary ASP.NET Files\vs\53d3e076\5534c5e\App_Web_frontpage.cshtml.65a2d1ee.bhykxbl_.0.cs    Line: 45
    

    Just taking a chance here: Could it perhaps be caching in the Temp files from the above source file?

    // Mike

  • MB 273 posts 936 karma points
    Oct 06, 2019 @ 08:20
    MB
    0

    I found a solution and I can't really explain why or how it worked.

    I ended up uninstalling Slimsy from the Umbraco backend and remove the namespace under Views/web.config.

    Upon removing the plugin I ended up with a bunch of errors including web.optimization not working so I reinstalled that.

    I also downloaded Slimsy 2 from the official package site (https://our.umbraco.com/packages/website-utilities/slimsy/) - I choosed Version 2 in the bottom.

    When Slimsy was reinstalled it started working!

    I think something went wrong when I reinstalled Windows and Visual studio because I simply copy-pasted the entire site to the new harddrive and started Visual Studio up.

    Anyway it works like a charm now! Thanks for still providing suppot for Slimsy, it's a great plugin!

    // Mike

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies