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

"One or more errors encountered while loading the designer" is making me suicidal! :(

This BUG that is so ridiculous I can't believe they shipped 05 is making my
life hell. I have tried the various solutions found on the web and none of
them have worked thus far. What's even more troublesome is that it appears
that 05 uses these new partial classes which would makes rolling back to 03
not possible.

The error I get when trying to load my Form in the designer is as follows:
----------------------------------------------------------------------------------------------
One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Object reference not set to an instance of an object.

at PMD.FirmwareEditor.UIContextControls.UC_ContextCon figuration..ctor() in
C:\PMDRepository\Tools\DQ_Tools\FirmwareEditor\tru nk\UIContextControls\UC_ContextConfiguration.cs:li ne
142
----------------------------------------------------------------------------------------------

Now I don't see any problems with the code indicated in the above error. I
have no idea why this is happening or how to fix it. I really hope that
someone has solved this or knows of a workaround. :(


Jan 22 '06 #1
3 10262
Sounds like something may be going wrong when the designer is attempting to
create an instance of the UC_ContextConfiguration control. Have you gone
through the constructor for the UC_ContextConfiguration class to see if
something might be causing an exception?

--
Tim Wilson
..NET Compact Framework MVP

"sklett" <as**@fkd.com> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
This BUG that is so ridiculous I can't believe they shipped 05 is making my life hell. I have tried the various solutions found on the web and none of them have worked thus far. What's even more troublesome is that it appears that 05 uses these new partial classes which would makes rolling back to 03 not possible.

The error I get when trying to load my Form in the designer is as follows:
-------------------------------------------------------------------------- -------------------- One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Object reference not set to an instance of an object.

at PMD.FirmwareEditor.UIContextControls.UC_ContextCon figuration..ctor() in
C:\PMDRepository\Tools\DQ_Tools\FirmwareEditor\tru nk\UIContextControls\UC_Co
ntextConfiguration.cs:line 142
-------------------------------------------------------------------------- --------------------
Now I don't see any problems with the code indicated in the above error. I have no idea why this is happening or how to fix it. I really hope that
someone has solved this or knows of a workaround. :(

Jan 22 '06 #2
Awesome, nice catch!

This code was offensive to the designer for some reason
<code>
string ampValues =
ConfigurationManager.AppSettings.Get("UIAmpRangeOp tions");
// string[] values = ampValues.Split('|');
</code>

Why? I don't know, by commenting out the second line, it works fine(and
subsequent references to ampValues)

I tried to explicitly initialize the string array with this code
<code>
string[] values = null;
if (values != null)
{
values = ampValues.Split('|');
}
</code>

now it works fine.

Do you see the reason? Is c# getting a little more strict with
initializations? I'm confused still, but I thank you that I no longer have
a gun to my head :) (my whiskey bottle is still empty though, you didn't
fix that)

Have a good weekend!

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
Sounds like something may be going wrong when the designer is attempting
to
create an instance of the UC_ContextConfiguration control. Have you gone
through the constructor for the UC_ContextConfiguration class to see if
something might be causing an exception?

--
Tim Wilson
.NET Compact Framework MVP

"sklett" <as**@fkd.com> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
This BUG that is so ridiculous I can't believe they shipped 05 is making

my
life hell. I have tried the various solutions found on the web and none

of
them have worked thus far. What's even more troublesome is that it

appears
that 05 uses these new partial classes which would makes rolling back to

03
not possible.

The error I get when trying to load my Form in the designer is as
follows:
--------------------------------------------------------------------------

--------------------
One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Object reference not set to an instance of an object.

at PMD.FirmwareEditor.UIContextControls.UC_ContextCon figuration..ctor()
in

C:\PMDRepository\Tools\DQ_Tools\FirmwareEditor\tru nk\UIContextControls\UC_Co
ntextConfiguration.cs:line
142
--------------------------------------------------------------------------

--------------------

Now I don't see any problems with the code indicated in the above error.

I
have no idea why this is happening or how to fix it. I really hope that
someone has solved this or knows of a workaround. :(


Jan 22 '06 #3
> <code>
string ampValues =
ConfigurationManager.AppSettings.Get("UIAmpRangeOp tions");
// string[] values = ampValues.Split('|');
</code> I would assume that the "UIAmpRangeOptions" setting could not be found and
"null" was returned. If you then attempted to call a method (Split) on a
null reference you'd get a NullReferenceException thrown in the constructor,
which, in turn, thwarted the designers attempt to instantiate the control.
<code>
string[] values = null;
if (values != null)
{
values = ampValues.Split('|');
}
</code> The code in the "if" statement should never be getting executed here.
"values" is set to "null" and then a check to see if "values" does not equal
null is made on the next line. This "if" check should fail every time.

Try looking at the return value of the "AppSettings.Get" call. The return
value, stored in "ampValues", may be "null".

--
Tim Wilson
..NET Compact Framework MVP

"sklett" <as**@fkd.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Awesome, nice catch!

This code was offensive to the designer for some reason
<code>
string ampValues =
ConfigurationManager.AppSettings.Get("UIAmpRangeOp tions");
// string[] values = ampValues.Split('|');
</code>

Why? I don't know, by commenting out the second line, it works fine(and
subsequent references to ampValues)

I tried to explicitly initialize the string array with this code
<code>
string[] values = null;
if (values != null)
{
values = ampValues.Split('|');
}
</code>

now it works fine.

Do you see the reason? Is c# getting a little more strict with
initializations? I'm confused still, but I thank you that I no longer have a gun to my head :) (my whiskey bottle is still empty though, you didn't
fix that)

Have a good weekend!

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
Sounds like something may be going wrong when the designer is attempting
to
create an instance of the UC_ContextConfiguration control. Have you gone
through the constructor for the UC_ContextConfiguration class to see if
something might be causing an exception?

--
Tim Wilson
.NET Compact Framework MVP

"sklett" <as**@fkd.com> wrote in message
news:uY**************@tk2msftngp13.phx.gbl...
This BUG that is so ridiculous I can't believe they shipped 05 is making
my
life hell. I have tried the various solutions found on the web and
none of
them have worked thus far. What's even more troublesome is that it

appears
that 05 uses these new partial classes which would makes rolling back
to 03
not possible.

The error I get when trying to load my Form in the designer is as
follows:
-------------------------------------------------------------------------

- --------------------
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.

Object reference not set to an instance of an object.

at PMD.FirmwareEditor.UIContextControls.UC_ContextCon figuration..ctor()
in

C:\PMDRepository\Tools\DQ_Tools\FirmwareEditor\tru nk\UIContextControls\UC_Co ntextConfiguration.cs:line
142
-------------------------------------------------------------------------

- --------------------

Now I don't see any problems with the code indicated in the above error.
I
have no idea why this is happening or how to fix it. I really hope

that someone has solved this or knows of a workaround. :(



Jan 22 '06 #4

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

Similar topics

26
by: Michel Rouzic | last post by:
I have a binary file used to store the values of variables in order to use them again. I easily know whether the file exists or not, but the problem is, in case the program has been earlier...
2
by: dana lees | last post by:
Hi, I am developing a c# asp.net application. I have a button which when i click on i open a pdf file. Since the pdf file is very very large i would like to open a window that says "Loading...
3
by: Tin Gherdanarra | last post by:
A colleague gave me a project where there was a /designer/ window for database connectivity (drag&drop from the toolbox), but I can't find out how to get a /designer/ window in my own project....
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
0
by: Gregory Gadow | last post by:
We have a number of development machines in our IT department, all running the same version of VS 2005 sp 1. Our company website and several compiled components were all written in VB.Net 2.0 using...
2
by: Curious | last post by:
There's a problem with what is displayed on a tab in my UI. At first, it's a message, "loading...". Then it should be replaced with the actual file name on the tab. Now the issue is that it...
0
by: sloan | last post by:
My Environment: VS2005 VS2005 SP1 Installed 3.0 Framework installed SilverLight 1.0 SDK Installed I've gotten back into actually coding up some SilverLight demos/projects.
10
oll3i
by: oll3i | last post by:
when i run sql query select * from GRABBER.CANDIDATES where EMAIL=xxx@xxxxx.xx i get Error code -1, SQL state 42X02: Lexical error at line 1, column 55. Encountered: "@" (64), after : "". ...
7
by: saurabhsingh | last post by:
Can anyone plz suggest any Idea that How to implement "loading message" in a site with master pages. I am having Default page which is master page enabled and it contains many Gridviews with...
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...
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
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...
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.