473,324 Members | 2,246 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,324 software developers and data experts.

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 1293
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
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
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
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
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
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
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
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
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
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
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
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.