• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

appsettings

I am having 2 errors trying to convert vb to c#
Appsettings cannot be used as a method. What can I use.
Application.Add("SQLServer", System.Configuration.ConfigurationManager.AppSettings("SQLServer"));
0
Seven price
Asked:
Seven price
2 Solutions
 
angus_young_acdcCommented:
If you are converting it to C# the AppSettings would be System.Configuration.ConfigurationManager.AppSettings["SQLServer"];

You also need to make sure to add a reference to System.configuration.
0
 
Seven priceFull StackAuthor Commented:
tks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now