Copied to clipboard

Flag this post as spam?

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


  • Robin 6 posts 76 karma points
    Dec 19, 2017 @ 11:10
    Robin
    0

    Error when deploying to live site

    Hi i am trying to get Umbraco cloud to work.

    When i have cloned my project to my local machine, and entered it through my local IIS evrything is fine and dandy.

    The I'm trying to install my theme on my local machine, after that's finnished I would like to have the changes to my live site, for example the content types that was created after i installed the theme.

    So i push everything to my repository, but now i can't even access my site, because i am getting the following stack trace.

    Server Error in '/' Application.
    Runtime Error
    Description: An application error occurred on the server. The current 
    custom error settings for this application prevent the details of the 
    application error from being viewed remotely (for security reasons). It 
    could, however, be viewed by browsers running on the local server 
    machine. 
    
    Details: To enable the details of this specific error message to be 
    viewable on remote machines, please create a <customErrors> tag within 
    a "web.config" configuration file located in the root directory of the 
    current web application. This <customErrors> tag should then have its 
    "mode" attribute set to "Off".
    
    
    <!-- Web.Config Configuration File -->
    
    <configuration>
       <system.web>
          <customErrors mode="Off"/>
       </system.web>
    </configuration>
    
    Notes: The current error page you are seeing can be replaced by a 
    custom error page by modifying the "defaultRedirect" attribute of the 
    application's <customErrors> configuration tag to point to a custom error 
    page URL.
    
    
    <!-- Web.Config Configuration File -->
    
    <configuration>
      <system.web>
          <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
       </system.web>
    </configuration> 
    

    I can't access backoffice or anything atm. on my live site. Is there any one that have any idea what's wrong? Thanks in advance!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 19, 2017 @ 12:49
    Sebastiaan Janssen
    2

    To see the actual error, you can set debug to true and custom errors off, in your web.config.

    The Umbraco Cloud portal has a handy switch for that:

    enter image description here

  • Robin 6 posts 76 karma points
    Dec 19, 2017 @ 13:13
    Robin
    0

    That would be nice, but i cant event get to the backoffice... I tried change it in the .config file and the push it with git. Everything looks ok in Git bash. But no update on my site... I currently have this in my .config file:

    <customErrors mode="Off" />
    
  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 19, 2017 @ 13:25
    Sebastiaan Janssen
    0

    The screenshot above is from https://s1.umbraco.io - there you can enable Debug Mode so you can see what the actual error in your website is.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 19, 2017 @ 13:26
    Sebastiaan Janssen
    2

    Oh and every time you push something to your live site Umbraco Cloud forces debug to be false and customErrors to be remoteOnly, so your only option is to do this switch through the portal!

  • Robin 6 posts 76 karma points
    Dec 19, 2017 @ 13:32
    Robin
    0

    Thanks! That's a lot better!

    I actually got a actual error. Isn't it strange the error don't appear on my local site?

    Now i have a Compilation error...

    Line 2:  using System.Collections.Generic;
    Line 3:  using System.Web.Mvc;
    Line 4:  using createsend_dotnet;
    Line 5:  using USNStarterKit.USNModels;
    Line 6:  using Umbraco.Web;
    

    It complains on Line 4.

    The type or namespace name 'createsend_dotnet' could not be found (are you missing a using directive or an assembly reference?)
    

    I assume there is either a .dll file that's not pushed, because other wise it shouldn't be working on my local machine.

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Dec 19, 2017 @ 13:37
    Marc Love (uSkinned.net)
    1

    Hi Robin,

    Marc from uSkinned here. There are a number of dlls that you need to deploy to Umbraco Cloud which are required for your uSkinned Theme to work.

    Please download the installation readme file for your theme available via your members area. This lists the files that should be included.

    Cheers,

    Marc

  • Robin 6 posts 76 karma points
    Dec 19, 2017 @ 15:09
    Robin
    0

    Hi again, i did as you mentioned. After i added the .dll files everything worked like a charm! Thanks!

  • Robin 6 posts 76 karma points
    Dec 19, 2017 @ 13:39
    Robin
    0

    That could probably solve my issue. I'll try that and get back to you with the result! Thanks!

  • Marc Love (uSkinned.net) 447 posts 1789 karma points
    Dec 20, 2017 @ 11:56
    Marc Love (uSkinned.net)
    0

    Great, can you mark my post as the correct answer?

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft