Thanks for reporting this. This is known issue. In order to import a module (in Firefox), the app has to be running via http:// .
The workaround when you write your own app, is to put all code in one py file for now, so it would work in both file:// and http:// (also both IE and FF).
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Kevin Chu
Sent: Tuesday, May 01, 2007 9:34 AM
To: Discussion of IronPython
Subject: [IronPython] bug in IronPython 2.0 with SilverLight in Firefox
I run Dynamic SilverLight sample "wordfind" in Firefox ,I get a error:
==================
Object reference not set to an instance of an object.
Source File: wordfind.py
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object..
Stack Trace:
at __name__ in wordfind.py, line 4
=================
but I run this sample in IE7 ,it's ok!
--
Once in a Redmoon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20070501/128f9f48/attachment.html>