2010-03-06 3 views
0

J'ai un app.config qui a été créé sur la machine dev sous Windows 7.App.Config question ASMX

Il a créé la section de configuration liées asmx suivante:

<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> 

Son depuis un certain temps J'ai utilisé ASMX, mais lorsque je déploie sur Windows 2003 Server, j'obtiens la section de configuration d'erreur non reconnue applicationSettings.

Quelqu'un sait comment je peux résoudre ce problème manuellement?

Répondre

1

Facile à fixer:

nécessaire pour inclure la section de configuration ... situé en haut du fichier 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>