Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Constructor on type System......WebControl not found

Reply
Thread Tools

Constructor on type System......WebControl not found

 
 
Mike Owen
Guest
Posts: n/a
 
      12-01-2003
I have just tried to open a the
file "Controls/CreateEditPost.cs" from within Visual
Studio .Net, and the error message:
'An error occurred while loading the document. Fix the
error, and then try loading the document again. The
error message follows: An exception occurred while trying
to create an instan of
System.Web.UI.WebControls.WebControl. The exception
was "Constructor type
System.Web.UI.WebControls.WebControl not found" '

This file is used in the Forums Starter Kit, and I have
not changed it.

Any idea what the problem can be?

As an aside I searched for and found the
file 'webcontrol.cs' on my development PC, but when I
load it into Visual Studio to have a look at it, the '[!'
characters in the line:
'namespace [!output SAFE_NAMESPACE_NAME]' are underlined
with the Build Error 'Identifier expected' shown - Is
this causing a problem?


Thanks, Mike.
 
Reply With Quote
 
 
 
 
MSFT
Guest
Posts: n/a
 
      12-02-2003
Hi Mike,

You need to replace the string [!output SAFE_NAMESPACE_NAME] with a real
namespace name like:

MyNameSpace

You may try this to see if the error will be removed.

Luke
Microsoft Online Support

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

 
Reply With Quote
 
 
 
 
Mike Owen
Guest
Posts: n/a
 
      12-02-2003
I changed the namespace and it makes no difference - On
closer inspection, this file is in a Folder called
VC#Wizards, and looking at the
System.Web.UI.WebControls.WebControl class, this looks
nothing like it!

I will email you the code that is causing the problem.
It is as it is supplied with the Forums Starter kit.

It seems like it might be a problem with the .Net base
code, and I might need to upgrade the version of .Net
that I have on my development PC? - What do you think?


Thanks, Mike.


>-----Original Message-----
>Hi Mike,
>
>You need to replace the string [!output

SAFE_NAMESPACE_NAME] with a real
>namespace name like:
>
>MyNameSpace
>
>You may try this to see if the error will be removed.
>
>Luke
>Microsoft Online Support
>
>Get Secure! www.microsoft.com/security
>(This posting is provided "AS IS", with no warranties,

and confers no
>rights.)
>
>.
>

 
Reply With Quote
 
MSFT
Guest
Posts: n/a
 
      12-02-2003
Hi Mike,

To ensure if the problem was related to the enviroment on your computer,
you can try to create web controls library project with VS.NET. Can you
done this?

Additionally, this problem may also related to the installation and
configration of the Forums Starter Kit.

Luke
Microsoft Online Support

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A constructor calling another constructor (default constructor)? Generic Usenet Account C++ 10 11-28-2007 04:12 AM
Map of Parent Type and calling child type copy constructor (try two) Brandt Dusthimer C++ 2 07-12-2006 08:35 PM
Map of Parent Type and calling child type copy constructor Brandt Dusthimer C++ 4 07-12-2006 08:19 PM
Newbie: constructor of the base class not being found? A. Farber C++ 2 02-26-2004 12:33 PM
why it's not possible calling constructor from constructor? Giulio C++ 9 06-25-2003 03:56 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57