I am getting a Unrecognized configuration section compilation exception when adding
<?xml version="1.0"?>
<configuration>
<configSections>
.....
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</assemblies>
</compilation>
this to my app.config
how do I add this to an app.config associated with a windows service?
<compilation>
必须是<system.web>
元素的子元素-有关更多信息,请参见http://msdn.microsoft.com/zh-cn/library/s10awwz0.aspx 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.