HighTechTalks DotNet Forums  

"The type has no constructors defined"?

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss "The type has no constructors defined"? in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dave
 
Posts: n/a

Default "The type has no constructors defined"? - 10-26-2007 , 11:00 AM






I'm trying to inherit from the following in my class, but I get:

The type 'System.Web.Services.Protocols.WebClientAsyncResul t' has no
constructors defined

Not sure exactly what this means? Does it mean the class cannot be
inherited?. Dave.

Reply With Quote
  #2  
Old   
Teemu Keiski
 
Posts: n/a

Default Re: "The type has no constructors defined"? - 10-28-2007 , 02:30 AM






In a way yes, because it doesn't have public or protected constructor, only
an internal one- E.g it means that only Framework code itself can
instantiate this class. HttpSimpleClientProtocol class is one that
instantiates this type in BeginInvoke method.


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net




"Dave" <Dave (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm trying to inherit from the following in my class, but I get:

The type 'System.Web.Services.Protocols.WebClientAsyncResul t' has no
constructors defined

Not sure exactly what this means? Does it mean the class cannot be
inherited?. Dave.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.