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

Multisite setup with content Finder, get parent? - Umbraco 8

$
0
0

Hey everyone

I am currently creating multiple sites which will be sharing articles. I am using the ContentFinder to find the articles and insert them correctly and everything works great, however my breadcrumb and navigation fails since the parent and ancestors are different.

I tried to follow the guide here: https://our.umbraco.com/forum/using-umbraco-and-getting-started/85100-running-multiple-sites-single-installation-with-a-fall-back-default-site#comment-269539

Idea is that the content I found still knows about the existing contentrequest from:

UmbracoContext.PublishedRequest

However the domain is null, anyone knows how to accomplish this using Unbraco 8 ?


Problem with upgrade 7.12.4 to 7.13: Invalid column name 'controlId'

$
0
0

I'm trying to upgrade a project from 7.12.4 to 7.13.3 or 7.13.0, but I keep getting error:

Invalid column name 'controlId'.

I tried all described solutions but nothing worked. I used SQL Server Profiler and located the problem in query:

SELECT [cmsDataType].[controlId], [umbracoNode].[text]
FROM [cmsDataType]
INNER JOIN [umbracoNode]
ON [cmsDataType].[nodeId] = [umbracoNode].[id]

I don't have column controlId in table cmsDataType:

enter image description here

I upgraded Umbraco from 7.4.3 to 7.12.4 without major problem. Can I fix this in any simple way?

A blog under construction built with materializecss

$
0
0

This post is about the idea of having login - register forms within person / company blog and having shared files with public visitor.

Our community members, can I know your choice about having the following features in the blog:

  1. Registration for public visitor.
  2. Login for blog member.
  3. Shared documents available to download. (i.e slides, pdfs, markdown)

Blog screenshot: enter image description here

Tea Commerce - Create Dynamic Product with Dynamic Price

$
0
0

Hi

So I'm building a picture frame e-commerce site and one of the bits of functionality of this site is being able to build your own picture frame.

The customer can set a width and height of the picture frame. The idea is to set a price per mm of the frame, and then calculate the final price with regards tot he size.

So example:

> Frame Price = 0.016p 
> Frame Size = 500 x 500 
> Calc = 500 + 500 + 500 + 500 = £32.00

Is there a way to add this as a dynamic product to the basket? As all I can see is that a product has to have a set product price with a unique id to add to the basket?

The only other way I can think of doing it is multiplying the quantity by 2000 in this instance to the get £32.00 price to add to the basket?

Id then have to change the code in the basket to check what product type has been added to hide the mammoth quantity added?

Just wondered if I was missing an easier way of doing this?

Exception in DateTimeParse.Parse and XmlPublishedCache sometimes

$
0
0

We have a strange problem in our Umbraco 7.7.8. Sometimes users get this exception. When reloading the page the error can be gone just after seconds. We have thousands of visitors each day and just a few requests gets this error.

I think it has to do with media and getting property value from it.

Does anyone know the cause of this problem?

Stack trace:    at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ParseDateTimeValue(String val)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.<.ctor>b__1_15(String val)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent.ValidateAndSetProperty(IDictionary`2 valueDictionary, Action`1 setProperty, String[] potentialKeys)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.DictionaryPublishedContent..ctor(IDictionary`2 valueDictionary, Func`2 getParent, Func`3 getChildren, Func`3 getProperty, XPathNavigator nav, Boolean fromExamine)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.CreateFromCacheValues(CacheValues cacheValues)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetUmbracoMedia(Int32 id)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId)
   at Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetById(Boolean preview, Int32 contentId)
   at Umbraco.Web.UmbracoHelper.TypedMediaForObject(Object id)
   at Umbraco.Web.UmbracoHelper.TypedMedia(Object id)
   at Our.Umbraco.PropertyConverters.MediaPickerPropertyConverter.ConvertSourceToObject(PublishedPropertyType propertyType, Object source, Boolean preview)
   at Umbraco.Web.PublishedCache.XmlPublishedCache.XmlPublishedProperty.get_Value()
   at Umbraco.Web.PublishedPropertyExtension.GetValue[T](IPublishedProperty property, Boolean withDefaultValue, T defaultValue)

UmbracoForms default css loading

$
0
0

Hello everyone ! I'm looking for some information but can't find any answer yet so... Here I am !

When we create a form with UmbracoForms, it seems that it's loaded with a default css, like, for example, classes like umbraco-forms-label :

<label for="b91a4062-5af9-4ce8-db77-aa183c3310ef" class="umbraco-forms-label">
Questions ou Commentaires  
<span class="umbraco-forms-indicator">*</span>
</label>

Is there a way not to load this css ? or to load it differently so we can overwrite it?

Thanks for your time :]

Referencing form fields in XSLT

$
0
0

I'm new to XSLT and am trying to create a basic file to use on one of my forms so when a user submits they get a confirmation email.

I just want to pull in the user's name into that email but I can't figure out how to reference it. The field is {yourName}.

Can anyone help? Using Umbraco 7.7.6.

Thanks

Owen

Converting from inheritance to composition

$
0
0

Hi all

Started down a dark path looking at converting existing content types from an inherited to composed structure - I know there's nothing fundamentally 'wrong' with inheritance, but compositions are much more flexible, so it's a dark path I need to tread.

So far, I've done this:

  • created a set of new, base compositions which cover all the existing inherited properties (ie we inherit metadata fields from a base doc type, so created a corresponding metadata composition). It's not as granular as I'd like, but it's a start.
  • next, I've iterated through all the existing content types (200+), and grabbed the ones that inherit from the base type
  • I create a copy of each of those types, adding __new as a suffix on the alias
  • since copying the content type only copies it's explicitly declared properties, I can then add the appropriate compositions back onto the new copy. All good, working well.
  • at this point, I now have the existing set of inheritance-based content types, and a new set of composition-based content types, in a 1:1 relationship, so I should be able to take node x of type foo, and convert it to type foo__new, right?
  • no. Not right, not yet.

I could run though every node via the content service, change the type, republish, wait, and go again. That's going to take a while with 20k nodes in the site. Too slow.

Instead, I've tried this:

  • get all the content types
  • map them into a dictionary relating new type and old type
  • created a temporary db table
  • populated that table with the id relationships from the dictionary
  • now I have a table from which I can look up an existing (inheritance-based) content type, and find the composition-based type it relates to. Cool, just like the dictionary data.
  • from there, I can do this: update cmsContent set contentType = Temp.NewTypeId from Temp where Temp.OldTypeId = cmsContent.contentType to update the cmsContent table, replacing the old type id with the new one.

This doesn't update the cmsContentXml table, but contentService.RebuildXmlStructures() will, eventually.

And this is where it all falls over. The backoffice still loads the tree nicely, the nodes are all of the new content type, but they don't have any data.

So there's an additional step that I'm missing and would love someone to point me towards it...

NINJA-EDIT: Using the backoffice UI to switch types works fine, so the issue is the db stuff, not the content types themselves.


Deleted picked items in pickers

$
0
0

Hi all!

I just have to start by saying that I absolutly love Umbraco!

But this is the biggest issue that experience.

Let's say I have a content picker. I pick a node and then delete the picked node. I would get a "null" error even if I have this if statement.

@if(Model.Content.HasValue("contentPicker"))
{
    var test = Model.Content.GetPropertyValue<IPublishedContent>("contentPicker");

    @test.Name
}

The node is still picked but this shows in the backoffice enter image description here

If you empty the recycle bin the node disapears from the picker but the "null" error is still ongoing. It's not until you "save and publish" the node again with nothing picked that the error stop occurring.

This is something that I experience quite often during development.

What I would like, is that the *node disappears from the pickereven if it's in the recycle bin and that the "null" error dissapears . * Is a nyone else experiencing this? Or dose anyone have an solution to this? or know how I could go about doing this myself?

(This is testen on Umbraco 7.14 with the default kit installed)

Thanks!

//Johannes

LetsEncrypt - webconfig - error 500

$
0
0

Heyh I'm assisting a clients website and trying to convert it to https.

"domain.com"/.well-known/acme-challenge/test12342 returns: "The page cannot be displayed because an internal server error has occurred."

The hosting company blames the webconfig. Im just not sure what it change, but comments are as following: "your webconfig contains Rewrite rules and

I've added the the "/well-known" and sub

Here is the config:

    <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>

<sectionGroup name="imageProcessor">
  <section name="security" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageSecuritySection, ImageProcessor.Web" />
  <section name="processing" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageProcessingSection, ImageProcessor.Web" />
  <section name="caching" requirePermission="false" type="ImageProcessor.Web.Configuration.ImageCacheSection, ImageProcessor.Web" />
</sectionGroup>

<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.5.13" />
    <add key="umbracoReservedUrls" value="~/config/splashes/booting.aspx,~/install/default.aspx,~/config/splashes/noNodes.aspx,~/VSEnterpriseHelper.axd" />
    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/.well-known,~/.well-known/,~/.well-known/acme-challenge,~/.well-known/acme-challenge/" />
    <add key="umbracoPath" value="~/umbraco" />
    <add key="umbracoHideTopLevelNodeFromPath" value="false" />
    <add key="umbracoUseDirectoryUrls" value="true" />
    <add key="umbracoTimeOutInMinutes" value="20" />
    <add key="umbracoDefaultUILanguage" value="dk" />
    <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="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />
    <!-- Important: If you're upgrading Umbraco, do not clear the connection string / provider name during your web.config merge. -->
</connectionStrings>

<system.data>
    <DbProviderFactories>
        <remove invariant="System.Data.SqlServerCe.4.0" />
        <add name="Microsoft SQL Server Compact Data Provider 4.0" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe" />
        <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" />
    </DbProviderFactories>
</system.data>

<system.net>
    <mailSettings>
  ----- // DELETED // ------
    </mailSettings>
</system.net>

<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">
        <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" />
    </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="false" batch="false" targetFramework="4.5" numRecompilesBeforeAppRestart="50">
        <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" maxInvalidPasswordAttempts="15" />
        </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" />
    </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=".woff2" />
        <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
        <remove fileExtension=".less" />
        <mimeMap fileExtension=".less" mimeType="text/css" />
        <remove fileExtension="." />
        <mimeMap fileExtension="." mimeType="text/plain" />
        <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="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-3.3.1.0" newVersion="3.3.1.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>

    </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>

And help very welcome :)

Cheers

Custom ApiController in Umbraco 8 cannot be reached.

$
0
0

Hello!

I'm currently trying to migrate an Umbraco 7 project to Umbraco 8 but are having difficulties reaching my custom .net ApiControllers. It just throws the typical "No umbraco document matches the url" 404 error. Google haven't been to much help either, so I hope someone in here has a solution or at least a pointer to where to go :-)

In V7 we have a class which inherits from IApplicationEventHandler in which we register routes via the "OnApplicationStarting" method:

GlobalConfiguration.Configure(WebApiConfig.Register);
RouteConfig.RegisterRoutes(RouteTable.Routes);

This has to my understanding been deppricated as to why the routes is no longer registered and therefore cannot be reached or atleast thats my best guess as to why I cannot reach them.

My controller is inheriting from the built in "ApiController" class.

A specific route prefix: "api/media";

What I have tried so far:

  • Followed some of the answers given here
  • Various versions of a routeprefix both incl.- excluding "umbraco"
  • Tried moving above methods to other classes, but none seem to be fired on startup.

Any ideas?

What do you choose? Umbraco 7 or 8

$
0
0

Hi everybody,

For a large intranet project I am currently in doubt as to what basis I will choose, Umbraco 7 or Umbraco 8. Together with a number of colleagues (non-technical users) I have involved, we think the Umbraco 7 interface works better and looks nicer. The disadvantage is that Umbraco 7 will be discontinued i guess and that the entire project will someday have to be upgraded to Umbraco 8. Is it perhaps therefore more convenient to opt for Umbraco 8 now and hope that the interface of the upcomming versions will be as good as that of Umbraco 7 again?

For my curiosity, what do you use for new projects? Umbraco 7 or 8?

media upload 500 error

$
0
0

Hi, suddenly when trying to upload media I get a 500 error on the file itself.. Also on the site the file is not shown and when trying to view the file the 500 error is thrown. Any ideas?

enter image description here

Update. For some reason it looks like some of the already uploaded images throws a 500 error aswell.

When looking at the media picker on the node that has the image this is thrown in the console:

"mydomain.com/media/1698/image.jpg?width=500&mode=max&animationprocessmode=first 500 (Internal Server Error)"

Cheers

Strange - nothing working

$
0
0

Hi,

I am using Umb 7.14 and 301 Url Tracker 3.15

I see the dashboard. When i make an entry, its added to the db table. But nothing shows up in the dashboard. enter image description here

enter image description here

The records in the DB dosnt seem to work, i get a 404 page enter image description here

I have also installed 'Page Not Found Manager' made by Tim

None of these are installed, thou i tried them all.

"SEOChecker" "Simple301" "Terabyte.Umbraco.Modules.PermanentRedirect" "CMUmbracoTools" "PWUrlRedirect"

I tried adjusting this in the umbracoSettings.config without luck disableRedirectUrlTracking="true"

Can you help?

Date Format

$
0
0

@Model.Value("erstellungsdatum") => Result 3/22/2016 12:00:00 AM but i need the result 22.03.2016

In Umbraco 7 it works: @Model.Value("erstellungsdatum").ToString("dd.MM.yyyy")

who can help me?


Umbraco7 :ERR_CONNECTION_RESET

$
0
0

hi all,

i'm getting this error in some clients that are not related. i'm guesing it's a firewall or security matter at each client.

my problem is that i don't know exactly what causing this error and how to fix it.

/umbraco/surface/Style/GetCss?rootId=5434:1 Failed to load resource: net::ERRCONNECTIONRESET

could anyone help?

Incorrect string value \xE9

$
0
0

Hello,

we are using Umbraco with mysql and when we try to save a page with some tags that contains diacritics (in french), we get the error:

MySql.Data.MySqlClient.MySqlException (0x80004005): Incorrect string value: '\xE9' for column 'Tag' at row 1

Clearly, the issue comes from the fact that the Tag column of the cmsTags table is using utf8_general_ci.

While the source of the error is obvious, the resolution is not that obvious to me. What am I supposed to do to fix it?

Do I have to change something in the database of Umbraco (doesn't sound like a best practice) or is it an up to Umbraco to fix this?

Note that I don't have the issue with the content of the page as the xml column of cmscontentxml is using latin1_swedish_ci (maybe the infra team where I work changed it, I don't know).

Could I have some guidance please?

Simple 301 Redirect plugin disappears

$
0
0

Hi.

I've installed Simple 301 Redirect plugin and it worked for a while. After a few minutes the tab disappeared and the plugin does not work anymore.

Anyone experience a similar issue?

I have tried to uninstall/reinstall the plugin with the same result.

  • Umbraco Cloud version 7.14.0

Rendering redundant infos

$
0
0

Hello guys,

I'm new to Umbraco, so I kind of not understand everything with it so I'm asking for a little bit of help out here.

I have currently a static website with basic MVC but I need to put it in a Umbraco... So I want to start at the most difficult things. First thing first, I want to make the website as smooth as possible for a non-developer person to use the backoffice to make as much change possible without asking for help to developers every now and then... So I have to render multiple times same layout of info (In short, on the website, we show the people in the society : photo, first and last name, job title and LinkedIn url). So what I want is the easiest way possible to do that in Umbraco (remember that the person who will use the website will have approximately 0 knowledge of development).

What do you guys think of it ? Oh and if there is no easy way, I will teach her but the less code there will be, better it is going to be

Thanks in advance

TemplateName append in URL

$
0
0

Hi,

I noticed that I can append a template's name to a valid Url and it is beeing displayed. Let's say I have a Url like www.mysite.com/node1/subnode1/mypage then I can call an url like www.mysite.com/node1/subnode1/maypage/newspage when I have a template called newspage.cshtml.

Could anybody explain that behaviour to me?

Thanx, Stephan

Viewing all 72689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>