Updating AppSettings via ASP.NET MVC Controller

前端 未结 3 646
既然无缘
既然无缘 2021-02-14 00:25

I\'m writing a basic little forums web app (for fun and to sharpen the ole\' saw), and I\'m having a bit of trouble with AppSettings.

My plan is to have these settings i

3条回答
  •  轮回少年
    2021-02-14 01:01

    If you are running this from another project then you'll be using the config from that folder which wont have a config file hence the error that it cannot be created.

    You may want to use server.mappath or something like that to get to the web folders config file.

提交回复
热议问题