|
-
April 24th, 2008, 01:29 AM
#1
error
actual code is
String ConnectionString = System.Configuration.ConfigurationManager.AppSettings["AddressDB"];
but i didnot found ConfiguartionManager after entering "System.Configuration."..
plz help.
thnks
-
April 24th, 2008, 01:34 AM
#2
Re: error
And the error message is...?
post it, please
It's not a bug, it's a feature!
-
April 24th, 2008, 01:44 AM
#3
Re: error
Have you had included reference to System.Configuration.dll?
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
-
April 24th, 2008, 07:57 AM
#4
Re: error
He's entering a fully qualified name, doesn't have to include anything.
If you don't find ConfigurationManager class as part of System.Configuration namespace, then the ConfigurationManager class doesn't exist in the System.Configuration namespace.
.NET won't lie to you... (although intellisense may lie so don't trust it... try yourself by compiling your code and see if it compiles... intellisense doesnt always tell the truth).
-
April 24th, 2008, 08:52 AM
#5
Re: error
 Originally Posted by mariocatch
He's entering a fully qualified name, doesn't have to include anything.
Definitely not! A single namespace can spread over several assemblies.
What I'm talking about is assembly reference, not the using keyword.
So again, abhijan13, check, if you have added the reference to assembly System.Configuration.dll to you project. What version of VS do you use? What's the exact error message you receive?
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post. 
-
April 24th, 2008, 09:13 AM
#6
Re: error
actual error message is-
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\Documents and Settings\Abilash\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\AddressManager.cs 24 39 WindowsApplication11
-
April 24th, 2008, 09:17 AM
#7
Re: error
wil u plz tell me how we add this reference--
System.Configuration.dll?
-
April 25th, 2008, 01:44 AM
#8
Re: error
actual error message is-
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\Documents and Settings\Abilash\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\AddressManager.cs 24 39 WindowsApplication11
-
April 25th, 2008, 02:27 AM
#9
Re: error
 Originally Posted by abhijan13
wil u plz tell me how we add this reference--
System.Configuration.dll?

Open Project menu and select Add reference. In the resulting dialog look for System.Configuration. Select it and click ok.
-
April 27th, 2008, 08:36 AM
#10
Re: error
thanks..i gt the System.Configuration..
-
April 27th, 2008, 08:40 AM
#11
Re: error
 Originally Posted by abhijan13
actual error message is-
'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' C:\Documents and Settings\Abilash\My Documents\Visual Studio 2005\Projects\WindowsApplication11\WindowsApplication11\AddressManager.cs 24 39 WindowsApplication11
That's a warning message, not an error message. It's also pretty self-explanatory. The method you're using is depreciated. There's a newer method available for getting the same information, and you should use that instead.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
-
April 27th, 2008, 08:44 AM
#12
Re: error
error again..
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Select(dataGridView1.CurrentRow.Index);
LoadCurrentItem();
SetEditState(false);
}
Error is--" No OverLoad for Method 'Select' takes '1' argument
-
April 27th, 2008, 08:45 AM
#13
Re: error
error again..
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Select(dataGridView1.CurrentRow.Index);
LoadCurrentItem();
SetEditState(false);
}
Error is--" No OverLoad for Method 'Select' takes '1' argument
-
April 27th, 2008, 11:25 AM
#14
Re: error
Did you try to check what MSDN says about the Select method. I wonder, why people do not check the documentation before relying on others to resolve the problem.
Your first reference should be MSDN. After all MS is the one who created .NET Framework so their documentation should be the one that you should refer. And if you still don't understand something you can always post it here.
You should also use CODE tags. Refer our FAQ or look at my signature.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|