Copied to clipboard

Flag this post as spam?

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


  • Yordan Pavlov 1 post 21 karma points
    Sep 03, 2009 @ 07:08
    Yordan Pavlov
    0

    Object reference exception with python on new install

    Hi all,

    I am having trouble using python with Umbraco latest ( 4.0.2.1)

    I have a very simple python script:

    print "Hello"

    But when I try to include it thrugh a macro in a page I get the following exception:

    Object reference not set to an instance of an object.
    at umbraco.macro.loadMacroPython(macro macro, Hashtable attributes, Hashtable pageElements)

    The OS is Windows 7, I used the web platform installer to install umbraco and all dependencies. Umbraco is installed in the IIS root as recommended.

  • Simon Timms 16 posts 36 karma points
    Oct 02, 2009 @ 23:23
    Simon Timms
    0

    I am having the same issue.  Interestingly it doesn't happen if I append .aspx to the name of the page. 

    Doesn't work

    http://enformweb01/contact/CalgaryCampus

    Works

    http://enformweb01/contact/CalgaryCampus.aspx

     

    I might look into it some more tonight. 

  • Simon Timms 16 posts 36 karma points
    Oct 05, 2009 @ 22:35
    Simon Timms
    0

    I found this only to be a problem on my production web server (of course).  Drilling into it more it seemed that the routing which allowed for http://enformweb01/contact/CalgaryCampus to function at all was missing dealing with the Session setting it to null in the code.  Once I knew that I found http://stackoverflow.com/questions/218057/httpcontext-current-session-is-null-when-routing-requests which referenced a possible solution.  I applied that and everything started working as it should. 

Please Sign in or register to post replies

Write your reply to:

Draft