Copied to clipboard

Flag this post as spam?

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


  • Billy Koch 12 posts 33 karma points
    Jun 13, 2012 @ 20:41
    Billy Koch
    0

    Webmatrix Beta and Umbraco - Cant see webpage?

    I can usually install Umbraco pretty easily on the remote server.  But I wanted to install it locally so I can tinker and play with it abit.  But everytime I do - I tend to get an error when doing a preview of the website.  (I can get to the back end with no problems)   

    This is the error I am getting - 

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) +13
       umbraco.macro..ctor(String alias) +164
       umbraco.presentation.templateControls.Macro.CreateChildControls() +1285
       System.Web.UI.Control.EnsureChildControls() +102
       umbraco.presentation.templateControls.Macro.OnInit(EventArgs e) +34
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
    

    I also see this on the error code as well -
    nhandled Execution Error
    Object reference not set to an instance of an object.
      at umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m)
      at umbraco.macro..ctor(String alias)
      at umbraco.presentation.templateControls.Macro.CreateChildControls()
      at System.Web.UI.Control.EnsureChildControls()
      at umbraco.presentation.templateControls.Macro.OnInit(EventArgs e)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)0.08263167957624030.009407
  • Mark Bennett 199 posts 375 karma points
    Jun 17, 2012 @ 21:36
    Mark Bennett
    0

    Billy,

    So you are saying that you can login to the Umbraco system and create pages / folders etc setup templates / scripts etc but when you try to look at a published page you can't view it?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 17, 2012 @ 22:06
    Jan Skovgaard
    0

    @Billy

    I'm also in doubt about wether you're simply trying to do a clean installation on your local machine or if you're trying to copy the site from your server to your local machine?

    Please describe your steps in a more clean fashion so it's easier to point you in the right direction :)

    /Jan

  • Billy Koch 12 posts 33 karma points
    Jun 22, 2012 @ 20:37
    Billy Koch
    0

    Thanks for your responses.  I got back to working on it again.  Apparently for some reason when you install the Starter Kit then it gives out the mumbo jumbo errors.  So when I uninstalled it then it worked just fine and had no issues at all. 

    I did the install - with Webmatrix 2 (I moved up to RC now no longer beta) so did an install, then chose the CE version of the DB.  Once I got through the install with no issues then picked Starter Pack - the Simple Starter Pack then picked the Green Theme.    So I can get into the back office no issue.  I click on Preview your site.  then I get the error I have above.  So I then went and uninstalled the Green Theme and then Previewed and still got the error.  So I uninstalled the Simple Site and then did a preview then got a blank screen and no error.  So I created a new Document and created a simple one line This is a test and I was able to see it.  

    So I guess Webmatrix doesnt play nice with the Simple Starter Kit?  :(

     

Please Sign in or register to post replies

Write your reply to:

Draft