AppSettings in App or Web Config Using a Linked File

前端 未结 3 1433
独厮守ぢ
独厮守ぢ 2021-01-11 11:48

I\'m trying to reference some common config settings between a Windows Service and an ASP.NET MVC website. I am doing this by using the file attribute on appSettings in eit

3条回答
  •  情歌与酒
    2021-01-11 12:04

    The idea of using "bin/..." is good but leads to an error saying that "/" is an invalid character in the resulting virtual path.

    The proper solution is tu use "bin...".

    Cheers

提交回复
热议问题