c#获取Web.Config中的值出现的错误及解决办法
1.错误提示 
2.原因寻找
问题出在Web.Config文件中
<add key="mchid " value="1495103432"/>//mchid 后面不应该有空格
图示如下:
3.改正代码如下:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
</system.web>
<appSettings>
<add key="mchid" value="1495103432"/>
</appSettings>
</configuration>
ettings>