I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

后端 未结 8 850
鱼传尺愫
鱼传尺愫 2020-11-29 06:29

I\'m trying to allow a user to enter data into a textbox that will be added to the web.config file. I\'ve added the relevent lines to the web.config file but when I make thi

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-29 06:52

    You probably don't have the System.Configuration dll added to the project references. It is not there by default, and you have to add it manually.

    Right-click on the References and search for System.Configuration in the .net assemblies.

    Check to see if it is in your references...

    enter image description here

    Right-click and select Add Reference...

    enter image description here

    Find System.Configuration in the list of .Net Assemblies, select it, and click Ok...

    enter image description here

    The assembly should now appear in your references...

    enter image description here

提交回复
热议问题