Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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.
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
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.
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.
is working on a reply...