Ich habe eine Frage in Bezug auf die Verwendung von LightSpeed in einer MVC3-Webanwendung. Ich erstelle ein REST API-Projekt, wo ich LightSpeed verwenden möchte, aber die official configuration guidelines sind ziemlich vage. Die offizielle Dokumentation sagt, dass die folgenden Zeilen in die Datei web.config werden müssen hinzugefügt:Konfigurieren von Lightspeed für die Verwendung in MVC3 Web-Projekt
<configSections>
<section name="lightSpeedContexts"
type="Mindscape.LightSpeed.Configuration.LightSpeedConfigurationSection, Mindscape.LightSpeed" />
</configSections>
<lightSpeedContexts>
<add name="Test" />
</lightSpeedContexts>
<lightSpeedContexts>
<add name="Test" dataProvider="SQLite3" />
</lightSpeedContexts>
ich versucht, indem folgende Zeilen in der Datei web.config im Stamm:
<configSections>
<section name="lightSpeedContexts"
type="Mindscape.LightSpeed.Configuration.LightSpeedConfigurationSection, Mindscape.LightSpeed" />
</configSections>
<lightSpeedContexts>
<add name="Default" connectionStringName="Prod" dataProvider="MySQL5" />
</lightSpeedContexts>
<connectionStrings>
<add name="Prod" connectionString="server=localhost;User Id=production;password=xxx;Persist Security Info=True;database=CBS"/>
</connectionStrings>
Dies wirft ein Ausnahme, wenn ich die Webanwendung starte, die mir sagt, dass configSections in der Anwendung nicht mehr als einmal angegeben werden darf. In der Stammdatei "web.config" wurde standardmäßig nichts angegeben.
Ich bin nicht sicher, wo diese Konfiguration zu setzen.