Since you’re accessing a web.config
you should probably use
using System.Web.Configuration;
WebConfigurationManager.AppSettings["configFile"]
More Related Contents:
- Login failed for user ‘IIS APPPOOL\ASP.NET v4.0’
- How to force HTTPS using a web.config file
- Read connection string from web.config
- Web.Config Debug/Release
- IIS Server & ASP.Net Core – 500.19 with error code 0x8007000d on httpplatformhandler tag
- How to set web.config file to show full error message
- How can I secure passwords stored inside web.config?
- Encrypting Web.Config
- How can I add an ampersand for a value in a ASP.net/C# app config file value
- ConfigurationManager.AppSettings getting null?
- The ‘Microsoft.ACE.OLEDB.12.0’ provider is not registered on the local machine.
- Extracting div's InnerHtml?
- One DbContext per web request… why?
- Problem with converting int to string in Linq to entities
- jQuery UI Dialog with ASP.NET button postback
- ASP.NET Identity’s default Password Hasher – How does it work and is it secure?
- Response.Redirect to new window
- Call non-static method in server-side from client-side using JavsScript
- Currency format for display
- Multi-select dropdown list in ASP.NET
- How to access page controls inside a static web method? [duplicate]
- How to omit methods from Swagger documentation on WebAPI using Swashbuckle
- MemoryStream – Cannot access a closed Stream
- How can I get the value of a session variable inside a static method?
- Determine OS using Environment.OSVersion [duplicate]
- Prevent textbox autofill with previously entered values
- How to change CurrentCulture at runtime?
- How to add Web API to an existing ASP.NET MVC (5) Web Application project?
- How to return a PDF from a Web API application
- Response.AddHeader(“Content-Disposition”) not opening file in IE6