Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Constructor on type System......WebControl not found (http://www.velocityreviews.com/forums/t67875-constructor-on-type-system-webcontrol-not-found.html)

Mike Owen 12-01-2003 12:57 PM

Constructor on type System......WebControl not found
 
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.

MSFT 12-02-2003 01:22 AM

RE: Constructor on type System......WebControl not found
 
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.)


Mike Owen 12-02-2003 08:37 AM

RE: Constructor on type System......WebControl not found
 
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.)
>
>.
>


MSFT 12-02-2003 11:00 AM

RE: Constructor on type System......WebControl not found
 
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.)



All times are GMT. The time now is 11:01 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.