Error Message Class Obsolete

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

Hi,

Ive added a library project which was compiled in an earlier version of .net
which is giving me some warnings.

Warning 31
'System.Configuration.ConfigurationException.ConfigurationException(string)'
is obsolete: 'This class is obsolete, to create a new exception create a
System.Configuration!System.Configuration.ConfigurationErrorsException'

But the new class referred to does not seem to exist. I think the original
lib was 2003

Any ideas how to get around this

Ta !
 
Ive added a library project which was compiled in an earlier version of .net
which is giving me some warnings.

Warning 31
'System.Configuration.ConfigurationException.ConfigurationException(string)'
is obsolete: 'This class is obsolete, to create a new exception create a
System.Configuration!System.Configuration.ConfigurationErrorsException'

But the new class referred to does not seem to exist. I think the original
lib was 2003

Any ideas how to get around this

It certainly seems to exist as far as I can see. Have you added a
reference to the System.Configuration assembly?

Jon
 
Hi,


--
Ignacio Machin
www.laceupsolutions.com
Mobile & warehouse Solutions.
Jon Skeet said:
It certainly seems to exist as far as I can see. Have you added a
reference to the System.Configuration assembly?


That's correct, you need to add the reference. Now what strick me as weird
is why MS does not include Configuration by default.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top