ActiveTopics Mon, 30 Nov 2015 04:14:43 +00:00 umbraco Latests topics from the forum on en Navigation Tree missing in Firefox after upgrading Umbraco from 7.2 to 7.3 Hi,

After I upgraded Umbraco from 7.2 to 7.3, I found the navigation tree and content are on display:none only in Firefox. Anyone know what is happening?

enter image description here

Thanks, Tony

Hua Mon, 30 Nov 2015 02:16:30 +00:00
<umbraco:image> help Hi all,

I'm very new to using umbraco.

At work we have our custom cms and when calling an image that has been uploaded using a cms we call it using the control

cms:Image runat="sever" imageName="imagename.jpg" />

I understand that umbraco:image... /> does a similar thing, however, I simply cannot get it work

Could someone offer some guidance?

Thank you

Sean Vowles Sun, 29 Nov 2015 21:58:50 +00:00
Handle files on the server side after you attatch to form with fileManager.addFiles() ? Hello,

I want to know how to handle the file collection from the server side after I use fileManager.addFiles() on the .js property editor.

My goal is to upload files as media and attach the IDs as a coma delimited string on the property value.

My source crawling has gotten me to think this should be done like here

and then passed on something like this

But I'm kinda stuck on how to go about doing this without breaking everything. Seems like whenever I make a server-side property editor it overrides EVERYTHING and I get all sorts of weird errors.

Any idea on how I can achieve my goal and if I'm on the right track or not?

Mike B Sun, 29 Nov 2015 20:24:47 +00:00
RTE TinyMCE - Sorting media picker and default start directory Was wondering if there is any way i can sort the mediapicker in the tinyMCE based on createdon rather then the name?

Reason is that we are hosting a blog kind website and for normal articles we do not really use the media lib and autors ar only creating dir's to minimize the amount of nodes in a dir. While if i could force the mediapicker to load a certain dir by default and sort the tree on datetime (mainly when uploading new images) then this would be very helpfull

Also being able to set the default dir for the tinyMCE mediapicker only is a big wish eg. Media/BlogContent/2015

Edwin Stoffels Sun, 29 Nov 2015 17:41:43 +00:00
Very slow page load - cache related probably Hi Kevin

I give this another spin on a 7.1.8 install, created handfull of topics with 10/20 posts and on each listing (topic->sub-topic) but noticed it takes forever to load the pages. All other pages are fine on the site. Do I need to create an Examine Index?

I believe this is to do with the caching, but Im not sure where to look for and/or edit and optimize.

There is no particular error in the log, beside info entries like;

..INFO Jumoo.Simpily.SimpilyForumCacheHandler - [Thread 63] Updated Cache for Test topic 23 [25511] found 1 items in 1ms ..

I have published, and re-published the entire forum section, but didnt progress on solving the slow-loading of pages. The total number of nodes are 10-20 so its not a performance hit but a cache related i presume.

Can you shed some light on what might be the likely issue?

keilo Sun, 29 Nov 2015 17:06:38 +00:00
Member login: programmatically logon. How to? How to login a member via API that is passing login and password ( hashed ) via code and not input from user?

Biagio Paruolo Sun, 29 Nov 2015 14:54:08 +00:00
Picture is not rendering Hi,

I'm trying to get slimsy to work on my page but it is not rendering the image correctly.

The following code is rendered in my view:

<img data-src="/media/1013/359lt.jpg?anchor=center&amp;mode=crop&amp;quality=90&amp;width=260&amp;format=jpg&amp;slimmage=true&amp;rnd=130932651730000000" data-slimmage="true">

But the image is not rendering. If I inspect the element then I see that my image is rendered with a size of 0 x 0 pixels.

I've already tried to put max-width to 100% but then the image is still not rendered.

I also read this topic, but the suggestions that are there do not work.

I'm using version 7.3.1 of Umbraco.

What could be the problem?

Thanks in advance!

Jurgen Van de Water Sun, 29 Nov 2015 14:30:12 +00:00
Use Angular Directive in ASCX Control for Package Install During the package creation process, you are allowed to select a ASP.NET User Control (ASCX file) to display once the installation has completed:

Control Selection

When I install the package, it loads the control up fine. However, the control contains an AngularJS directive I created. The problem is that the directive is not being processed.

I suspect that is because Umbraco isn't doing all the Angular stuff in the iframe containing the ASCX that it does with the rest of the back office.

What is the easiest way of getting this directive to appear after my package is installed?

The lame alternative I'm considering is simply linking to the developer section that contains a tab that is also displaying the same Angular directive.

Nicholas Westby Sun, 29 Nov 2015 00:41:35 +00:00
Dropdown Topnavigation problem. Hey.

iam tryning to get the following topnavination menu convertede to a XSLT dut iam not so dam good in version 7 yet.

this is the one i use in my version 6 site in the scripting files.

@inherits umbraco.MacroEngines.DynamicNodeContext

        @*Get the toot og the website *@
        var root = Model.AncestorOrSelf(1).Children.Where("Visible");
    <li><a href="/">FORSIDE</a></li>
    @foreach (var page in root)
        <li class="@page.IsAncestorOrSelf(Model, "current-menu-item", "")">
            <a href="@page.Url">@page.Name</a>
            @* check if page has chrildren *@
            @if (page.Children.Where("Visible").Count() > 0)
                        @foreach (var subpage1 in page.Children.Where("Visible"))
                                <a href="@subpage1.Url">@subpage1.Name</a>

I love to get it over to XSLT. and i dit try but i cant get it to work.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    xmlns:umbraco.library="urn:umbraco.library" xmlns:Examine="urn:Examine" 
    exclude-result-prefixes="msxml umbraco.library Examine ">

<xsl:output method="xml" omit-xml-declaration="yes" />

<xsl:param name="currentPage"/>

<!-- Input the documenttype you want here -->
<!-- Typically '1' for topnavigtaion and '2' for 2nd level -->
<!-- Use div elements around this macro combined with css -->
<!-- for styling the navigation -->
<xsl:variable name="level" select="1"/>

<xsl:template match="/">

<!-- The fun starts here -->
<ul class="nav navbar-nav navbar-right">
            <a href="#" class="" data-toggle="dropdown">Velkommen</a>
        <xsl:for-each select="$currentPage/ancestor-or-self::* [@isDoc and @level=$level]/* [@isDoc and string(umbracoNaviHide) != '0']">
            <li class="dropdown">
                <a href="{umbraco.library:NiceUrl(@id)}" class="dropdown-toggle" data-toggle="dropdown"><xsl:value-of select="@nodeName"/></a>
                <ul class="dropdown-menu">
                    <li class="">
                        <a href="{umbraco.library:NiceUrl(@id)}" class="dropdown-toggle" data-toggle="dropdown"><xsl:value-of select="@nodeName"/></a>



i hope som can help me..

i noly need it to list subpages one lvl down

like this.

page pagesub


Michael Jensen Sat, 28 Nov 2015 16:46:16 +00:00
Sub-site user cannot access media in grid layout A user only has editor authority to a content sub-site and a media child folder.

The user can access the media child folder when using the media picker in a document type.

The user cannot access the media child folder when using the Media Editor in the Grid Layout. The side panel displays with the Media link and the + sign to add another folder but the child folder does not display.

What am I doing wrong?

Your help would be much appreciated.

Thanking you in anticipation.


Roger Withnell Sat, 28 Nov 2015 14:04:24 +00:00
installing umbraco 7.3.2 with nuget package has completely failed ! hi, when im trying to install umbraco 7.3.2 with nuget pm , some sort of problem apeared in console:

Install-Package : Object reference not set to an instance of an object. At line:1 char:1 + Install-Package umbracocms -Verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

but i tried to install 7.3.1 on this way and it is done and eveything is ok !

sadegh Sat, 28 Nov 2015 13:44:04 +00:00
truncate picture help !! help iszit possible to truncate picture ? eg. i want to only display 2 picture on blogoverview using multi media pick.. here is my code....

foreach(var post in items.Skip((page - 1) * pageSize).Take(pageSize).OrderBy(x=>x.Name)){
        <div class="post-image">
            <div class="post-heading">

@{ if (post.HasValue("imgContent")) { var imagesList = post.GetPropertyValue("imgContent").Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(int.Parse); var imagesCollection = Umbraco.TypedMedia(imagesList).Where(x => x != null);

foreach (var imageItem in imagesCollection)
        <img src="@Umbraco.Truncate(@imageItem.Url, 50, true)"/>  




Shin Jin Sat, 28 Nov 2015 07:34:01 +00:00
Create a product list with paging Hello, I want to create a product list with paging shown as below

enter image description here

I have searched on the Jquery or javascript to achieve this and found that we can use JSPages. But how do i integrate this in Umbraco?

Also, When user click in Category A, it should redirect to another page (which is Product list page) with the same functionality, which is shown as below.

enter image description here

So how do i achieve this ?

Prashant Sat, 28 Nov 2015 05:37:01 +00:00
How to add classes to code snippet elements? Hi Guys,
I've used the partial view code snippet for a login but would like to add classes to the form and the input elements (Bootstrap site, so for example would like to add .form-control class to the inputs) but can't find where to do this.
In the macro the razor code is: @Html.TextBoxFor(m => loginModel.Username) and can't find anything for login model or login controller anywhere.
Thanks for any help!

Steve Sat, 28 Nov 2015 02:00:01 +00:00
Insert attributes to tags in CDATA code Hi,

I have a Rich Text Editor where the editors insert images. A click on those images should open a modal window with a larger version of that image. I know how to do that, but how do I add the Bootstrap modal attributes to IMG tags in CDATA code?


Daniel Palm Sat, 28 Nov 2015 01:07:23 +00:00
U7.3.1 - UmbracoIdentity: How to associate a "OAuth/social" login to an already register member? U7.3.1 - How to associate a "OAuth/social" login to an already registered member?

That is: a registered member can after associate its "social" login so he can login with normal login or social.

Biagio Paruolo Fri, 27 Nov 2015 22:07:02 +00:00
Accessing a same level node in Razor Hi All,

I have the following structure in my back office and when on the home node I would like to access the Carousel Repository node and display its contents.

--Home (Level 1)

----Node (level 2)

----Node (level 2)

--Carousel Repository (Level 1)

I am able to do it using

@{ var CarouselRepository = Umbraco.Content(1063);  }

But i would like to get it by docTypeAlias rather than use an ID

Can someone please help im having a dull moment :)

Many thanks


Paul Griffiths Fri, 27 Nov 2015 21:16:49 +00:00
SqlException (Timeout) in ExamineManager after upgrading from 7.2.6 to 7.3.2 Hi - after upgrading my umbraco web-site from version 7.2.6 to 7.3.2, I am getting SqlExceptions when starting the

The version in the web-config is successfully set to the new version, but after a while spinning in the browser, it fails with a SqlException.

The stacktrace suggests that the problem is a "RebuildIndex" method in the ExaminManager.

Any suggestions to get around this?

Kind regards Thomas

Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
System.Data.SqlClient.SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out
Umbraco.Core.Persistence.Repositories.MemberRepository.GetPagedResultsByQuery(IQuery 1 query, Int64 pageIndex, Int32 pageSize, Int64& totalRecords, String orderBy, Direction orderDirection, String filter)
   at Umbraco.Core.Services.MemberService.GetAll(Int64 pageIndex, Int32 pageSize, Int64& totalRecords)
   at Umbraco.Core.Services.MemberService.GetAll(Int32 pageIndex, Int32 pageSize, Int32& totalRecords)
   at UmbracoExamine.UmbracoMemberIndexer.PerformIndexAll(String type)
   at UmbracoExamine.BaseUmbracoIndexer.PerformIndexRebuild()
   at Examine.ExamineManager._RebuildIndex() in x:\Projects\Examine\Examine\Projects\Examine\ExamineManager.cs:line 240
   at Umbraco.Web.WebBootManager.b__c()
   at Umbraco.Core.Sync.DatabaseServerMessenger.Initialize()
   at Umbraco.Core.Sync.DatabaseServerMessenger.Boot()
   at Umbraco.Core.CoreBootManager.b__8(IApplicationEventHandler x)
   at Umbraco.Core.EnumerableExtensions.ForEach[TItem](IEnumerable1 items, Action`1 action)
   at Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete)
   at Umbraco.Web.WebBootManager.Complete(Action` afterComplete)
   at Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e)
Error Number:-2,State:0,Class:11
Thomas Michael Koch Fri, 27 Nov 2015 21:04:09 +00:00
Passing data from view to doctype grid editor view Using Umbraco 7.2.8 and I have a view and I want to pass some data down the the doc type grid partial, so in my main template I have:

  @Model.Content.GetGridHtml("mainContentGrid", "contentGrid", new ViewDataDictionary { { "currentProduct", productModel } })

Then in my view for the grid component partial

var productModel = (ProductModel) ViewData["currentProduct"];

however that is always null. Is this even possible if not then how do i do it?



Ismail Mayat Fri, 27 Nov 2015 17:53:33 +00:00
Owin startup conflict? I had my own owin startup class in my project. This doesn't seem to work anymore since 7.3. I assume this is because Umbraco has it's own startup. Is it possible to run both some way?

ZNS Fri, 27 Nov 2015 17:00:08 +00:00
Label style Custom Fieldtype question Hi,
I've made a custom fieldtype in Forms to display a 'label' element in forms - just text to help guide the user. I don't want to store the value or create a column for the field in the form Entries table.
How do you disable data storage for a fieldtype?
I see there is a property StoresData, but it is read only.
Thanks for any help on this!

Steve Fri, 27 Nov 2015 16:52:41 +00:00
FastCache 2.0 Check this thread out:

Might be worth including those changes into your version.

Nicholas Westby Fri, 27 Nov 2015 16:48:23 +00:00
Best practice way to install next version of packages? Hi,

what is the way to install the next version of a package?

When you have a particular version installed it is shown in installed packages. If you install the new version both appears in installed packages. When this is the case will this cause issues? Will the newer version automatically be used?

If you uninstall the old version and then install the new version, can this cause issues? Is this the best way to do it?

It is Archetype I am thinking off here which has its own data types?

Can anyone advise here?

Thanks a lot!

Damon Fri, 27 Nov 2015 16:39:50 +00:00
FastCache v2.0 Hello all

I started using Kevin Giszewski's Umbraco FastCache on a project (a shopping centre web site with about 200,000 hits per day).

I noticed that it had a few shortcomings:

  • Didn't set text/html as a content type, on Chrome I was seeing plain text pages
  • Didn't use app cache (file system access slow on azure). The new version still uses the file system to survive app reloads
  • The publish - cache invalidate workflow was broken (was written for an older version of Umbraco)

here is my fork on GitHub --

Obviously for this to work, the content itself should be the only dynamic elements on your page. We use Angular for dynamic content and statically rendered templates+umbraco content. Seems to work quite well.

ecsplendid Fri, 27 Nov 2015 15:21:24 +00:00
Making sure the navigation has pages I want to make sure my navigation has a page before looping. I know this can be solved with an if-statement but I don't know where in my code to put it

Here is my navigation code:

@inherits Umbraco.Web.Macros.PartialViewMacroPage
    int num = 1;    
    var rootNode = Model.Content.AncestorOrSelf(1);

    // home node is hardcoded - this might not be right?
    <ul id="menu">
            <a href="/" class="drop">Hem</a>
        </li><!-- End Home Item -->
        @foreach (var mainNode in rootNode.Children())
            int childCount = 1;
            int numChildren = mainNode.Children().Count();
                <a href="@mainNode.Url" class="drop">@mainNode.Name</a>
                <div id=nav-@num class="dropdown_5columns"> 
                    <!-- Begin 2 columns container -->
                    <div class="col_5">

                    @* note if you want ALL descendants change .Children to .Descendats*@
                    @foreach (var childNode in mainNode.Children().Where("Visible"))

                        // if first node or new set of three open the div and ul @: is used to stop razor trying to
                        // "balance" the tags
                        if (childCount == 1 || (double)childCount % 3 == 1)
                            @:<div class="col_1">
                        <li><a href="@childNode.Url">@childNode.Name</a></li>

                        // close the div and list if this is either a multiple of 3 or the last one
                        if ((double)childCount % 3 == 0 || numChildren == childCount)




Johan Fri, 27 Nov 2015 14:55:08 +00:00
iframe scaling the embedded content Hi,

I have an iframe with an embedded URL and have got it all the right size i want,

however i would like it so that the embedded content is zoomed out and scaled so that the page fits within my frame.

I have seen a few bits of code but cant get any of the to work,

Any help and any code you can give me to put in would be great,



Ethan Wise Fri, 27 Nov 2015 13:45:53 +00:00
Why template has its own URL in umbraco I have created a template named it to "home page". then i have created a content tab for this and publish it with url suppose like "". but now i can see the same page is also accessible at "\homepage". Can anyone let me know why there is a page exists for each template in umbraco. this causes me content duplication issue in SEO. Will Appreciate help.

shobhit agarwal Fri, 27 Nov 2015 12:40:36 +00:00
Database structure (Uv7) When i instal uComment in v7 i get "System.Data.SqlServerCe.SqlCeException (0x80004005): The specified table does not exist. [ comment ]" error. Is somewhere SQL structure so i can create them manually?

David Nekovář Fri, 27 Nov 2015 12:32:40 +00:00
Backoffice broken after upgrading from 7.3.0 to 7.3.2 Hi there. We have upgraded our 7.3.0 install via NuGet to 7.3.2 and are getting a few different errors in the back office. The critical one is an angular error which stops you being able to switch between the different sections, e.g. Developer, Settings, etc.

TypeError: Cannot read property 'alias' of undefined
    at Object.scope.sectionClick (umbraco.directives.js?cdv=1:2499)
    at angular.min.js?cdv=1:270
    at angular-mobile.js?cdv=1:270
    at Object.e.$eval (angular.min.js?cdv=1:92)
    at Object.e.$apply (angular.min.js?cdv=1:92)
    at HTMLAnchorElement.<anonymous> (angular-mobile.js?cdv=1:269)
    at HTMLAnchorElement.x.event.dispatch (jquery.min.js?cdv=1:5)
    at HTMLAnchorElement.y.handle (jquery.min.js?cdv=1:5)

I have spent a long time looking through our commit history, and I tried rolling back to 7.3.0 and performing the upgrade again, same issue. The other (non-critical errors) are to do with loading gravatar images:

GET http://localhost:9000/umbraco/[%7B%22value%22:%22assets/img/application/logo@2x.png%22%7D,%7B%22value%22:%22assets/img/application/logo@3x.png%22%7D] 400 (Bad Request)
GET http://localhost:9000/umbraco/[%7B%22value%22:%22}] 400 (Bad Request)
Zac Fri, 27 Nov 2015 11:10:24 +00:00
Resolve instance BackOfficeUserManeger Error during install of 7.3.2 I'm getting this error when trying to install Umbraco 7.3.2.

Could not resolve an instance of Umbraco.Core.Security.BackOfficeUserManager from the Microsoft.Owin.IOwinContext GetUserManager method

Detail in the log is

2015-11-27 10:39:31,535 [P7116/D6/T62] ERROR Umbraco.Web.Install.Controllers.InstallApiController - An error occurred during installation step UmbracoVersion 
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Could not resolve an instance of Umbraco.Core.Security.BackOfficeUserManager from the Microsoft.Owin.IOwinContext GetUserManager method  
    at Umbraco.Web.Security.WebSecurity.get_UserManager()    
    at Umbraco.Web.Security.WebSecurity.PerformLogin(Int32 userId)    
    at Umbraco.Web.Install.InstallSteps.SetUmbracoVersionStep.Execute(Object model)    --- End of inner exception stack trace ---    
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)    
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)   
     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   
    at Umbraco.Web.Install.Controllers.InstallApiController.ExecuteStep(InstallSetupStep step, JToken instruction)    
    at Umbraco.Web.Install.Controllers.InstallApiController.PostPerformInstall(InstallInstructions installModel)

Anyone know what is causing this and how to resolve? FYI I am installing the site from the zip version.

suzyb Fri, 27 Nov 2015 10:46:09 +00:00
Min Max Rows in Grid Editor Hi

Is there a way to restrict the number of rows that can be added to a grid editor?


Sean Fri, 27 Nov 2015 10:33:33 +00:00
Couple of issues with Courier 2.51.2 Hi,

I have started using Courier 2.51.2 to deploy updates in Umbraco V7.

First, we don't always want to deploy content, because it could be test pages. It looks like the content is listed under Documents in Courier. I deselect all, but the content still seems to merge into the other version of the site. Is this supposed to happen?

Also, is Courier a little flaky when it comes to picking everything up? There normally seems to be some data types it misses out. Are the data types stored in the database? I think there were a few other things it tends to miss out as well.

Does this happen with other people?

Thanks a lot!

Damon Fri, 27 Nov 2015 09:57:19 +00:00
Trying to update site from 7.1.8 Hello umbraco developers Im trying to update my site and im constanly getting this error:

Severity    Code    Description Project File    Line
Error   CS0121  The call is ambiguous between the following methods or properties: 'ui.Text(string, string, User)' and 'ui.Text(string, string, IUser)'

Site-name   C:\sitePath\umbraco\Controls\ProgressBar.ascx   2

can't figure out what Im doing worng.

Im trying to update with nuget I accept license then it ask me to override the ClientDependency.config in config this I press no to.

Then it finish and say dont forget to build. If i build at this point the error will show.

Dan Sørensen Fri, 27 Nov 2015 09:30:59 +00:00
Access and update all OTHER live properties from custom property editor? Hello,

I am trying to update other properties from within a custom property editor.

I can access all the properties on load time with

  contentResource.getById( (editingNode)


But it's not enough. I want to be able to listen to property changes after page load and update other properties. Any hints?

I managed to get the form via angular.element('form[name=contentForm]').scope().contentForm

but kinda hit a dead end as it doesn't list the members. Also input boxes etc don't have unique identifiers so I can't access them via DOM either.

Mike B Thu, 26 Nov 2015 16:51:27 +00:00
Making a side navigation I would like a side navigation that lists the submenus of a menu (just like a dropdown navigation would)

Here is an example:

enter image description here

How would the partial macro look like?

Johan Thu, 26 Nov 2015 13:58:29 +00:00
Fixing poor performance on Azure Hey friends,

I'm attempting to gather information to fix a performance issue we are having at work with an Umbraco instance hosted on Azure. We are experiencing 2+ second page load times which over 6x slower than on any development machines where most pages served at around 150-200 ms.

Our setup is as follows.

  • Web App Standard, Medium (2 cores, 3.5 GB Memory), 1 instance
  • SQL Database Standard, S2 (50 DTUs), max size 250 GB
  • Umbraco v7.3.1

Both the web app and the database are in the same region.

To tweak our performance a little I've set the ExamineSettings.config provider settings to use useTempStorage="Sync" and also set the ASP.Net File Change Notification (FCN) in the web.config to use a single observer. Everything else is out-of-the-box.

I haven't enabled output cache in any of our controllers so far as I want to determine the cause of the issue rather than mask it.

Unfortunately Miniprofiler is not working for some reason (Throws an error stating "Too much recursion") so I can't dig into what is taking the time. We have NewRelic installed but all it is telling us is that 96% of the time is being spent in the controller and that db access is minimal.

Time is supercritical just now so any experienced advice would be most useful.

  • What are the minimum requirement you set your sites up with?
  • What are UAAS doing with their instances?
  • What tweaks have you been required to do?



James Jackson-South Mon, 09 Nov 2015 23:33:53 +00:00
Upgrading 7.2.8 -> 7.3.1 fails using NuGet Hi,

I'm trying to upgrade my 7.2.8 site to 7.3.1 using NuGet in Visual Studio 2013. However this fails with the following error message:

Updating 'Microsoft.AspNet.WebPages 2.0.20710.0' to 'Microsoft.AspNet.WebPages 3.2.3' failed. Unable to find a version of 'Microsoft.AspNet.Web.Helpers.Mvc' that is compatible with 'Microsoft.AspNet.WebPages 3.2.3'.

Anyone able to help?

Thanks /Jan

Jan Bengtsson Tue, 03 Nov 2015 08:30:33 +00:00
Umbraco.Web.UmbracoModule returns 404 Hi

Status code is 404 yet TrySkipIisCustomErrors is false - IIS will take over.

2015-10-28 20:55:45,721 [P8932/D12/T37] WARN Umbraco.Web.UmbracoModule - Status code is 404 yet TrySkipIisCustomErrors is false - IIS will take over.

Why would this return a 404?

Any insights would be very welcome



gary Wed, 28 Oct 2015 21:02:42 +00:00
Root / Home Node incorrect in Multi-Site Setup I am trying to get the root node from a webforms page (the main umbraco site is MVC). I originally thought that this would solve my problem:

UmbracoHelper umbracoHelper = new UmbracoHelper(UmbracoContext.Current);

int pageId = umbracoHelper.ContentAtRoot().FirstOrDefault().Id;
dynamic home = umbracoHelper.Content(pageId);
//Do stuff with home

But when I go to or the pageID is for the first site (site1).

Does anyone know how to return the home id for the current site? I assume Umbraco figures that out with the website URL or some other internal cleverness?

schlubadub Tue, 26 May 2015 07:36:27 +00:00
Image Cropper/Image Processor Crops First off, thx for the package, it's great.

It seems that image processor isn't working with the images I have stored on Azure.

For example, this won't work:

Guessing it's because the image processor handler can only run for things hosted locally.

Have you run into this before?

I'll also follow up with James South.

Kevin Giszewski Fri, 24 Apr 2015 19:47:21 +00:00
Create member then login programmatically Hi all,

As the topic title says, I'm trying to create a member and then login programmatically.It would seem that when I call the ValidateUser function it can't login the newly created member and always returns false. The reason I'm trying to do this is because we currently authenticate via an external service - I then create a one time member login that get's deleted once the session ends.

Any help is greatly appreciated - code snippet below.

var memberService = Services.MemberService;
//create umbraco member and set the password as a random Guid
var member = CreateUmbracoMember();
  if (Membership.ValidateUser(member.Username, member.RawPasswordValue))
   //Always returns false
Ryan Mon, 13 Apr 2015 11:32:42 +00:00
Reject Notifications Hi, If a Writer creates a page and then Sends To Publish, how does the Admin Approver Reject the saved work and how would the Writer know that the page has been rejected?

Many thanks Jon

Jonathan Roberts Mon, 16 Mar 2015 17:48:34 +00:00
BxSlider with Slimsy Wonder if anyone here could help with this Slimsy/BxSlider issue I posted in another place? :



Craig100 Wed, 01 Oct 2014 17:03:12 +00:00
Saving a file with Anyone who knows how to use the function to save a new file, fx. a pdf?

The documentation, which can be found here, is not especially detailed.

...if the media item needs to have files attached, they must be provided as the files param and passed seperately.

Well, as a bitsteam or as a link or what? How do I pass the files?

Tom Mon, 29 Sep 2014 11:11:55 +00:00
'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any' I've just upgraded from 7.0.3 to 7.1.3 and am getting this error on the first partial that loads on my homepage:


'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'

Server Error in '/' Application.

'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'

 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: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'Umbraco.Web.Models.DynamicPublishedContentList' does not contain a definition for 'Any'

Source Error:

Line 5:  }
Line 6:  
Line 7:  @if (root.StoreFocus.Any())
Line 8:  {
Line 9:      foreach (var childPage in root.StoreFocus.Random(1))

Source File: d:\Work\TFS\RegentArcade-branch\Stardust\Views\Partials\StoreFocusPartial.cshtml    Line: 7


(StoreFocus is a DocumentType by the way).


The website worked fine before the upgrade. I followed the generic upgrade instructions and used NuGet, merging my web.config afterwards.


Any advice please? I'd rather not go thru the pain of a downgrade.



JJ Wed, 21 May 2014 17:06:38 +00:00
Login failed for user in Umbraco 7 Hi All,

I'm having an issue with Umbraco 7.1 (developing on localhost), with which I can't login to the Umbraco UI and I receive the message "Login failed for user MyUser". Using developers tools I also get the error "Failed to load resource: the server responded with a status of 400 (Bad Request) http://mysite.local/umbraco/backoffice/UmbracoApi/Authentication/PostLogin

Is this something to do with using localhost maybe or is there another reason? A few other people have had what seems the same issue but none of those threads have a conclusion, so I was hoping there might be an update on the issue at this point?

I've tried fresh installs of versions Umbraco 7.1 & 7.1.1 with MySQL 5.6, .NET Framework 4.5.1 & IIS7. I've also tried it in Chrome and Firefox browsers as I heard Chrome can have issues with caching. Any help would be really appreciated.

Kind Regards

pronto Tue, 29 Apr 2014 16:41:23 +00:00
Best Practice for Load Control after installation With Umbraco 7 Packages - the package creator still lets you define what user control to load after installation

Load control after installation (ex: /usercontrols/installer.ascx)

but we all live in the wonderful MVC/Angular world now - so what's the best practice for creating a page to be loaded after the installation of a package?

Kevin Jump Wed, 02 Apr 2014 11:25:58 +00:00
Fresh install of Umbraco 7.0.4 does not work Im trying to install Umbraco 7.0.4 on a Windows 7 Pro 64 bit machine using Visual Studie 2013 Pro following this guide:

Everyting seems to go fine, i get no errors during installation. But when i run my application i get the following error:

Server Error in '/' Application.

Attempt by security transparent method 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed.


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.MethodAccessException: Attempt by security transparent method 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MethodAccessException: Attempt by security transparent method 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed.]
   System.Web.Mvc.PreApplicationStartCode.Start() +46
   Microsoft.Web.Mvc.ViewEngineFix.PreAppStart() +49

[InvalidOperationException: The pre-application start initialization method PreAppStart on type Microsoft.Web.Mvc.ViewEngineFix threw an exception with the following error message: Attempt by security transparent method 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed..]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +12969195
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +12968904
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +280
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[HttpException (0x80004005): The pre-application start initialization method PreAppStart on type Microsoft.Web.Mvc.ViewEngineFix threw an exception with the following error message: Attempt by security transparent method 'System.Web.Mvc.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed..]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949

I have tried a couple of fixes, like running 'Install-Package -Id Microsoft.AspNet.WebHelpers' from the console. But nothing seems to fix this.

Can anyone help me?

Bunnynut Tue, 01 Apr 2014 10:44:21 +00:00
Member activity tracking Hi All,

I am beginner in Umbraco CMS. I would like to know how can we track Website Members activities.


  1. What pages they have visited
  2. What was thier IP address
  3. What browser/device they had used to visit the website


I know these features are available throgh google analytics, but due to some reason I can't use google analytics for the tracking.

Is there any inbuilt feature available in Umbraco or do I need to add add-on.


Bhagwant Sun, 29 Sep 2013 20:00:56 +00:00
Map not rendering correctly, grey area,-grey-area,-grey-area When adding maps to a user control something is odd with the rendering, you have to resize the browser window for it to "snap into place". it is like it is rendered to the left of the actual maps window.

When searching around it seems like a common problem with google maps, and you should call a resize method on it, but i'm not getting how it should be done.

Henri Toivonen Mon, 06 Feb 2012 10:07:27 +00:00