Thanks for your quick response Madhattan,
I've got the problem and reproduced it on myside, it seems something
related to the "StyleSheetTheme" setting together with the custom control
prefix registring..... Currently I'm also not certain on the actual
cause, however, we can use the following things to make it work:
<pages styleSheetTheme="SimpleTheme" >
<controls >
<add tagPrefix="acu" namespace="AppCustomControls" assembly="App_Code" />
</controls>
</pages>
or
<pages styleSheetTheme="SimpleTheme" >
<controls >
<add tagPrefix="acu" namespace="AppCustomControls" assembly="__code" />
</controls>
</pages>
App_Code or __code can represent our asp.net 's dynamic compiled codes in
App_Code sub dir;....
Also, I'll forward this to our ASP.NET dev guys to see whether they've
addressed this problem or will have any action plan on this. I'll update
you as soon as I got any further info....
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: <madhattan@newsgroups.nospam>
| From: <madhattan@newsgroups.nospam>
| References: <OmNGdV$$FHA.292@TK2MSFTNGP14.phx.gbl>
<$#PBptGAGHA.3764@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: Error Rendering Control - ButtonSearch An unhandled
exception has occurred. There was an error parsing the theme: The
'assembly' attribute cannot be an empy string
| Date: Wed, 14 Dec 2005 09:57:46 -0600
| Lines: 158
| Organization: madhattan@newsgroups.nospam
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <ek77lcMAGHA.2036@TK2MSFTNGP14.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: umb53.oznet.ksu.edu 129.130.74.53
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:31779
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| Ok.
| 1) I created a new WebSite project.
|
| 2) Added a clean 'web.config'.
|
| 3) Added a new 'App_Code' folder.
|
| 4) Placed the 'MyServerControl.cs' in 'App_Code'
|
| 5) Placed the following in the 'web.config'
| <system.web>
| <pages>
| <controls>
| <add tagPrefix="myTag" namespace="my.WebControls" />
| </controls>
| </pages>
| ...
| <system.web>
|
| 6) Everything in design view worked great! No Problems! Yea!
|
| 7) In 'web.config' I added the 'styleSheetTheme' to the <pages> node:
| <system.web>
| <pages styleSheetTheme="Default">
| <controls>
| <add tagPrefix="myTag" namespace="my.WebControls" />
| </controls>
| </pages>
| ...
| <system.web>
|
| 6) The design time error: "Error Rendering Control..." came right back.
|
| I still want to globally specify both the styleSheetTheme and control
| tagPrefixes in the Web.Config. So the question becomes why do
| Microsoft controls the screw-up design-time rendering when both
| styleSheetTheme="Default" attribute and tagPrefix are used in a
web.config.
|
| Is there something that I am doing wrong or failing to consider?
|
| Thanks again!
|
|
|
|
[quoted text, click to view] | "Steven Cheng[MSFT]" <stcheng@online.microsoft.com> wrote in message
| news:$%23PBptGAGHA.3764@TK2MSFTNGXA02.phx.gbl...
| > Hi Madhattan,
| >
| > Welcome to ASPNET newsgroup.
| > From your description, you're using the
| > <system.web>
| > <pages styleSheetTheme="Default">
| > <controls>
| >
| > setting to register some custom webcontrol prefixes in ASP.NET 2.0 web
app
| > , however, you're getting the following error in design-time view:
| > ===========
| > "Error Rendering Control - ButtonSearch An unhandled exception has
| > occurred. There was an error parsing the theme: The 'assembly'
attribute
| > cannot be an empy string."
| > "Error Rendering Control - TextBoxSearch An unhandled exception has
| > occurred. There was an error parsing the theme: The 'assembly'
attribute
| > cannot be an empy string."
| >
| > ==============
| >
| > Based on my local test, for custom webserver control(not ascx
| > usercontrol),
| > we can just add the below configuration in <controls> setting:
| >
| > <add tagPrefix="acu" namespace="AppCustomControls" />
| > </controls>
| >
| > No "assemlby" attributre needed if the code is put in App_Code dir...
So
| > I think the problem is caused by something else. Also, you mentioned
that
| > the control and page can work correctly at runtime, yes? Would you try
| > creating a new custom control and test to see whether it also cause such
| > behavior or test through a new web applicaiton project? If still get
| > problem, you can provide a simplified reproduce control so that we can
| > also
| > perform some test on our side....
| >
| > Thanks,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure!
www.microsoft.com/security | > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| > --------------------
| > | Reply-To: <madhattan@newsgroups.nospam>
| > | From: <madhattan@newsgroups.nospam>
| > | Subject: Error Rendering Control - ButtonSearch An unhandled exception
| > has occurred. There was an error parsing the theme: The 'assembly'
| > attribute cannot be an empy string
| > | Date: Tue, 13 Dec 2005 08:56:12 -0600
| > | Lines: 32
| > | Organization: madhattan@newsgroups.nospam
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | Message-ID: <OmNGdV$$FHA.292@TK2MSFTNGP14.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | NNTP-Posting-Host: umb53.oznet.ksu.edu 129.130.74.53
| > | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.webcontrols:31742
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| > |
| > | I have written my own custom server control based on Web Control. I
| > placed
| > | the .cs file in the App_Code Folder.
| > |
| > | When I add the following tag prefix to my web.config I start seeing
this
| > | error (Design Time):
| > |
| > | "Error Rendering Control - ButtonSearch An unhandled exception has
| > | occurred. There was an error parsing the theme: The 'assembly'
| > attribute