Quantcast
Channel: ActiveTopics
Viewing all 72689 articles
Browse latest View live

Failed to retrieve data for a node's menu XXXX

$
0
0

Hi,

If I log into our CMS as an Editor and try to add a new page to a tree node i get the following error:

Failed to retrieve data for a node's menu 1052

/umbraco/backoffice/UmbracoTrees/ContentTree/GetMenu?id=1052&application=content&tree=&isDialog=false

Returns a 500 Error.

If I log in as the Administrator it works perfectly fine.

Do you know what this issue is?

Jon


Image Crops not working (7.6.1)

$
0
0

Hey.

I have my images stored on azure CDN and everything is set up and working perfectly fine across the board.

Im using:

UmbracoFileSystemProviders.Azure ImageProcessor.Web.Plugins.AzureBlobCache

I'm simply trying to get a cropped image on the page. I've spent hours (days) combing through all the same issues that people have encountered and nothing seems to work for me.

The most common thing people say is to use absolute URL's rather than local ones.

I still get the full image, rather than the crop.

my code:

@if (CurrentPage.HasValue("articleImages"))
    {
        <div class="slider" itemprop="associatedMedia">
            @{
                foreach (var image in CurrentPage.articleImages)
                {
                <div class="slide" itemscope itemtype="http://schema.org/ImageObject">
                    <img itemprop="contentURL" data-lazy="@Umbraco.Media(image.ToString()).GetCropUrl("banner")" />
                </div>
                }
            }
        </div>
    }

Does anyone have any insight into what could possibly be wrong? The connection to the CDN is working with requesting images normally so i know that it works. But it also doesn't matter whether i use local or absolute url's, it still doesn't show the crop.

Thanks.

Upgrading to umbraco 7.6.1 shows log4net error

$
0
0

Hi umbracians,

I've recently tried to upgrade my 7.5.10 site to 7.6.1

When launching the site after copying new files and merging configs, i now get log4net errors.

The file or the assembly 'log4net, Version = 1.2.11.0, Culture = neutral, PublicKeyToken = null' or one of its dependencies could not be loaded

i says in the docs there are breaking changes to log4net, so no surprise there. But what are the correct steps to make to get it to work?

What I did:

  1. Copied the new log4net.dll to the site
  2. Updated the web.config with the new log4net assembly binding

Is this the correct way of doing the upgrade?

best regards

Deploying to Azure - Connection String cannot be null or empty

$
0
0

Hi - first time deploying a site and trying to get it uploaded to Azure web app.

I created a web app in Azure to upload the project to and it builds/runs fine on my local machine (ctrl-f5), however, when I hit publish and select Azure > account > select the web app I create on Azure and then hit publish I get the error: "The 'local-Web.config Connection String' argument cannot be null or empty.

Browsing for a solution I can't seem to find anything to help so hoping someone can help.

Here's the current connection string from web.config - sitting in its default spot below the closing of appSettings and I've posted the whole web.config below it

<connectionStrings>
    <remove name="umbracoDbDSN" />
    <add name="local" connectionString="" providerName="" />
    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
  </connectionStrings>

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <section name="urlrewritingnet" restartOnExternalChanges="true" requirePermission="false" type="UrlRewritingNet.Configuration.UrlRewriteSection, UrlRewritingNet.UrlRewriter" />
    <section name="microsoft.scripting" type="Microsoft.Scripting.Hosting.Configuration.Section, Microsoft.Scripting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
    <section name="clientDependency" type="ClientDependency.Core.Config.ClientDependencySection, ClientDependency.Core" requirePermission="false" />
    <section name="Examine" type="Examine.Config.ExamineSettings, Examine" requirePermission="false" />
    <section name="ExamineLuceneIndexSets" type="Examine.LuceneEngine.Config.IndexSets, Examine" requirePermission="false" />
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false" />
    <sectionGroup name="umbracoConfiguration">
      <section name="settings" type="Umbraco.Core.Configuration.UmbracoSettings.UmbracoSettingsSection, Umbraco.Core" requirePermission="false" />
      <section name="BaseRestExtensions" type="Umbraco.Core.Configuration.BaseRest.BaseRestSection, Umbraco.Core" requirePermission="false" />
      <section name="FileSystemProviders" type="Umbraco.Core.Configuration.FileSystemProvidersSection, Umbraco.Core" requirePermission="false" />
      <section name="dashBoard" type="Umbraco.Core.Configuration.Dashboard.DashboardSection, Umbraco.Core" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <umbracoConfiguration>
    <settings configSource="config\umbracoSettings.config" />
    <BaseRestExtensions configSource="config\BaseRestExtensions.config" />
    <FileSystemProviders configSource="config\FileSystemProviders.config" />
    <dashBoard configSource="config\Dashboard.config" />
  </umbracoConfiguration>
  <urlrewritingnet configSource="config\UrlRewriting.config" />
  <microsoft.scripting configSource="config\scripting.config" />
  <clientDependency configSource="config\ClientDependency.config" />
  <Examine configSource="config\ExamineSettings.config" />
  <ExamineLuceneIndexSets configSource="config\ExamineIndex.config" />
  <log4net configSource="config\log4net.config" />
  <appSettings>
    <!--
      Umbraco web.config configuration documentation can be found here:
      http://our.umbraco.org/documentation/using-umbraco/config-files/#webconfig
      -->
    <add key="umbracoConfigurationStatus" value="7.4.3" />
    <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
    <add key="umbracoReservedPaths" value="~/umbraco,~/install/" />
    <add key="umbracoPath" value="~/umbraco" />
    <add key="umbracoHideTopLevelNodeFromPath" value="true" />
    <add key="umbracoUseDirectoryUrls" value="true" />
    <add key="umbracoTimeOutInMinutes" value="20" />
    <add key="umbracoDefaultUILanguage" value="en" />
    <add key="umbracoUseSSL" value="false" />
    <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
    <add key="webpages:Enabled" value="false" />
    <add key="enableSimpleMembership" value="false" />
    <add key="autoFormsAuthentication" value="false" />
    <add key="log4net.Config" value="config\log4net.config" />
    <add key="owin:appStartup" value="UmbracoDefaultOwinStartup" />
    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="PureLive" />
  </appSettings>
  <connectionStrings>
    <remove name="umbracoDbDSN" />
    <add name="local" connectionString="" providerName="" />
    <!-- Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge. -->
    <add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
  </connectionStrings>
  <system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SqlServerCe.4.0" />
      <remove invariant="MySql.Data.MySqlClient" />
      <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data" />
            <add invariant="System.Data.SqlServerCe.4.0" name="Microsoft® SQL Server® Compact 4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
    </DbProviderFactories>
  </system.data>
  <system.net>
    <mailSettings>
      <smtp>
        <network host="127.0.0.1" userName="username" password="password" />
      </smtp>
    </mailSettings>
  </system.net>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.6.2" />
      </system.Web>
  -->
  <system.web>
    <customErrors mode="RemoteOnly" />
    <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
    <httpRuntime requestValidationMode="2.0" enableVersionHeader="false" targetFramework="4.5" maxRequestLength="51200" fcnMode="Single" />
    <!--
      If you are deploying to a cloud environment that has multiple web server instances,
      you should change session state mode from "InProc" to "Custom". In addition,
      change the connection string named "DefaultConnection" to connect to an instance
      of SQL Server (including SQL Azure and SQL  Compact) instead of to SQL Server Express.
      -->
    <sessionState mode="InProc" customProvider="DefaultSessionProvider">
      <providers>
        <add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="DefaultConnection" />
      </providers>
    </sessionState>
    <pages enableEventValidation="false" controlRenderingCompatibilityVersion="4.0">
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add tagPrefix="umbraco" namespace="umbraco.presentation.templateControls" assembly="umbraco" />
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </controls>
    </pages>
    <httpModules>
      <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
      <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
      <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
    <add name="CMSImportSchedulerModule" type="CMSImport.HTTPModules.CMSImportSchedulerModule, CMSImport" /></httpModules>
    <httpHandlers>
      <remove verb="*" path="*.asmx" />
      <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add verb="*" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
      <add verb="*" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
      <add verb="*" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core " />
    </httpHandlers>
    <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.6.1">
      <assemblies>
        <remove assembly="System.Web.Http" />
        <remove assembly="System.Net.Http" />
        <remove assembly="Umbraco.ModelsBuilder" />
        <remove assembly="System.Collections" />
        <remove assembly="System.Collections.Concurrent" />
        <remove assembly="System.ComponentModel" />
        <remove assembly="System.ComponentModel.Annotations" />
        <remove assembly="System.ComponentModel.EventBasedAsync" />
        <remove assembly="System.Diagnostics.Contracts" />
        <remove assembly="System.Diagnostics.Debug" />
        <remove assembly="System.Diagnostics.Tools" />
        <remove assembly="System.Diagnostics.Tracing" />
        <remove assembly="System.Dynamic.Runtime" />
        <remove assembly="System.Globalization" />
        <remove assembly="System.IO" />
        <remove assembly="System.Linq" />
        <remove assembly="System.Linq.Expressions" />
        <remove assembly="System.Linq.Parallel" />
        <remove assembly="System.Linq.Queryable" />
        <remove assembly="System.Net.NetworkInformation" />
        <remove assembly="System.Net.Primitives" />
        <remove assembly="System.Net.Requests" />
        <remove assembly="System.ObjectModel" />
        <remove assembly="System.Reflection" />
        <remove assembly="System.Reflection.Emit" />
        <remove assembly="System.Reflection.Emit.ILGeneration" />
        <remove assembly="System.Reflection.Emit.Lightweight" />
        <remove assembly="System.Reflection.Extensions" />
        <remove assembly="System.Reflection.Primitives" />
        <remove assembly="System.Resources.ResourceManager" />
        <remove assembly="System.Runtime" />
        <remove assembly="System.Runtime.Extensions" />
        <remove assembly="System.Runtime.InteropServices" />
        <remove assembly="System.Runtime.InteropServices.WindowsRuntime" />
        <remove assembly="System.Runtime.Numerics" />
        <remove assembly="System.Runtime.Serialization.Json" />
        <remove assembly="System.Runtime.Serialization.Primitives" />
        <remove assembly="System.Runtime.Serialization.Xml" />
        <remove assembly="System.Security.Principal" />
        <remove assembly="System.ServiceModel.Duplex" />
        <remove assembly="System.ServiceModel.Http" />
        <remove assembly="System.ServiceModel.NetTcp" />
        <remove assembly="System.ServiceModel.Primitives" />
        <remove assembly="System.ServiceModel.Security" />
        <remove assembly="System.Text.Encoding" />
        <remove assembly="System.Text.Encoding.Extensions" />
        <remove assembly="System.Text.RegularExpressions" />
        <remove assembly="System.Threading" />
        <remove assembly="System.Threading.Tasks" />
        <remove assembly="System.Threading.Tasks.Parallel" />
        <remove assembly="System.Xml.ReaderWriter" />
        <remove assembly="System.Xml.XDocument" />
        <remove assembly="System.Xml.XmlSerializer" />
        <add assembly="System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        <add assembly="Umbraco.ModelsBuilder" />
        <add assembly="System.Collections, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Collections.Concurrent, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ComponentModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ComponentModel.Annotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ComponentModel.EventBasedAsync, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Diagnostics.Contracts, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Diagnostics.Debug, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Diagnostics.Tools, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Diagnostics.Tracing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Dynamic.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Globalization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.IO, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Linq.Expressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Linq.Parallel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Linq.Queryable, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Net.NetworkInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Net.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Net.Requests, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ObjectModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection.Emit, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection.Emit.ILGeneration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection.Emit.Lightweight, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Reflection.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Resources.ResourceManager, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.InteropServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.InteropServices.WindowsRuntime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.Serialization.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.Serialization.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Runtime.Serialization.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Security.Principal, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ServiceModel.Duplex, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ServiceModel.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ServiceModel.NetTcp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ServiceModel.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.ServiceModel.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Text.Encoding, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Text.Encoding.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Text.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Threading, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Threading.Tasks, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Threading.Tasks.Parallel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Xml.ReaderWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Xml.XDocument, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        <add assembly="System.Xml.XmlSerializer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </assemblies>
      <buildProviders>
        <add extension=".cshtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
        <add extension=".vbhtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
        <add extension=".razor" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
      </buildProviders>
    </compilation>
    <authentication mode="Forms">
      <forms name="yourAuthCookie" loginUrl="login.aspx" protection="All" path="/" />
    </authentication>
    <authorization>
      <allow users="?" />
    </authorization>
    <!-- Membership Provider -->
    <membership defaultProvider="UmbracoMembershipProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add name="UmbracoMembershipProvider" type="Umbraco.Web.Security.Providers.MembersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" defaultMemberTypeAlias="Member" passwordFormat="Hashed" />
        <add name="UsersMembershipProvider" type="Umbraco.Web.Security.Providers.UsersMembershipProvider, Umbraco" minRequiredNonalphanumericCharacters="0" minRequiredPasswordLength="8" useLegacyEncoding="true" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" passwordFormat="Hashed" />
      </providers>
    </membership>
    <!-- Role Provider -->
    <roleManager enabled="true" defaultProvider="UmbracoRoleProvider">
      <providers>
        <clear />
        <add name="UmbracoRoleProvider" type="Umbraco.Web.Security.Providers.MembersRoleProvider" />
      </providers>
    </roleManager>
    <siteMap>
      <providers>
        <remove name="MySqlSiteMapProvider" />
      </providers>
    </siteMap>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="WebDAVModule" />
      <remove name="UrlRewriteModule" />
      <add name="UrlRewriteModule" type="UrlRewritingNet.Web.UrlRewriteModule, UrlRewritingNet.UrlRewriter" />
      <remove name="UmbracoModule" />
      <add name="UmbracoModule" type="Umbraco.Web.UmbracoModule,umbraco" />
      <remove name="ScriptModule" />
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <remove name="ClientDependencyModule" />
      <add name="ClientDependencyModule" type="ClientDependency.Core.Module.ClientDependencyModule, ClientDependency.Core" />
      <!-- Needed for login/membership to work on homepage (as per http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests) -->
      <remove name="FormsAuthentication" />
      <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
      <add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
    <remove name="CMSImportSchedulerModule" /><add name="CMSImportSchedulerModule" type="CMSImport.HTTPModules.CMSImportSchedulerModule, CMSImport" /></modules>
    <handlers accessPolicy="Read, Write, Script, Execute">
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="ScriptHandlerFactory" />
      <remove name="ScriptHandlerFactoryAppServices" />
      <remove name="ScriptResource" />
      <remove name="Channels" />
      <remove name="Channels_Word" />
      <remove name="ClientDependency" />
      <remove name="MiniProfiler" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add verb="*" name="Channels" preCondition="integratedMode" path="umbraco/channels.aspx" type="umbraco.presentation.channels.api, umbraco" />
      <add verb="*" name="Channels_Word" preCondition="integratedMode" path="umbraco/channels/word.aspx" type="umbraco.presentation.channels.wordApi, umbraco" />
      <add verb="*" name="ClientDependency" preCondition="integratedMode" path="DependencyHandler.axd" type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler, ClientDependency.Core" />
      <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
      <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
      <remove name="OPTIONSVerbHandler" />
      <remove name="TRACEVerbHandler" />
      <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
    </handlers>
    <!-- Adobe AIR mime type -->
    <staticContent>
      <remove fileExtension=".air" />
      <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package+zip" />
      <remove fileExtension=".svg" />
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
      <remove fileExtension=".woff" />
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".less" />
      <mimeMap fileExtension=".less" mimeType="text/css" />
      <remove fileExtension=".mp4" />
      <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
      <remove fileExtension=".json" />
      <mimeMap fileExtension=".json" mimeType="application/json" />
    </staticContent>
    <!-- Ensure the powered by header is not returned -->
    <httpProtocol>
      <customHeaders>
        <remove name="X-Powered-By" />
      </customHeaders>
    </httpProtocol>
    <!-- Increase the default upload file size limit -->
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="52428800" />
      </requestFiltering>
    </security>
  </system.webServer>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <!-- Old asp.net ajax assembly bindings -->
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <!-- Ensure correct version of MVC -->
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
      <!-- Ensure correct version of HtmlAgilityPack -->
      <dependentAssembly>
        <assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.4.9.0" newVersion="1.4.9.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Http" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="System.Web.WebPages.Deployment" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <location path="umbraco">
    <system.webServer>
      <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
    </system.webServer>
  </location>
  <location path="App_Plugins">
    <system.webServer>
      <urlCompression doStaticCompression="false" doDynamicCompression="false" dynamicCompressionBeforeCache="false" />
    </system.webServer>
  </location>
</configuration>

Weekly Selection Restriction

$
0
0

Hi, I am trying to test the uBooking and so far I have managed to get the macro working (option 2 on documentation). The reason for the macro option 2 is that I have installed a uSkinned theme which uses JQuery version 1.x not 2.x and I wanted to avoid a conflict issue in the Views.

The problem I have is that the macro version seems to work fine for testing Monday to Friday bookings, but Saturday and Sunday are blocked. I can't find any options to enable Saturday and Sunday bookings.

Is this to do with having to purchase a license?

uSync fails - Cannot find underling template file errors

$
0
0

Hi all

Using uSync with Umbraco 7.5.9

We have managed a few successful deployments to our staging server and uSync has been fantastic. However, there are many more changes in this latest deploy and uSync has generated some errors and the staging site is now broken.

Our setup is: Dev environment is a shared db and so uSync doesn't do anything except exportonsave

Staging environment, uSync is set to import at startup - no Umbraco changes are ever made in the backoffice on staging.

There have been some deletions / renaming of doctypes and templates in this deploy - could that be an issue? I am including the usyncactions.config below as well. It is likely the case that some of the items in this file were created and deleted before ever reaching staging so I wonder if that would cause issues?

Anyway the deploy fails after some "Cannot find template" errors although when I look on server, all templates I would expect to be there are there.

I have included the error log we get below and after that the usyncactions.config that has been generated whilst working in our dev environment,

By the way we are deploying through Visual Studio Team Services and as I mentioned this has been successful up until now.

Is anybody able to give us a steer on this - perplexed at the moment - still working on it...?

Thanks

J

2017-05-21 20:47:06,958 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:06,958 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:06,958 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:06,958 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:06,974 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:06,974 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:06,974 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:06,974 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:06,990 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:06,990 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:07,318 [1] WARN Jumoo.uSync.BackOffice.uSyncApplicationEventHandler: Errors during Sync: Value cannot be null.
Parameter name: context Autofac
2017-05-21 20:47:07,318 [1] WARN Jumoo.uSync.BackOffice.uSyncApplicationEventHandler: Errors during Sync:
    at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
2017-05-21 20:47:07,318 [1] ERROR Umbraco.Core.CoreBootManager: An error occurred running OnApplicationStarted for handler Jumoo.uSync.BackOffice.uSyncApplicationEventHandler
System.ApplicationException: uSync encounted an error during setup (which is probibily from an import)
     You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file) ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   --- End of inner exception stack trace ---
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
2017-05-21 20:47:07,318 [1] ERROR Umbraco.Core.UmbracoApplicationBase: An unhandled exception occurred
System.ApplicationException: uSync encounted an error during setup (which is probibily from an import)
     You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file) ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   --- End of inner exception stack trace ---
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
   at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
   at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
2017-05-21 20:47:28,441 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:28,441 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:28,441 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:28,457 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:28,457 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:28,457 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:28,457 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:28,472 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:28,472 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Cannot find underling template file, so we cannot create the template
2017-05-21 20:47:28,472 [1] WARN Jumoo.uSync.Core.Serializers.TemplateSerializer: Can't get a template path?
2017-05-21 20:47:28,894 [1] WARN Jumoo.uSync.BackOffice.uSyncApplicationEventHandler: Errors during Sync: Value cannot be null.
Parameter name: context Autofac
2017-05-21 20:47:28,894 [1] WARN Jumoo.uSync.BackOffice.uSyncApplicationEventHandler: Errors during Sync:
    at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
2017-05-21 20:47:28,894 [1] ERROR Umbraco.Core.CoreBootManager: An error occurred running OnApplicationStarted for handler Jumoo.uSync.BackOffice.uSyncApplicationEventHandler
System.ApplicationException: uSync encounted an error during setup (which is probibily from an import)
     You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file) ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   --- End of inner exception stack trace ---
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
2017-05-21 20:47:28,894 [1] ERROR Umbraco.Core.UmbracoApplicationBase: An unhandled exception occurred
System.ApplicationException: uSync encounted an error during setup (which is probibily from an import)
     You can set DontThrowErrors = True in the uSyncBackOffice.Config file and umbraco will not throw the YSOD (usync will just log errors in the log file) ---> System.ArgumentNullException: Value cannot be null.
Parameter name: context
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context, IEnumerable`1 parameters)
   at JWT.WT.NC.Web.EventHandlers.ContentEventBroadcaster.ContentService_Deleting(IContentService sender, DeleteEventArgs`1 e)
   at Umbraco.Core.Events.EventExtensions.IsRaisedEventCancelled[TSender,TArgs](TypedEventHandler`2 eventHandler, TArgs args, TSender sender)
   at Umbraco.Core.Services.ContentService.DeleteContentOfType(Int32 contentTypeId, Int32 userId)
   at Umbraco.Core.Services.ContentTypeService.Delete(IContentType contentType, Int32 userId)
   at Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.DeleteItem(Guid key, String keyString)
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ProcessActions()
   at Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler`1.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable`1 syncHandlers, String folder, Boolean checkConfig, Boolean force, String groupName)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName, String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder, Boolean force)
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   --- End of inner exception stack trace ---
   at Jumoo.uSync.BackOffice.uSyncApplicationEventHandler.Setup()
   at Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
   at Umbraco.Core.CoreBootManager.<Complete>b__a(IApplicationEventHandler x)
   at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable`1 items, Action`1 action)
   at Umbraco.Core.CoreBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Web.WebBootManager.Complete(Action`1 afterComplete)
   at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)

USYNCACTIONS.CONFIG

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfSyncAction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SyncAction>
    <TypeName>Umbraco.Core.Models.ITemplate</TypeName>
    <Name>Settings</Name>
    <Key>00000000-0000-0000-0000-000000000000</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>settings</Name>
    <Key>a3602104-c622-44e7-8f0b-34613baa8cde</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>yearFolder</Name>
    <Key>b6e2c80c-512e-422f-b545-ec7c1b73a716</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>notFoundError1</Name>
    <Key>73aec8f5-f6dc-4442-93bc-438aae7d9ffc</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.ITemplate</TypeName>
    <Name>404NotFoundError</Name>
    <Key>00000000-0000-0000-0000-000000000000</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>year</Name>
    <Key>ce76db76-266e-4bd6-bd31-9cd1043e872b</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.ITemplate</TypeName>
    <Name>AddARecord</Name>
    <Key>00000000-0000-0000-0000-000000000000</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.ITemplate</TypeName>
    <Name>Home</Name>
    <Key>00000000-0000-0000-0000-000000000000</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>textPage</Name>
    <Key>c8da1880-ca9f-46b9-ace7-48b50a59e983</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.ITemplate</TypeName>
    <Name>TextPage</Name>
    <Key>00000000-0000-0000-0000-000000000000</Key>
    <Action>Delete</Action>
  </SyncAction>
  <SyncAction>
    <TypeName>Umbraco.Core.Models.IContentType</TypeName>
    <Name>plainTextPage</Name>
    <Key>3bd50069-3018-41fb-a9da-9e97b2dede7a</Key>
    <Action>Delete</Action>
  </SyncAction>
</ArrayOfSyncAction>

How to access to Rollback function in Listview mode ?

$
0
0

Hello everyone.

I'm using a listview layout for a specific document type, and tried to roll back a node in the listview to a previous version. But there is no rollback button, ony Publish - Unpublish - Copy - Move - Delete.

In the contetual menu, the Rollback button opens the roll back functionnality of the parent node, not the selected node.

Umbraco forms nested forms

$
0
0

Hello,

I need to design umbraco forms which contains a multiple address. When user click on add address button then next forms will append with existing forms. I am share a document image on that design issue.

Please help regarding this issue. If any way is present to do that please share it. enter image description here


Route Hijacking + DTGE Preview mode issues

$
0
0

Hi,

Thank you for this great package! We are experimenting a bit with it at Perplex and I'm running into an issue with the Preview mode (i.e. the rendering in Umbraco) in combination with custom view models.

We almost always create custom controllers for every Doctype so we can use a custom model for the view which contains any logic, rather than having all this logic in the view itself. In order to do that, we hijack the Umbraco routes to inject our view model. For example, our Home controller will generally look something like this:

public class HomeController : SurfaceController, IRenderController
{
    public ActionResult Index()
    {
        return View("Home", new HomeViewModel());
    }
}

This raises an exception in App_Plugins\DoctypeGridEditor\Render\DocTypeGridEditorPreviewer.cshtml:

Cannot bind source type DTGE_Test.Models.Views.HomeViewModel to model type Umbraco.Core.Models.IPublishedContent.

I understand why this is happening, considering the Preview mode is basically "hijacking" the Index method of our Home controller (when the Grid property is on that doctype) to render its preview, and only changes the .ViewName property to the DTGEPreviewer.cshtml but not the Model (which is read-only). In the DocTypeGridEditorPreviewer the following line is at the top:

@inherits Umbraco.Web.Mvc.UmbracoViewPage<IPublishedContent>

In our case, we pass in a custom model which does not directly bind to IPublishedContent hence it fails. Since you do not actually use the Model in that view, a simple fix would be to change it to something like this:

@inherits Umbraco.Web.Mvc.UmbracoViewPage<object>

In that case it will work with default Umbraco (where the model is a RenderModel) and with custom viewmodels. I don't think this breaks anything.

Please let me know what you think about that change and if there is another way to do this. It's totally possible I was doing it wrong to begin with.

I am also using a custom DocTypeGridEditorSurfaceController for the grid editor itself, but this does not seem to influence the outcome. I also get the error without this (i.e., when DTGE simply renders views/partials/[doctypeAlias].cshtml)

Kind regards,

Daniël

Special characters in Umbraco 7 url

Multi Level URL in Umbraco for Inner Pages

$
0
0

I am using UmbracoCMS for one of the my project. I want to create 3 pages as following hierarchy.

  • About US
    • Key People
      • Matt Krikman

AboutUS is parent node for KeyPeople and Profile Page is child of KeyPeople. enter image description here

So I am expecting following url for each page
About US -> www.mydomain.com/aboutus
KeyPeople -> www.mydomain.com/aboutus/KeyPeople
PeopleProfile -> www.mydomain.com/aboutus/KeyPeople/RyanPinkard

But When I check for KeyPeople and RyanPinkard, I am getting following URL in backoffice:enter image description here

Add multiple address on button click in umbraco forms

$
0
0

Hello,

I am design a umbraco forms for registration i needed to apply a button for address filed. User can add multiple address on click on add address property button.

Please help me regarding this issue, How i am create this type of forms in umbraco forms.

I am share my requirement image with this. enter image description here

Workflow to trigger Next page on Umbraco Forms

$
0
0

hey guys, i'm looking for a way of allowing a user to save state on umbraco form (version 4.4.0). obviously there a number of ways to achieve from a backend perspective but i'm struggling with hooking into the next click using a workflow.

i don't want to use to the solution in this post: https://our.umbraco.org/forum/umbraco-forms/81617-editupdate-umbraco-data because it requires the form to have been submitted. what if the form was 10 pages long and the user wanted to save state.. that's what i'm trying to figure out without having to replace the entire rendering of the macro.

i saw this article: http://www.skrift.io/articles/archive/extending-umbraco-forms/ and his workflow is sort of what i'm trying to achieve where he talks about storing the form progress in a CRM but it only will work on submit.

any ideas?

cheers,

Does Anyone Know Where I can Find Version 4.0.3

$
0
0

I need to revamp an old site that was created in version 4.0.3 (I know it's old). Does anyone know where I can download this version. I have the original site but it doesn't have the installer folder. I have version 4.5.0. Can I just copy the Installer folder from 4.5.0 to 4.0.3? Any help you can provide would be great.

Thanks ... Eric

How to query the cmsContentXml table in SQL?

$
0
0

I have a requirement to generate a list of members along with some details and the created date.

I think I want to generate an SQL query that will do this.

The data I need is all in the cmsContentXml table's [xml] field stored as ntext which makes it difficult to query.

Normally the standard query I'd run would be:

SELECT nodeName, createDate FROM cmsContentXml WHERE nodeType='1085'

But how can I do this with the data in the ntext field?

Kind regards,

Matt


Custom Payment Provider Dialog

$
0
0

Hello everyone,

I have created a payment provider for Authorize.NET. I have found out that we need to authorize the payment at order creation time and charge upon fulfillment. I am trying to find a way to write a dialog so I can charge the payment from the invoice, new payment screen. I noted that braintree has one, but it references a dialog controller I cannot find. Can someone assist me?

Thank you!

Missing columns

$
0
0

Hi, I just upgraded Umbraco from 6.1.6 to 7.5.14, and also upgrading TC from 2.x to the latest 3.x. When going into the TC section in the backoffice and clicking on e.g. Stores, a request is sent to:

/umbraco/backoffice/UmbracoTrees/LegacyTree/GetNodes?rnd=2407741fec0440a2a9f79955dbe7df0d&id=-1&treeType=tea-commerce-store-tree&nodeKey=Stores&contextMenu=true&isDialog=false

Which in turn responds with a 500 Internal Server Error saying the following:

{"Message":"An error has occurred.","ExceptionMessage":"Invalid column name 'PaymentInconsistencyEmailTemplateId'.\r\nInvalid column name 'GiftCardPrefix'.\r\nInvalid column name 'GiftCardSuffix'.\r\nInvalid column name 'GiftCardLength'.\r\nInvalid column name 'GiftCardDaysValid'.","ExceptionType":"System.Data.SqlClient.SqlException","StackTrace":"   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)\r\n   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)\r\n   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)\r\n   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()\r\n   at System.Data.SqlClient.SqlDataReader.get_MetaData()\r\n   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption)\r\n   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)\r\n   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)\r\n   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)\r\n   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)\r\n   at TeaCommerce.Api.Persistence.Database.<Query>d__78`1.MoveNext()\r\n   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)\r\n   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)\r\n   at TeaCommerce.Api.Persistence.Repositories.StoreRepository.GetInternal(String sql, Object[] args)\r\n   at TeaCommerce.Api.Services.StoreService.GetCachedList()\r\n   at TeaCommerce.Api.Services.StoreService.GetAll()\r\n   at TeaCommerce.Umbraco.Application.Trees.StoreTree.Render(XmlTree& tree)\r\n   at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetXmlTree(ApplicationTree appTree, String id, FormDataCollection formCollection)\r\n   at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromLegacyTree(ApplicationTree appTree, String id, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)\r\n   at Umbraco.Web.Trees.LegacyTreeController.GetTreeNodes(String id, FormDataCollection queryStrings)\r\n   at Umbraco.Web.Trees.TreeControllerBase.GetNodes(String id, FormDataCollection queryStrings)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Filters.AuthorizationFilterAttribute.<ExecuteAuthorizationFilterAsyncCore>d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext()"}

And surely, the columns isn't in the TC-tables in the database (using MS SQL 2014). I've tried reinstalling the package, both from .zip and from the repository in back office, but the problem remains.

Info from the TeaCommerce_Version-table: DatabaseSchemaVersion: 11 SpecialActionsVersion: 3

What am i missing? Thanks!

LeBlender and Partial view

$
0
0

Hi

I'm trying to create a partial view for a grid editor that has a image(link) , title, text box and Link on it , I am having issues creating the view for the URL picker , not sure how I can reference the data type in the partial view . The image (media picker ) works . Please can you advise

Thanks Rozelle

Courier error on transfering to new instance

$
0
0

Any one know what this means? I was having issues with original site and an using clear passwords and not hashed. Could that have anything to do with it? I set up a user on site(B) with the same credentials.

 

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> No User exists with ID -1 at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Umbraco.Courier.RepositoryProviders.WebServiceProvider.RepositoryWebservice.CommitRevisionitem(String revision, RevisionItem revisionItem, String username, String password) at Umbraco.Courier.RepositoryProviders.CourierWebserviceRepositoryProvider.CommitRevision(Revision revision) at Umbraco.Courier.Core.Transfer.RevisionTransfer.Transfer() at Umbraco.Courier.Core.Tasks.TransferTask.Run() at Umbraco.Courier.Core.TaskManager.manageTask(IRevisionTask value) 6/28/2013 4:39:59 PM

"The controller for path '/' was not found or does not implement IController" error after upgrade from v6.0.5 to v6.1.3

$
0
0

After following the standard upgrade path found on Upgrades in general and stepping through the all the configs in the config folder as well as the base web.config AND the views/web.config via WinMerge; I restarted the site profile, opened the site in Chrome, and was walked through the upgrade steps as usual!

I'm thinking then "YAY this site can go live once I push these changes to the production server and go to bed!!!"

Once the upgrade completed I went into the back office and republished the entire site just to be on the safe side. I sat back, relaxed and opened the site front end ... to receive a YSOD!

Server Error in '/' Application.

The controller for path '/' was not found or does not implement IController.

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.Web.HttpException: The controller for path '/' was not found or does not implement IController.

Source Error:


Line 41:        }
Line 42:                <header>
Line 43:                    @Html.Action("PrepareCallback", "CallbackFormSurface")
Line 44:                    <p id="helplineCallbackResponse"></p>
Line 45:                </header>

Source File: e:\sites\WIP\www.lawcare.org.uk\website\Views\Partials\Hotlines.cshtml    Line: 43

Stack Trace:


[HttpException (0x80004005): The controller for path '/' was not found or does not implement IController.]
   System.Web.Mvc.DefaultControllerFactory.GetControllerInstance(RequestContext requestContext, Type controllerType) +683953
   Umbraco.Web.Mvc.RenderControllerFactory.CreateController(RequestContext requestContext, String controllerName) +162
   System.Web.Mvc.MvcHandler.ProcessRequestInit(HttpContextBase httpContext, IController& controller, IControllerFactory& factory) +305
   System.Web.Mvc.MvcHandler.BeginProcessRequest(HttpContextBase httpContext, AsyncCallback callback, Object state) +87
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +41

[HttpException (0x80004005): Execution of the child request failed. Please examine the InnerException for more information.]
   System.Web.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +785864
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3977
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +275
   System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +94
   System.Web.Mvc.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) +700
   System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) +123
   ASP._Page_Views_Partials_Hotlines_cshtml.Execute() in e:\sites\WIP\www.lawcare.org.uk\website\Views\Partials\Hotlines.cshtml:43
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
   StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) +295
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +158
   Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, Nullable`1 timeout, Func`1 getCacheItem, Object syncLock) +218
   Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, CacheDependency cacheDependency, Nullable`1 timeout, Func`1 getCacheItem) +176
   Umbraco.Core.Cache.HttpRuntimeCacheProvider.GetCacheItem(String cacheKey, CacheItemPriority priority, CacheItemRemovedCallback refreshAction, Nullable`1 timeout, Func`1 getCacheItem) +154
   Umbraco.Web.CacheHelperExtensions.CachedPartialView(CacheHelper cacheHelper, HtmlHelper htmlHelper, String partialViewName, Object model, Int32 cachedSeconds, String cacheKey, ViewDataDictionary viewData) +438
   Umbraco.Web.HtmlHelperRenderExtensions.CachedPartial(HtmlHelper htmlHelper, String partialViewName, Object model, Int32 cachedSeconds, Boolean cacheByPage, Boolean cacheByMember, ViewDataDictionary viewData) +428
   ASP._Page_Views_SW_Master_cshtml.Execute() in e:\sites\WIP\www.lawcare.org.uk\website\Views\SW_Master.cshtml:118
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +196
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +89
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +233
   System.Web.WebPages.WebPageBase.PopContext() +291
   StackExchange.Profiling.MVCHelpers.WrappedView.Render(ViewContext viewContext, TextWriter writer) +295
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
   System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +854204
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +854204
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +854256
   System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__19() +40
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +65
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +51
   System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +51
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

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

So here is the offending line 43 of "Hotlines.cshtml":

@Html.Action("PrepareCallback", "CallbackFormSurface")

And here is the Surface Controller (found in the "App_Code" directory atm):

using System;
using System.ComponentModel.DataAnnotations;
using System.Net.Mail;
using System.Text;
using System.Web.Mvc;
using Umbraco.Web;
using Umbraco.Web.Mvc;

/// <summary>
/// Summary description for HotlineController
/// </summary>
public class CallbackFormSurfaceController : SurfaceController
{
[ChildActionOnly]
public ActionResult PrepareCallback()
{
    TempData.Clear();

    return PartialView("CallbackForm", new CallbackFormModel
    {
        CallbackHeadline = CurrentPage.AncestorOrSelf(1).GetPropertyValue<string>("callbackHeadline"),
        CallbackPlaceholder = CurrentPage.AncestorOrSelf(1).GetPropertyValue<string>("callbackPlaceholder"),
        CallbackTooltip = CurrentPage.AncestorOrSelf(1).GetPropertyValue<string>("callbackTooltip"),
        CallbackButtonText = CurrentPage.AncestorOrSelf(1).GetPropertyValue<string>("callbackButtonText")
    });
}


[HttpPost]
public ActionResult RequestCallback(CallbackFormModel model)
{
    String fieldError = String.Empty;
    var member = umbraco.cms.businesslogic.member.Member.GetCurrentMember();
    StringBuilder fieldErrorString = new StringBuilder();

    var recipientProp = CurrentPage.AncestorOrSelf(1).GetProperty("callbackRecipient");
    var senderProp = CurrentPage.AncestorOrSelf(1).GetProperty("callbackSender");
    var subjectProp = CurrentPage.AncestorOrSelf(1).GetProperty("callbackSubject");
    var responseProp = CurrentPage.AncestorOrSelf(1).GetProperty("callbackResponse");
    var responsePage = CurrentPage.AncestorOrSelf(1).GetProperty("callbackRedirection");


    if (recipientProp == null || recipientProp.Value == null || recipientProp.Value.ToString().Length == 0)
    {
        fieldError = "The 'Callback Recipient Email Address' property has not been completed";
        fieldErrorString.AppendLine(fieldError);
        if (member != null) throw new MissingFieldException(fieldError);
    }

    if (senderProp == null || senderProp.Value == null || senderProp.Value.ToString().Length == 0)
    {
       fieldError = "The 'Callback Sender Email Address' property has not been completed";
       fieldErrorString.AppendLine(fieldError);
       if (member != null) throw new MissingFieldException(fieldError);
    }
    if (subjectProp == null || subjectProp.Value == null || subjectProp.Value.ToString().Length == 0)
    {
        fieldError = "The 'Callback Subject Line' property has not been completed";
        fieldErrorString.AppendLine(fieldError);
        if (member != null) throw new MissingFieldException(fieldError);
    }

    if (responseProp == null || responseProp.Value == null || responseProp.Value.ToString().Length == 0)
    {
        fieldError = "The 'Callback Thank You Message' property has not been completed";
        fieldErrorString.AppendLine(fieldError);
        if (member != null) throw new MissingFieldException(fieldError);
    }

    if (responsePage == null || responsePage.Value == null || responsePage.Value.ToString().Length == 0)
    {
        fieldError = "The 'Callback Thank You Page' property has not been completed";
        fieldErrorString.AppendLine(fieldError);
        if (member != null) throw new MissingFieldException(fieldError);
    }



    if (!ModelState.IsValid)
    {
        String errorMessage = "Oops! We've hit a small glitch but the site admins have been notified at " + DateTime.Now + ". Please ring us directly at your earliest convenience.";
        TempData.Add("Status", errorMessage );
        SendErrorReport("admin@randomprecision.co.uk", "website.lawcare.org.uk", "bcc@randomprecision.co.uk",
                               "Callback Form Error.", fieldErrorString.ToString(), CurrentPage.Name);
        model.ShowForm = false;
        model.ShowMessage = true;
        return CurrentUmbracoPage();
    }

    //SendSmtpEmail(recipientProp.Value.ToString(), senderProp.Value.ToString(), "bcc@randomprecision.co.uk", subjectProp.Value.ToString(), model);

    SendSmtpEmail("admin@randomprecision.co.uk", senderProp.Value.ToString(), "bcc@randomprecision.co.uk", subjectProp.Value.ToString(), model);

    model.ShowForm = false;
    model.ShowMessage = true;


    //return RedirectToCurrentUmbracoPage();
    //return CurrentUmbracoPage();
    return RedirectToUmbracoPage(Convert.ToInt32(responsePage.Value));
}

private void SendSmtpEmail(string recipientEmail, string senderEmail, string adminEmail, string subjectLine, CallbackFormModel model)
{
    StringBuilder body = new StringBuilder();
    body.AppendLine(subjectLine);
    body.AppendLine();
    body.AppendLine("Requesters Phone Number: " + model.CallbackPhoneNumber);
    body.AppendLine();
    body.AppendLine("Regards,");
    body.AppendLine("Lawcare Website Robot");


    MailMessage internalMessage = new MailMessage();
    internalMessage.To.Add(new MailAddress(recipientEmail));
    internalMessage.From = new MailAddress(senderEmail);
    internalMessage.Bcc.Add(new MailAddress(adminEmail));
    internalMessage.Body = body.ToString();
    internalMessage.Subject = subjectLine + ": " + CurrentPage.Name;
    internalMessage.IsBodyHtml = false;

    SmtpClient smtpInternal = new SmtpClient();
    smtpInternal.Send(internalMessage);

 }


private void SendErrorReport(String emailTo, String emailFrom, String emailBcc, String emailSubject, String emailMessage, String errorLocation)
{
    StringBuilder body = new StringBuilder();
    body.AppendLine(emailSubject);
    body.AppendLine();
    body.AppendLine("Error: " + emailMessage);
    body.AppendLine();
    body.AppendLine("Regards,");
    body.AppendLine("Lawcare Website Robot");


    MailMessage internalMessage = new MailMessage();
    internalMessage.To.Add(new MailAddress(emailTo));
    internalMessage.From = new MailAddress(emailFrom);
    internalMessage.Bcc.Add(new MailAddress(emailBcc));
    internalMessage.Body = body.ToString();
    internalMessage.Subject = emailSubject + ": " + errorLocation;
    internalMessage.IsBodyHtml = false;

    SmtpClient smtpInternal = new SmtpClient();
    smtpInternal.Send(internalMessage);

}

}

public class CallbackFormModel
{
    public bool ShowMessage { get; set; }
    public bool ShowForm { get; set; }

    public string CallbackFormIdentity { get; set; }
    public string CallbackHeadline { get; set; }
    public string CallbackPlaceholder { get; set; }
    public string CallbackTooltip { get; set; }
    public string CallbackButtonText { get; set; }

    public string UpdateTargetBox { get; set; }

    [Required(AllowEmptyStrings = false, ErrorMessage = "Please enter your phone number")]
    [Display(Name = "We can also call you", Prompt = "Your Phone Number")]
    [DataType(DataType.PhoneNumber)]
    public string CallbackPhoneNumber { get; set; }
}

Have I done something wrong in the upgrade or what?

As always all help is greatly appreciated and I can give access to files or anything else if need be!

Thank you for your time and patience!

Jon @precisioncoding

Viewing all 72689 articles
Browse latest View live