• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • 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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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