[IronPython] cannot access protected member GaugeContainer1 without a python subclass of default_aspx
Kurt A. Richardson
kurt at kurtrichardson.com
Wed Oct 20 20:54:22 CEST 2010
PPS As I went through commenting-out calls to page controls I found that
I can't evenset-up the DropDownList I have on the page, let alone the
Dundas ones.
One thing I noticed is that the page declaration:
<%@ Page Language="IronPython" Theme="MSH" EnableSessionState="true"
CodeFile="Default.aspx.py" %>
has a warning associated with the CodeFile:
The language of the file referenced by the 'CodeFile' attribute does not
match the language specified by the 'Language' attribute in the current
file.
On 10/20/2010 11:47 AM, Kurt A. Richardson wrote:
> PS I'm using IPY 2.7 Alpha 1 with VS2010 .NET 4.0
>
> On 10/20/2010 11:45 AM, Kurt A. Richardson wrote:
>> Hi List
>>
>> I have a (relatively) simple webpage that enables me to display some
>> basic data from my TED5000 energy monitor, as well as switch a fan on
>> and off in my offer utilizing an XBee network. I'm sure everything
>> worked just fine for months and now suddenly the project will not
>> compile.
>>
>> The Default.aspx webpage includes a Dundas GaugeContainer component
>> instantiated as:
>>
>> <DGWC:GaugeContainer ID="GaugeContainer1"
>> runat="server">...</DGWC:GaugeContainer>
>>
>> The Dundas Gauge assembly is referenced correctly:
>>
>> <%@ Register Assembly="DundasWebGauge"
>> Namespace="Dundas.Gauges.WebControl" TagPrefix="DGWC" %>
>>
>> The CodeFile (Default.aspx.py) contains some simple functions, but
>> the one that throws an error is part of the Page_Load function:
>>
>> def Page_Load(sender,e):
>> if not IsPostBack:
>> gauge = GaugeContainer1
>> gauge.Callback += GaugeContainer1_Callback
>>
>> The third line (gauge = GaugeContainer1) results in the following
>> parse error:
>>
>> *Parser Error Message: *cannot access protected member
>> GaugeContainer1 without a python subclass of default_aspx
>>
>> Any ideas what is causing this error?
>>
>> Many thanks in advance for any assistance you can offer.
>>
>> Kind regards, Kurt
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20101020/8401dc49/attachment.html>
More information about the Ironpython-users
mailing list