Copied to clipboard

Flag this post as spam?

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


  • Wihlborg Inge 21 posts 161 karma points
    Jan 24, 2017 @ 15:08
    Wihlborg Inge
    0

    Umazel Starter Kit on Umbraco Cloud

    Thanks for a great theme. Anyone know if it is possibly to install it on Umbraco Cloud? I tried but did not succed.

  • Sotiris Filippidis 286 posts 1501 karma points
    Jan 24, 2017 @ 15:15
    Sotiris Filippidis
    0

    Thanks Inge. Truth is I haven't even tried to install it on Umbraco Cloud, but I haven't heard from others regarding that matter. What was the problem?

  • Wihlborg Inge 21 posts 161 karma points
    Jan 24, 2017 @ 15:26
    Wihlborg Inge
    0

    Hi thank you for a fast answer. When I installed the theme on Umbraco Cloud I could not se my homepage. enter image description here

    The detailed error message was: Compiler Error Message: CS0433: The type 'Umbraco.Web.PublishedContentModels.Pagehome' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\fce16bf7\bcd27964\assembly\dl3\01a2c30f\874866174276d201\Umbraco.Web.PublishedContentModels.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\fce16bf7\bcd27964\AppWeb_all.generated.cs.8f9494c4.d9zo0ph2.dll'

    As I am quite new to Umbraco and especially Umbraco Cloud this message does not help me, but perhaps you or someone else understand it.

    BR Inge

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Jan 24, 2017 @ 15:50
    Niels Hartvig
    0

    Hi Inge!

    I'll give it a go and see why it fails!

    Best, Niels...

  • Wihlborg Inge 21 posts 161 karma points
    Jan 24, 2017 @ 15:59
    Wihlborg Inge
    0

    Hi Nils,

    This is the first time I posted a question and I must say that I am very impressed it seems to be a place where you can post questions and relay on getting a answer :-)

    As I sad before i love the Umazel Starter Kit and I would be very pleased if it also could be used on the Umbraco Cloud, which I think is a very promising solution.

    BR Inge Wihlborg

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Jan 24, 2017 @ 16:44
    Niels Hartvig
    101

    Good news, I got it running: https://another-umazel-test.s1.umbraco.io/

    It is possible to from the umazel starter kit on Cloud, but it takes a little bit of manual work to update some settings which isn't set due to permission settings (I'll investigate further as of why).

    The Starter kit would normally update three settings in a file called /web.config, but Cloud currently doesn't allow that. So in order for the starter kit to work, you'll need to update them yourself. As these changes are in web.config, this require that you Clone the project locally to your machine, edit the web.config and then push the changes back up.

    Here's how to do it:

    1. Find the clone url and copy it: http://recordit.co/TQFtnqbgPn
    2. Clone it locally using your favorite git tool. I like GitKraken: http://recordit.co/0fpZEVgpzY
    3. Edit web.config in your favorite editor. I like Visual Studio Code. Scroll down to the appsettings section where you'll need to change the setting for Umbraco.ModelsBuilder.ModelsMode from "PureLive" to "Dll" and add three other settings : http://recordit.co/XOovxVaQrD
    4. Push the updates with your git tool: http://recordit.co/vJ1uvaeE9k
    5. Package now works :-)

    The reason for this, is that Umbraco Cloud validates the web.config to make sure the site runs ideally both performance and security wise. The downside of this is that it's a little more complex to update that exact file.

    Hope this helps!

    Best, Niels...

  • Sotiris Filippidis 286 posts 1501 karma points
    Jan 24, 2017 @ 18:54
    Sotiris Filippidis
    0

    It actually says that you have two versions of the same code, one in Umbraco.Web.PublishedContentModels.dll and another in appweb_all.generated.cs.xxxxxxxx.dll.

    The first is expected to be there. The second one is not. I don't think it's an issue with the theme though.

    I was curious, so I searched a bit - I found this issue in the issue tracker: http://issues.umbraco.org/issue/U4-8025 - what it says is that you may have included files that have been generated during build to your project, along with the dll that already contains the same classes.

    As far as I can understand, someone used Visual Studio in the process, switched the ModelsBuilder mode to AppCode or similar, and included the generated files (*.generated.cs) into the project so that they are built, forgetting to delete the Umbraco.Web.PublishedContentModels.dll file which contains the same things.

    (I know I must have confused you ten times over until now, but that's unfortunately the simplest scenario I can think of - and I may be totally wrong too).

    Please have a look at your web.config file - is there an entry like below? Does it have "Dll" in the value attribute?

    <add key="Umbraco.ModelsBuilder.ModelsMode" value="Dll" />
    

    Then, if you are using Visual Studio, look for .generated.cs files that are part of the project - if Models Builder is in Dll mode, they shouldn't be included in the project.

  • Sotiris Filippidis 286 posts 1501 karma points
    Jan 24, 2017 @ 18:57
    Sotiris Filippidis
    0

    ...and I should probably get the prize for the Most Delayed and Irrelevant Answer Ever :) :)

    Thanks for your time Niels, it's good to know. Indeed, I'm updating things in web.config, and I had no idea that this was not allowed in Umbraco Cloud. Good to know!

  • Marc Love (uSkinned.net) 432 posts 1671 karma points
    Jun 20, 2017 @ 12:26
    Marc Love (uSkinned.net)
    0

    Hi Niels,

    Is it still not possible to update web.config from package actions on Umbraco Cloud?

    If it isnt possible, is this something that will be added in the future or something that cant be added due to the performance and security validation of Umbraco Cloud?

    Cheers,

    Marc

  • Niels Hartvig 1951 posts 2391 karma points c-trib
    Jun 20, 2017 @ 12:59
    Niels Hartvig
    0

    We've found the root cause which isn't (directly) related to Umbraco Cloud but configuration settings that affects the way Umbraco restarts after packages have been installed. It'll be fixed in 7.6.4: https://issues.umbraco.org/issue/U4-10034

  • Marc Love (uSkinned.net) 432 posts 1671 karma points
    Jun 20, 2017 @ 14:47
    Marc Love (uSkinned.net)
    0

    Great to hear, thanks Niels

Please Sign in or register to post replies

Write your reply to:

Draft