Atlas error...

  • Thread starter Thread starter Brad Coble
  • Start date Start date
B

Brad Coble

"An instance of 'Microsoft.Web.UI.DummyHtmlTextWriter' could not be used as
an HtmlTextWriter. Make sure the specified class can be instantiated,
extends System.Web.UI.HtmlTextWriter, and implements a constructor with a
single parameter of type System.IO.TextWriter."

I am just doing a simple test. I have a textbox, label and button inside an
update panel. When i click the button, what is in the textbox gets displayed
in the label. What is strange is that it works a time or two or three or
more and then just quits with the above errormessage.

Anyone have any ideas?



Thanks!

Brad
 
Hi Brad,

Thank you for posting.

From your description, you're encountering some error when using some
certain WebControls in the ASP.NET web page. As the subject mentioned
"Atlas", are you using the ASP.NET Atalas control toolkit? Currently it is
still under beta preview, not sure which version are you using in the page.
Would you provide any further information on the page and control logic?

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Sure, and thanks!

<atlas:ScriptManager ID="sm1" runat="server" EnablePartialRendering="true"
OnPageError="sm1_PageError" EnableScriptComponents="true">

</atlas:ScriptManager>

<controls:header ID="Header1" runat="server" Page_Title="C2 Mx Work Order">

</controls:header>

<div id="page_container">

<atlas:UpdatePanel ID="up1" runat="server">

<ContentTemplate>

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">

<asp:View ID="View1" runat="server">

<asp:TextBox ID="Textbox3" runat="server" TabIndex="1"
AutoPostBack="false"></asp:TextBox><br />

<asp:Button ID="SaveButton" runat="server" OnClick="Submit1_ServerClick"
Text=" Ok " /><br />

<asp:Label ID="Label1" runat="server" Text=""></asp:Label><br />

</asp:View>

<asp:View ID="View2" runat="server"></asp:View>

</asp:MultiView>

</ContentTemplate>

<Triggers>

<atlas:ControlEventTrigger ControlID="SaveButton" EventName="Click" />

</Triggers>

</atlas:UpdatePanel>

</div>

<controls:footer ID="Footer1" runat="server">

</controls:footer>



and for the code behind...



protected void Submit1_ServerClick(object sender, EventArgs e)

{

Label1.Text = Textbox3.Text;

}

protected void sm1_PageError(object sender,
Microsoft.Web.UI.PageErrorEventArgs e)

{

throw new Exception(e.ErrorMessage);

}
 
Thanks for your response Brad,

I've just setup an ATLAS environment and performed some tests on the page
code you provided. It seems that the test page dosn't utilize any ATLAS
specific client-scripts , correct? Also, in my local test appliation, it
seems the page always function correctly without any unexpected exception.
I think this is likely an environment specific issue. As for the
"Microsoft.Web.UI.DummyHtmlTextWriter", it is just as its name indicates,
doesn't provide any actual functionality , I'm not sure why the runtime
will instance it in your application. Anyway, have you tried creating a new
ATLAS project or test the same thing on other page to see whether it also
suffers this issue?

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
I just tried it on another server and it works fine. The server with the
problem is using windows for authentication while the other is using forms.
It is also behind a company firewall. Otherwise the two machines are
identical.

If I use a support incedant, would they be able to help?

Thanks!

Brad
 
Ok, think I have found it, I "thought" both machines were identical, well at
least the parts that matter. I was using Output cache in the header control
on the machine that didnt work. When i added it to my good machine, it broke
it. Might want to pass this on to the atlas team. I believe i can reproduce
it if they want the code.

Brad
 
Thanks for your response Brad,

The output cache you mentioned is a possible cause since when using cache,
the ASP.NET runtime won't use actual HtmlWriter to render content(but
retrieved from cache). Anyway, you can try submiting this issue request in
the msdn produce feedback center:

http://lab.msdn.microsoft.com/productfeedback/default.aspx

You can also post this info in the www.asp.net's forum since there are some
ASP.NET dev team's engineers who will timely monitor there.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top