App.Config ASMX 问题

发布于 2024-08-24 03:05:47 字数 688 浏览 2 评论 0原文

我有一个在运行 Windows 7 的开发机器上创建的 app.Config。

它创建了以下与 asmx 相关的配置部分:

  <applicationSettings>
    <ISDS_Scheduler.Properties.Settings>
      <setting name="Scheduler_WSDownloads_Downloads" serializeAs="String">
        <value>[address]/Downloads.asmx</value>
      </setting>
      <setting name="Scheduler_WSTasks_WSTasks" serializeAs="String">
        <value>[address]/WSTasks.asmx</value>
      </setting>
    </ISDS_Scheduler.Properties.Settings>
  </applicationSettings>

自从我使用 ASMX 以来已经有一段时间了,但是当我部署到 Windows 2003 Server 时,我收到错误无法识别的配置应用程序设置部分。

有人知道我如何手动修复这个问题吗?

I have an app.Config that was created on the dev machine running Windows 7.

It created the following asmx related configuration section:

  <applicationSettings>
    <ISDS_Scheduler.Properties.Settings>
      <setting name="Scheduler_WSDownloads_Downloads" serializeAs="String">
        <value>[address]/Downloads.asmx</value>
      </setting>
      <setting name="Scheduler_WSTasks_WSTasks" serializeAs="String">
        <value>[address]/WSTasks.asmx</value>
      </setting>
    </ISDS_Scheduler.Properties.Settings>
  </applicationSettings>

Its been a while since I used ASMX, but when I deploy to Windows 2003 Server, I get the error unrecognised configuration section applicationSettings.

Any one know how I can manually fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

乖不如嘢 2024-08-31 03:05:47

易于修复:

需要包含配置部分...位于 app.config 文件顶部...

  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="Scheduler.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>

Easy to fix:

Needed to include the config section... located at the top of the app.config file...

  <configSections>
    <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
      <section name="Scheduler.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </sectionGroup>
  </configSections>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文