c# - Unable to use WebConfigurationManager for WCF project -


I am trying to write a WCF service that links to another project's App.config file. This is a pure 3.5 project and when I try to use it:

  System ConfigurationHandler SystemSection = Configuration Web Configuration Manager.GetVision ("Third PageTimes Systems") as System Configuration Handler;  

But it still is not known how the Web Configuration Manager is.

line of problem code.

"type or name The place name 'configuration' namespace is not present in 'System.Web' "

So far the object is clearly on the browser there. How can I fix this?

The system web configuration shows the Web Configuration Manager.

In addition, I'm trying to browse the App.config file linked to another project, what I'm doing.

Why are you using it?

Using WebConfigurationManager is the preferred way of working with configuration files related to web applications for client applications, use the Configuration Manager class.

Note that you can not use the .config file of any other project only. you can do it.


Comments