问题遇到的现象和发生背景
系统更换虚拟号平台导致系统奔溃
用代码块功能插入代码,请勿粘贴截图
<add key="Url" value="https://a1.7x24cc.com/commonInte?flag=107&account=N00447&
accessToken=xxxxxxxxxxxxx&ServiceNo=服务号&phonenum=外呼号码" />
<add key="appid" value="pj1cowpmjrpsc3di" />
<add key="VoiceRecId" value="10012" />
<add key="DisplayNum" value="0202994" />
<add key="PlayTimes" value="2" />
<add key="SoftVersion" value="2016-01-01" />
<add key="AccountSid" value="N00447" />
<add key="Token" value="ae47f279e86d138" />
运行结果及报错内容
account accessToken ServiceNo phonenum报错出现未定义实体的提示
我的解答思路和尝试过的方法
在DotNetCofig.xsd中进行了添加字段的操作
<xs:attribute name="account" type="xs:string" use="optional"/>
<xs:element name="appSettings" vs:help="configuration/appSettings">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="add" vs:help="configuration/appSettings/add">
<xs:complexType>
<xs:attribute name="key" type="xs:string" use="optional"/>
<xs:attribute name="value" type="xs:string" use="optional"/>
<xs:attribute name="account" type="xs:string" use="optional"/>
<xs:attribute name="lockAttributes" type="xs:string" use="optional"/>
<xs:attribute name="lockAllAttributesExcept" type="xs:string" use="optional"/>
<xs:attribute name="lockElements" type="xs:string" use="optional"/>
<xs:attribute name="lockAllElementsExcept" type="xs:string" use="optional"/>
<xs:attribute name="lockItem" type="small_boolean_Type" use="optional"/>
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict"/>
</xs:complexType>
</xs:element>
<xs:element name="remove" vs:help="configuration/appSettings/remove">
<xs:complexType>
<xs:attribute name="key" type="xs:string" use="optional"/>
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict"/>
</xs:complexType>
</xs:element>
<xs:element name="clear" vs:help="configuration/appSettings/clear">
<xs:complexType>
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:attribute name="file" type="xs:string" use="optional"/>
<xs:attribute name="lockAttributes" type="xs:string" use="optional"/>
<xs:attribute name="lockAllAttributesExcept" type="xs:string" use="optional"/>
<xs:attribute name="lockElements" type="xs:string" use="optional"/>
<xs:attribute name="lockAllElementsExcept" type="xs:string" use="optional"/>
<xs:attribute name="lockItem" type="small_boolean_Type" use="optional"/>
<xs:attribute name="configSource" type="xs:string" use="optional"/>
<xs:attribute name="configBuilders" type="xs:string" use="optional"/>
<xs:anyAttribute namespace="http://schemas.microsoft.com/XML-Document-Transform" processContents="strict"/>
</xs:complexType>
</xs:element>
但是保存不了
我想要达到的结果
连接到平台返回{"success":true;"accessToken":"ACCESSTOKEN","invalidTime" : "2018-11-05 14:25:13","message":"更新accessToken成功"}