Re: Problems with Re-Usable ASP.NET User Control Libraries

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks for your further followup.

Yes, I can see that when the imported precompiled controls' count increase,
the warnings will become a pain. However, this is somewhat the limitation
of such programming model. Since the new ASP.NET 2.0's precompiled model
provide the functionality to let dynamic page class precompiled, and let us
reuse existing compiled pages and usercontrols conveniently, but it'll also
cause some negative behaviors. Sometimes it's hard to make it complete
perfect.

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.)
--------------------
| From: "Stephen Woolhead" <gtl@xxxxxxxxxxxxx>
| References: <##1dyKF6FHA.744@xxxxxxxxxxxxxxxxxxxx>
<b8743b114a0988c7b642d4be61ec@xxxxxxxxxxxxxxxxxxxx>
<OT$78WH6FHA.1416@xxxxxxxxxxxxxxxxxxxx>
<gYWP27M6FHA.1240@xxxxxxxxxxxxxxxxxxxxx>
<#ZK#6aR6FHA.476@xxxxxxxxxxxxxxxxxxxx>
<#bkicjT6FHA.632@xxxxxxxxxxxxxxxxxxxx>
<lOKwQdf6FHA.4088@xxxxxxxxxxxxxxxxxxxxx>
<UYHmdj46FHA.3484@xxxxxxxxxxxxxxxxxxxxx>
| Subject: Re: Problems with Re-Usable ASP.NET User Control Libraries
| Date: Fri, 18 Nov 2005 09:39:33 -0000
| Lines: 142
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| X-RFC2646: Format=Flowed; Original
| Message-ID: <ucX$8PC7FHA.736@xxxxxxxxxxxxxxxxxxxx>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: no-dns-yet.demon.co.uk 195.11.66.130
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:31197
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
| I understand what's happing and why. It isn't causing me a problem, my
| project seems to be working.
|
| My problem with this is that it is a messy solution, now that I have
| converted all my control libraries I have hundreds of warnings that I'll
| never be able to get rid off that are obscuring other warnings that may
be
| of use to me.
|
| Stephen
|
| "Steven Cheng[MSFT]" <stcheng@xxxxxxxxxxxxxxxxxxxx> wrote in message
| news:UYHmdj46FHA.3484@xxxxxxxxxxxxxxxxxxxxxxxx
| > Hi Stephen,
| >
| > How are you doing on this issue, does my last reply helps you understand
| > this a little further? If there're anything else we can help, please
feel
| > free to post here. Thanks,
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| > --------------------
| > | X-Tomcat-ID: 324474533
| > | References: <##1dyKF6FHA.744@xxxxxxxxxxxxxxxxxxxx>
| > <b8743b114a0988c7b642d4be61ec@xxxxxxxxxxxxxxxxxxxx>
| > <OT$78WH6FHA.1416@xxxxxxxxxxxxxxxxxxxx>
| > <gYWP27M6FHA.1240@xxxxxxxxxxxxxxxxxxxxx>
| > <#ZK#6aR6FHA.476@xxxxxxxxxxxxxxxxxxxx>
| > <#bkicjT6FHA.632@xxxxxxxxxxxxxxxxxxxx>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Tue, 15 Nov 2005 15:14:39 GMT
| > | Subject: Re: Problems with Re-Usable ASP.NET User Control Libraries
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | Message-ID: <lOKwQdf6FHA.4088@xxxxxxxxxxxxxxxxxxxxx>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | Lines: 78
| > | Path: TK2MSFTNGXA02.phx.gbl
| > | Xref: TK2MSFTNGXA02.phx.gbl
| > microsoft.public.dotnet.framework.aspnet.webcontrols:31147
| > | NNTP-Posting-Host: tomcatimport2.phx.gbl 10.201.218.182
| > |
| > | Hi Stephen,
| > |
| > | After some further research, I've got the actual reason of the two
| > | properites "Profile" and "ApplicationInstance". They're two properties
| > | which related to ASP.NET web pages and usercontrol's compilation
model.
| > | Since the PublishSite generated assemblies are the same as those
| > generated
| > | by asp.net runtime (under temporarly folder...), those page and
| > | usercontrol's concrete classes will have some additional properties
| > (which
| > | we doesn't define in our codebehind ...) . For example:
| > |
| > | the "Profile" Property is used to access the default Profile Provider
| > for
| > | this application, and "ApplicationInstance" is used for accesssing the
| > | current Request's associated ApplicationInstance object...
| > |
| > | And as for the warning, it is because when the first time our reusable
| > page
| > | or usercontrol is added into another website project, and when use
| > "build"
| > | menu to build the website, VS.NET IDE will also try to generate
another
| > | page class which inherit from that page/usercontrol's precompiled
| > assembly
| > | (like App_Web_u02dnptq.dll), and since this class will also define a
| > | "Profile or ApplicationInstance" property, we'll get that
| > warning.....(some
| > | what like a duplicated derived class...)
| > |
| > | In addition, I think we can just ignore this warning, because when we
| > | publish our MainSite (which reuse those pages or controls), the
| > precompiled
| > | assemblies won't really generate a duplicated derived class, still
| > | reference the orginally generated precompiled assembly. I've performed
| > some
| > | tests on myside to verify this.
| > |
| > | Hope helps. 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.)
| > |
| > |
| > |
| > | --------------------
| > | | From: "Stephen Woolhead" <gtl@xxxxxxxxxxxxx>
| > | | References: <##1dyKF6FHA.744@xxxxxxxxxxxxxxxxxxxx>
| > | <b8743b114a0988c7b642d4be61ec@xxxxxxxxxxxxxxxxxxxx>
| > | <OT$78WH6FHA.1416@xxxxxxxxxxxxxxxxxxxx>
| > | <gYWP27M6FHA.1240@xxxxxxxxxxxxxxxxxxxxx>
| > | <#ZK#6aR6FHA.476@xxxxxxxxxxxxxxxxxxxx>
| > | | Subject: Re: Problems with Re-Usable ASP.NET User Control Libraries
| > | | Date: Mon, 14 Nov 2005 16:31:25 -0000
| > | | Lines: 14
| > | | X-Priority: 3
| > | | X-MSMail-Priority: Normal
| > | | X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
| > | | X-RFC2646: Format=Flowed; Response
| > | | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
| > | | Message-ID: <#bkicjT6FHA.632@xxxxxxxxxxxxxxxxxxxx>
| > | | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | | NNTP-Posting-Host: no-dns-yet.demon.co.uk 195.11.66.130
| > | | Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| > | | Xref: TK2MSFTNGXA02.phx.gbl
| > | microsoft.public.dotnet.framework.aspnet.webcontrols:31136
| > | | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | |
| > | |
| > | | "Stephen Woolhead" <gtl@xxxxxxxxxxxxx> wrote in message
| > | | news:%23ZK%236aR6FHA.476@xxxxxxxxxxxxxxxxxxxxxxx
| > | | >
| > | | > This project shows the warnings.
| > | | >
| > | |
| > | | Opps, missed out the link...
| > | |
| > | | http://www.perfectphase.com/store/hidding.zip
| > | |
| > | | Stephen.
| > | |
| > | |
| > | |
| > |
| > |
| >
|
|
|

.


Quantcast