Copied to clipboard

Flag this post as spam?

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


  • Sam 7 posts 27 karma points
    Dec 18, 2010 @ 20:39
    Sam
    0

    Off to a bad start


    I tried to get started with this document:
    http://our.umbraco.org/wiki/how-tos/umbraco-absolute-beginner-tutorial

    I think the document is sorely out of date.  I tried to make the best of it however and managed to creae a template that I called Master, per the document's instructions.  Here is the asp that is generated:


    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
     Hello World
    </asp:Content>

    </asp:Content>


    It seems pretty obvious that that there is a problem but I didn't futz with it because I'm an absoute beginner.
    I gave up on the document above and moved to this one:
    http://our.umbraco.org/wiki/how-tos/getting-started-with-umbraco-what-is-next-after-you-install

    I managed to create a page but when I tried to add some content by right clicking then clicking "Edit in Canvas" I got what appeared to be a 404 that said mySite/1046.aspx could not be found.  Well I diddled around with it a bit, managed to figure out that the globe+disk icon is save and publish so I did that a couple times and I started getting a page that said something to the effect "there is work to be done" with a button that said "Start Umbraco".  So I did, tried to edit, got a page with a button that said "Start Umbraco".  So I did....

    I must have done something right (accidently, but I'll take full credit anyway) becuase now I'm getting the error I expect which is that there are two page directives in the file.

    So I tried to delete Master, but the site hangs with the "Deleting..." icon displayed.
    I opened the site again and now there  two templates named Master, neither of which can be deleted.
    I logged off and now I cannot start Umbraco at all.  All I get is this:


    Parser Error
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: There can be only one 'master' directive.

    Source Error:

    Line 2: 
    Line 3:  <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    Line 4:  <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    Line 5: 
    Line 6:  <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">


    Source File: /masterpages/Master.master    Line: 4

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

  • Sam 7 posts 27 karma points
    Dec 18, 2010 @ 20:46
    Sam
    0

    I will add that I originally tried to install Umbraco from source code.  I gave up on that and installed the binaries.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 18, 2010 @ 20:54
    Jan Skovgaard
    0

    Hi Sam

    How do you edit content in Umbraco? Using canvas or the backoffice? What do you do to login to the backoffice? Can you please describe it step by step? I'm asking because I'm a bit confused on how you are using umbraco.

    The solution to the error message is to remove the code at line 3, since no code can appear before the Master directive, which is at line 4.

     

    ideally the code should look like this...

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <!--YOUR HTML AND MACROS HERE -->
    </asp:Content>

    Be aware of this, since I suspect that there's also double </asp:Content> in your template.

    Hope this helps

    /Jan

  • bob baty-barr 1180 posts 1294 karma points MVP
    Dec 19, 2010 @ 00:47
    bob baty-barr
    1

    for new users, i often recommend the microsoft web installer platform for setting up your first few umbraco sites. I have had lots of success with it and it has saved me some frustration for SURE!

    i also do my editing primarily in teh back office, much like Jan references above... as i have never really wrapped my head around canvas editing either :)

    we are all here and ready to help you, just keep askign questions and trust me, your frustrations will melt away.

    welcome to the community!

  • Sam 7 posts 27 karma points
    Dec 19, 2010 @ 20:30
    Sam
    0

    Thank you gentlemen for your replies and your patience.  The reason I tried Canvas editor is that I thought that was how a page is edited.  I deleted the database and the website and started again from scratch.  This time it looks like it works although the site hangs when trying to add standard top navigation and a contact form. 

    I wonder if the duplicate master page tags were generated because there were two master pages with the same name???  It's no longer a problem... I won't try to create pages with the same name in the future.

    I watched the "document types" video.  I created a hello world page and published it but when I navigate to the page there is no content.  If I right click in my browser and view source there is nothing - no html - zero.  I don't get a 404 so I suppose there is actualy a /sams-page.aspx that gets generated.  Can one of you point me in the right direction on how to fix this?

    Thanks,

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 19, 2010 @ 22:57
    Jan Skovgaard
    0

    Hi Sam

    That sounds a bit odd.

    Can you perhaps post a screenshot from your content section where we can see the page you have created and maybe one of the 404 error?

    I think that will make it a bit easier for us to guide you in the right direction.

    /Jan

  • Sam 7 posts 27 karma points
    Dec 20, 2010 @ 05:49
    Sam
    0

    Here are the page properties.  The content is just hello world.  There is no error when I navigate to this page.  There is only a blank page.  When I view the source from my browser there is no html.  It is completely blank.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 20, 2010 @ 08:30
    Jan Skovgaard
    1

    Hi Sam

    Ok, so in you test template...have you created any html at all?

    /Jan

  • Sam 7 posts 27 karma points
    Dec 21, 2010 @ 06:26
    Sam
    0

    got it.  Thanks guys.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Dec 21, 2010 @ 10:00
    Jan Skovgaard
    0

    You're welcome.

    Don't hesitate to ask if you stumle up on something that does not make sense to you another time :-)

    Happy coding.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft