Wednesday, March 18, 2015
Non-invocable member 'System.Configuration.ConfigurationManager.AppSettings' cannot be used like a method.
Web.config file code:
Error no 1:
Non-invocable member 'System.Configuration.ConfigurationManager.AppSettings' cannot be used like a method.
Scenario no 1:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings("CONNECTIONTYPE");
Solution no 1:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings["CONNECTIONTYPE"];
Error no 2:
This method is obsolete.
Scenario no 2:
strAuthorizeNet_x_login = System.Configuration.ConfigurationSettings.AppSettings("CONNECTIONTYPE");
Solution no 2:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings["CONNECTIONTYPE"];
Error no 1:
Non-invocable member 'System.Configuration.ConfigurationManager.AppSettings' cannot be used like a method.
Scenario no 1:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings("CONNECTIONTYPE");
Solution no 1:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings["CONNECTIONTYPE"];
Error no 2:
This method is obsolete.
Scenario no 2:
strAuthorizeNet_x_login = System.Configuration.ConfigurationSettings.AppSettings("CONNECTIONTYPE");
Solution no 2:
strAuthorizeNet_x_login = System.Configuration.ConfigurationManager.AppSettings["CONNECTIONTYPE"];
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment