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

The method or operation is not implemented

I took the code from here and tweaked it to our needs. One of the methods is
erroring out throwing an exception and I'm not sure why:

object IConfigurationSectionHandler.Create(object parent, object
configContext, XmlNode section)

{

throw new Exception("The method or operation is not
implemented.");

}

When I run all my code, the exception above is thrown.

My code:

http://www.webfound.net/forum_posts/...nted_error.JPG

http://www.webfound.net/forum_posts/...nted_error.txt

--
dba123
Aug 4 '06 #1
4 36535
Your code is registering an event handler for "Create" and in that handler
you are throwing that exception everytime that event is invoked.

The IDE puts this "throw new Exception("The method or operation is not
implemented."); " in there for you, so you don't forget to implement your
event handler.
If you don't care about the event, either remove the section where you
register the handler, or comment out the "throw new Exception("The method or
operation is not
implemented.");" part.
-Corey
"dba123" <db****@discussions.microsoft.comwrote in message
news:FD**********************************@microsof t.com...
>I took the code from here and tweaked it to our needs. One of the methods
is
erroring out throwing an exception and I'm not sure why:

object IConfigurationSectionHandler.Create(object parent,
object
configContext, XmlNode section)

{

throw new Exception("The method or operation is not
implemented.");

}

When I run all my code, the exception above is thrown.

My code:

http://www.webfound.net/forum_posts/...nted_error.JPG

http://www.webfound.net/forum_posts/...nted_error.txt

--
dba123


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Aug 4 '06 #2
You have to implement the IConfigrationSectionHandler.Create method on your
own.

http://www.ondotnet.com/pub/a/dotnet...gsections.html includes
an example.

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

"dba123" <db****@discussions.microsoft.comwrote in message
news:FD**********************************@microsof t.com...
>I took the code from here and tweaked it to our needs. One of the methods
is
erroring out throwing an exception and I'm not sure why:

object IConfigurationSectionHandler.Create(object parent,
object
configContext, XmlNode section)

{

throw new Exception("The method or operation is not
implemented.");

}

When I run all my code, the exception above is thrown.

My code:

http://www.webfound.net/forum_posts/...nted_error.JPG

http://www.webfound.net/forum_posts/...nted_error.txt

--
dba123

Aug 4 '06 #3
Dude! The method is throwing the exception because the code in the method is
code to throw the exception!

You need to replace the code with your own code that performs the Create
implementation for your class.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Surgery

Expect the unaccepted.

"dba123" <db****@discussions.microsoft.comwrote in message
news:FD**********************************@microsof t.com...
>I took the code from here and tweaked it to our needs. One of the methods
is
erroring out throwing an exception and I'm not sure why:

object IConfigurationSectionHandler.Create(object parent,
object
configContext, XmlNode section)

{

throw new Exception("The method or operation is not
implemented.");

}

When I run all my code, the exception above is thrown.

My code:

http://www.webfound.net/forum_posts/...nted_error.JPG

http://www.webfound.net/forum_posts/...nted_error.txt

--
dba123

Aug 4 '06 #4
I don't understand what this actually is for

object IConfigurationSectionHandler.Create(object parent, object
configContext, XmlNode section)
{
throw new Exception("The method or operation is not
implemented.");
}

and what object is...

I'm new to C#...so stay with me.

--
dba123
"cwineman" wrote:
Your code is registering an event handler for "Create" and in that handler
you are throwing that exception everytime that event is invoked.

The IDE puts this "throw new Exception("The method or operation is not
implemented."); " in there for you, so you don't forget to implement your
event handler.

If you don't care about the event, either remove the section where you
register the handler, or comment out the "throw new Exception("The method or
operation is not
implemented.");" part.

-Corey
"dba123" <db****@discussions.microsoft.comwrote in message
news:FD**********************************@microsof t.com...
I took the code from here and tweaked it to our needs. One of the methods
is
erroring out throwing an exception and I'm not sure why:

object IConfigurationSectionHandler.Create(object parent,
object
configContext, XmlNode section)

{

throw new Exception("The method or operation is not
implemented.");

}

When I run all my code, the exception above is thrown.

My code:

http://www.webfound.net/forum_posts/...nted_error.JPG

http://www.webfound.net/forum_posts/...nted_error.txt

--
dba123

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Aug 4 '06 #5

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

Similar topics

20
by: Tim Martin | last post by:
Hi, I came across a detail in "C++ Gotchas" by Stephen Dewhurst that confused me a bit. The author states: 'C++ has no "methods." Java and Smalltalk have methods. When you talk about an...
4
by: Merlynx | last post by:
I am using TimerCallback to call a method in an activex dll repeatedly. The TimerCallback works fines but when i exit the program, it still shows up in the taskmgr i.e still running. So i use the...
13
by: | last post by:
I'm curious if anyone knows why the C# and VB.NET compilers don't automatically call Dispose() on objects that support IDisposable when they go out of scope. I asked a co-worker and his response...
6
by: Teresa | last post by:
1) If I do want to keep an object alive throughout the live of an application, how can I ensure that the GC doesn't clean it up? 2a) How do I determine if an object is a managed or an unmanged...
4
by: csharpula csharp | last post by:
Hello, Have a basic question about Clone() If I am using the clone method on some object ,are the Cloned object properties going to change at every property change in original object? Thanks! ...
6
by: Carlos Martinez | last post by:
Hi all: I have a conceptual doubt. Reading several books, I read the terms method and member function. Are they the same or what is the different meaning? Thanks in advance.
13
by: Ben Voigt | last post by:
Is there any way to have an overridden method which is not callable from the assembly overridding it? A contrived example (though I want this feature, my program has nothing to do with food...
3
by: danrumney | last post by:
Hi all, I'm having some problems understanding why I'm getting an error with the following SVG document: http://www.danrumney.co.uk/test.svg The javascript is pretty basic, call...
10
by: Andrea | last post by:
Which method is better to remove a char from a string? A replace or a substring? Considering that first char is at 0 position. Using reflector, replace let lost its track in internal call,...
4
by: IanWright | last post by:
I'm trying to extend an existing soap webservice by adding in a couple of new methods, however I'm having a problem in getting the client to run the method calls and I'm not sure why. I've not had...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.