473,395 Members | 1,624 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,395 software developers and data experts.

System.NotSupportedException

Hi,

I've been working on a C# Compact Framwork project for quiet some time
now and suddenly run into a problem that when I add a Control to a Form,
i.e. a TextBox or a Button, I get a System.NotSupportedException in the
InitializeComponent() section of the Form. I can compile the Solution,
without any problems, but when I run the application the Exception is
thrown.
However, if I remove another Component from the Form the application
runs perfect.

Any help/suggestions is appreciated.

BR
/Joakim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
4 7204
Joakim:

Is it simply the addition of the Textbox without referencing anything else
that's doing it? There's definitely a LOT of stuff that's supported in the
full framework that's not supported in the CF.

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Joakim Englund" <jo************@intress.se> wrote in message
news:OY*************@TK2MSFTNGP09.phx.gbl...
Hi,

I've been working on a C# Compact Framwork project for quiet some time
now and suddenly run into a problem that when I add a Control to a Form,
i.e. a TextBox or a Button, I get a System.NotSupportedException in the
InitializeComponent() section of the Form. I can compile the Solution,
without any problems, but when I run the application the Exception is
thrown.
However, if I remove another Component from the Form the application
runs perfect.

Any help/suggestions is appreciated.

BR
/Joakim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2
Yes, the only thing I'm doing at the moment is using drag and drop to
add a Button in Visual Studio, and then compile the code. Then I get the
Exception when starting debugging or running the app. The app runs
perect if I first remove another Component before adding the new Button.
BR
/Joakim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
The only time I've seen this is because there's a problem with the install.
However I'm guessing you have other textboxes/buttons that aren't causing
the problem? Is it only those two controls or can you add different
controls without a problem?

--
W.G. Ryan, MVP

www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Joakim Englund" <jo************@intress.se> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
Yes, the only thing I'm doing at the moment is using drag and drop to
add a Button in Visual Studio, and then compile the code. Then I get the
Exception when starting debugging or running the app. The app runs
perect if I first remove another Component before adding the new Button.
BR
/Joakim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4
Yes, I have lots of other Components, including TextBoxes, Labels,
TabPages, TabControls, DataGrids, DataGridTableStyles,
DataGridTextBoxColumns, MainMenu, MenuItems, Panels and ComboBoxes, and
it seems like I have reached some point where I can't use any more
components during runtime?
There are 185+ Controls in the Form, do you know if there is an upper
limit of number of Controls on a Form in Compact Framework?

BR
/Joakim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5

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

Similar topics

0
by: Norm Dotti | last post by:
I'm running an app through auto-deployment ( ex. http://localhost/SampleSolution/SampleProjMain/bin/Main.exe ). I'd like to display a list of loaded assemblies, so I'm stepping through an array of...
3
by: MJB | last post by:
I'm getting an IStream back from function xmlHttp.responsestream. I would like to convert this to a System.IO.Stream in order to work with it in my application. Has anyone encountered this and...
1
by: stone1977 | last post by:
In my code I call following procedure. I use the Compact Framework. string path= System.IO.Directory.GetCurrentDirectory(); I get an expcepiton: 'System.NotSupportedException' occurred in...
0
by: Meetali Goel | last post by:
Hi all, I can't determine why I keep getting "NotSupportedException" when g.MeasureString() is called in the following code (.NET CE). I have spent several hours but I cant seem to find the...
0
by: rein.petersen | last post by:
Hi All, I've been struggling for a way to retrieve custom attributes I have set (SetCustomAttributes) on a class through a TypeBuilder but can't seem to get around : "NotSupportedException -...
2
by: BrentonMCA | last post by:
I am trying to create a webrequest using the create method with a URL (string or system.uri) with the prefix "http://". A "system.notsupportedexception" is raised, even though documentation tells...
0
by: fero | last post by:
Hello, I have the following problem. I have a page which works fine. But sometimes I see the following error in error log: -- Message: System.Web.HttpUnhandledException: Exception of type...
2
by: purnimakarnati | last post by:
When I added a textbox and assigned the value to the textbox and added to htmltablecell while debugging I am able to see the correct assigned value but if I see the contents in the HTMLTABLE in...
3
by: wingsganesh | last post by:
Hi buddys, I have the followinf Bug......... when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon" for the following designer code.... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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...

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.