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

Form Inheritance: Specified Cast Is Not Valid?

I have the above problem with an inherited form, which was working
previously.

I have a base form, frmBase which is inherited by my user forms. When I try
to 'design' either frmBase or a user form, I get either the 'Specified Cast
Is Not Valid' error, or the 'Ambiguous Match' error.

Both of these are driving me crazy, as it was working previously.

I have created a sample demonstrating this:
http://www.j.goodman.dsl.pipex.com/F...nceExample.zip
I am wondering if it is the setup on my laptop causing the problem (WinXP
Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can begin
to guess might be causing a problem, but I dont know where or how.
Can you replicate this error with my sample?
Any further suggestions?

--
Cheers,

James Goodman
Nov 21 '05 #1
5 1189
Are you using the CompactFramework?
Does this apply to you?
http://tinyurl.com/6bklz

Imran.

"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
I have the above problem with an inherited form, which was working
previously.

I have a base form, frmBase which is inherited by my user forms. When I try to 'design' either frmBase or a user form, I get either the 'Specified Cast Is Not Valid' error, or the 'Ambiguous Match' error.

Both of these are driving me crazy, as it was working previously.

I have created a sample demonstrating this:
http://www.j.goodman.dsl.pipex.com/F...nceExample.zip
I am wondering if it is the setup on my laptop causing the problem (WinXP
Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can begin to guess might be causing a problem, but I dont know where or how.
Can you replicate this error with my sample?
Any further suggestions?

--
Cheers,

James Goodman

Nov 21 '05 #2
Cannot get the link to work.

Can you post its content here?

--
Cheers,

James Goodman
"Imran Koradia" <no****@microsoft.com> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
Are you using the CompactFramework?
Does this apply to you?
http://tinyurl.com/6bklz

Imran.

"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
I have the above problem with an inherited form, which was working
previously.

I have a base form, frmBase which is inherited by my user forms. When I

try
to 'design' either frmBase or a user form, I get either the 'Specified

Cast
Is Not Valid' error, or the 'Ambiguous Match' error.

Both of these are driving me crazy, as it was working previously.

I have created a sample demonstrating this:
http://www.j.goodman.dsl.pipex.com/F...nceExample.zip
I am wondering if it is the setup on my laptop causing the problem (WinXP
Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can

begin
to guess might be causing a problem, but I dont know where or how.
Can you replicate this error with my sample?
Any further suggestions?

--
Cheers,

James Goodman


Nov 21 '05 #3
Basically, visual inheritance is not supported in the compact framework if
thats what you are using. Here's the original link:
http://groups.google.com/groups?thre...%40tkmsftngp05

If that doesn't resolve for you either, then goto groups.google.com and type
in "visual inheritance cf" and look at the thread that has 18 articles and
is dated June 10th, 2002. In one of the messages, someone mentions a work
around for this.

hope that helps...
Imran.

"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Cannot get the link to work.

Can you post its content here?

--
Cheers,

James Goodman
"Imran Koradia" <no****@microsoft.com> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
Are you using the CompactFramework?
Does this apply to you?
http://tinyurl.com/6bklz

Imran.

"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
I have the above problem with an inherited form, which was working
previously.

I have a base form, frmBase which is inherited by my user forms. When I

try
to 'design' either frmBase or a user form, I get either the 'Specified

Cast
Is Not Valid' error, or the 'Ambiguous Match' error.

Both of these are driving me crazy, as it was working previously.

I have created a sample demonstrating this:
http://www.j.goodman.dsl.pipex.com/F...nceExample.zip
I am wondering if it is the setup on my laptop causing the problem (WinXP Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can

begin
to guess might be causing a problem, but I dont know where or how.
Can you replicate this error with my sample?
Any further suggestions?

--
Cheers,

James Goodman



Nov 21 '05 #4
Thanks for that.

Makes interesting reading, but I dont understand how it was working
perfectly on my CF application a few weeks ago, & isnt anymore.

It is VS.NET 2003, not the 2002 version. Not sure if visual design is
supported in 2003?

--
Cheers,

James Goodman
"Imran Koradia" <no****@microsoft.com> wrote in message
news:Os**************@TK2MSFTNGP10.phx.gbl...
Basically, visual inheritance is not supported in the compact framework if
thats what you are using. Here's the original link:
http://groups.google.com/groups?thre...%40tkmsftngp05

If that doesn't resolve for you either, then goto groups.google.com and
type
in "visual inheritance cf" and look at the thread that has 18 articles and
is dated June 10th, 2002. In one of the messages, someone mentions a work
around for this.

hope that helps...
Imran.

"James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Cannot get the link to work.

Can you post its content here?

--
Cheers,

James Goodman
"Imran Koradia" <no****@microsoft.com> wrote in message
news:u1**************@TK2MSFTNGP11.phx.gbl...
> Are you using the CompactFramework?
> Does this apply to you?
> http://tinyurl.com/6bklz
>
> Imran.
>
> "James" <jamesATnorton-associates.co.ukREMOVE> wrote in message
> news:un**************@TK2MSFTNGP15.phx.gbl...
>> I have the above problem with an inherited form, which was working
>> previously.
>>
>> I have a base form, frmBase which is inherited by my user forms. When
>> I
> try
>> to 'design' either frmBase or a user form, I get either the 'Specified
> Cast
>> Is Not Valid' error, or the 'Ambiguous Match' error.
>>
>> Both of these are driving me crazy, as it was working previously.
>>
>> I have created a sample demonstrating this:
>> http://www.j.goodman.dsl.pipex.com/F...nceExample.zip
>>
>>
>> I am wondering if it is the setup on my laptop causing the problem (WinXP >> Pro, SP2 with .NET Framework 1.1 SP1). These are the only things I can
> begin
>> to guess might be causing a problem, but I dont know where or how.
>>
>>
>> Can you replicate this error with my sample?
>> Any further suggestions?
>>
>> --
>> Cheers,
>>
>> James Goodman
>>
>>
>
>



Nov 21 '05 #5
> Makes interesting reading, but I dont understand how it was working
perfectly on my CF application a few weeks ago, & isnt anymore.
I'm afraid I do not know the answer to that since I'm not too familiar with
the compact framework.
It is VS.NET 2003, not the 2002 version. Not sure if visual design is
supported in 2003?


I believe visual inheritance is still not supported in VS 2003 (I think this
issue is well documented but can't find the link right now).
Imran.
Nov 21 '05 #6

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

Similar topics

5
by: James | last post by:
I have the above problem with an inherited form, which was working previously. I have a base form, frmBase which is inherited by my user forms. When I try to 'design' either frmBase or a user...
4
by: Tyro | last post by:
Can someone shed some light on my error here? Thanks! Specified cast is not valid. Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Stack Trace:
3
by: PK9 | last post by:
I am looking for assistance in pinpointing the cause of the following exception. I am getting a "Specified Cast is not valid" exception on my page. I am trying to populate a datagrid. One of my...
3
by: VB Programmer | last post by:
I am setting up forms authentication. In my code I keep getting this error. Any ideas? Error.... Server Error in '/LandOLots' Application....
0
by: QA | last post by:
I am using a Business Scorecard Accelarator in a Sharepoint Portal 2003 using SQL Server 2005 I am getting the following error: Error,5/7/2005 10:50:14 AM,580,AUE1\Administrator,"Specified cast is...
0
by: Alan Z. Scharf | last post by:
this question in datagrid group for several days with no repsonse. I'm hoping for an answer her because of greater activity in this group. No cross-posting intended. Thanks....
2
by: Kashiefah | last post by:
Hi, I keep on receiving this error when I click on the edit email link from the datagrid:Specified cast is not valid. Description: An unhandled exception occurred during the execution of the...
0
by: erik.erikson | last post by:
I am getting a compiler error that I can't well explain or even understand the origin of (though I boiled it down close...). Below is a bare-bones example. What I am doing is defining the...
3
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
I'm attempting to use LINQ to insert a record into a child table and I'm receiving a "Specified cast is not valid" error that has something to do w/ the keys involved. The stack trace is: ...
2
by: vinrin | last post by:
Thank for your answer. :-) call CheckEmptyNode (treeview) public void CheckEmptyNode( Object N ) { Microsoft.Web.UI.WebControls.TreeNode menuNode = null; ...
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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...
0
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...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.