473,323 Members | 1,551 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

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.
Nov 18 '05 #1
3 3590
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.)

Nov 18 '05 #2
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 realnamespace 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 norights.)

.

Nov 18 '05 #3
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.)

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mark | last post by:
Hi all, i'm trying to serialize a class. Using the constructor of XmlSerializer i get these (odd?) errors: "File or assembly name goseij9w.dll, or one of its dependencies, was not found"....
7
by: hazz | last post by:
this is a repost with more concise code (well, for me) and better questions (I hope....) . given the following two classes, my intent is to use either Activator.CreateInstance or InvokeMember pass...
19
by: Martin Oddman | last post by:
Hi, I have a compiling problem. Please take a look at the code below. I have an application that is built upon three tiers: one data tier (Foo.DataManager), one business tier (Foo.Kernel) and...
45
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using...
6
by: Henry | last post by:
I was trying to derive a class from System.Windows.Forms.ComboBox. My goal was to create a class that loaded its own data. I did not want to create too many objects, so I tried to share a Database...
0
by: Harry F. Harrison | last post by:
Here's the situation...Context - Using an Inherited WebControl object as a base for server custom controls. In a web custom control, whenever I create a child control and add it to the Controls...
1
by: Jeremy Chapman | last post by:
I have a property will an array of webcontrols. The control features a custom property editor which can add and remove web controls to the array, but how do I persist the informtion by...
2
by: tadrichard | last post by:
Is there any way in ASP.Net (1.1) to force a parameterized constructor of an object from the server tag in the ASPX code? Alternatively, if there any way to force the IDE to render tag properties...
0
by: Alan Pretre | last post by:
Our application has received this exception. It is a Win32 service that runs 24/7. The app has been in the field at various sites for about 3 yrs and we have never seen this error until now. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.