473,503 Members | 8,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom component problem

Hi gang,

Not sure if this is the correct forum for this questions but here goes.

I have developed several custom web data components and built them into a
DLL. I reference the DLL in my VB.NET project, add a tab to the toolbar and
add the controls beneath the tab. This all works fine, and I can drag and
drop my controls on to the designer and all is good... until...

If I close the designer and try to reopen it, I get an error saying

"The file could not be loaded into the Web Forms designer. Please correct
the following error and then try loading it again:

Type Abstract

Make sure all of the classes used in the page are build or referenced in the
project."

If I click OK then the web form loads, but I can only look at the HTML, and
am unable to view the designer.

Can anyone shed any light on this problem??? I am stumped.

Cheers,

Chris
Jul 31 '05 #1
3 1299
The components you have added into the new ToolBox tab loose the
reference to the new Component DLL; their relations are not refreshed
when you rebuild the project which contains components. I had the same
problems. I gave up dragging dropping from the toolbar; now adding the
html code and references manually directly in the HTML view of the
pages. Don't forget to remove the tab that contains the custom
component items.

Good Luck..

Aug 1 '05 #2
Hi Dincer,

Thanks for the reponse... but what do I do to get this to work? Why am I
getting the error, and what do I need to change in the HTML to rectify it?

Is this a known bug that is being worked on? I cannot believe that you just
cannot create custom controls that cannot be toolboxed...

Appreciate the help, but I need to find a solution, at least to being able
to open the deisgner.
Aug 1 '05 #3
Ok, I have figured out the problem, but am no closer to understanding it...

In my project that has my custom controls, I have subclassed
System.Web.UI.Page and System.Web.UI.UserControl. I have made my two
subclasses MustInherit because I have a property that must be implemented in
any of their subclasses (MustOverride).

The MustInherit seems to be the culprit. If I remove that, and make the
property Overridable, then everything is fine.

Is there some sort of problem with setting something in this heirarchy to
MustInherit? Or is this a bug?

Cheers,

Chris
Aug 2 '05 #4

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

Similar topics

1
4063
by: T | last post by:
I have a web site i want to deploy using a VS.NEt set up project. I have no problems with that, that is fine and works no problem. But the web application uses a custom event log to log...
0
1538
by: ttupper | last post by:
I have made a custom control that has a property that is a custom component. When I put the custom control on a form in the designer, the propery is listed in the Properties window with a default...
1
2158
by: Ashok K Kumar | last post by:
Hi, I have a ATL Attributed DLL which exposes a COM Component. My requirement is, whenever, the DLL is registered, I also would like to add some entries to the HKLM/Softwares/CompanyName........
5
2132
by: ross kerr | last post by:
Hi All, I am extending the combobox to create a control that selects an item based on the text the user is typing into the text area of the control. I have an issue that occurs only when i...
2
2418
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can assign values to the class object properties just...
1
6297
by: Stu | last post by:
Hi, Im using vis studio 2003 and I think wse is out of the question as clients could be using java which doesnt support it. So I managed to find some code which allows you to develop a custom...
4
5795
by: ThunderMusic | last post by:
Hi, I have a custom form that works fine when I debug it or run it in release mode but cannot be loaded in the designer... Actually, it can be loaded in the designer when no control is on it, but...
0
1928
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
7
10888
by: Linda Liu[MSFT] | last post by:
Hi George, I have downloaded your sample solution and built it on my machine. I got a compilation error indicating that the type of "CustomResources" doesn't exist in the following xaml code: ...
1
4363
by: asharda | last post by:
I have a custom property grid. I am using custom property grid as I do not want the error messages that the propertygrid shows when abphabets are entered in interger fields. The custom property...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.