Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > AddNamedItem throws exception

Thread Tools

AddNamedItem throws exception

David Manns
Posts: n/a
We have a scripting engine interface in our application. This works
fine for loading/calling VBscript and Javascript scripting engines,
but PythonScript fails. Specifically, it fails at :
m_pAxsScript->AddNamedItem("application", SCRIPTITEM_NAMEDITEM)
where m_pAxsScript is the IActiveScript interface acquired through
CoCreateInstance. The exception returned is:
which to my mind implies some kind of 'access denied' error. We are
using Python 2.7.2 and Pywin32 2.7 on a Windows 7 32-bit system. We
have this problem here on a test machine that was set up to match that
in use at one of our customers who is now stuck being unable to run
his scripts.

Any clues or suggestions would be gratefully received.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
When MailMessage.BodyFormat = MailFormat.Html, SmtpMail.Send throws exception Aren Cambre ASP .Net 5 01-09-2009 07:20 PM
Is an exception specification needed if the method throws and catchesits own exception? C++ 2 11-27-2007 04:01 AM
Re: session.abandon throws 'invalid view state' exception in netscape Cowboy \(Gregory A. Beamer\) ASP .Net 1 05-16-2004 02:31 AM
Exception Exception is not compatible with throws clause in Chris Miller Java 4 11-22-2003 03:11 PM
XmlValidatingReader throws exception for SAOP-ENV:encodingStyle attribute Himmat Dhange ASP .Net 0 08-26-2003 08:28 PM