MVC3 웹 응용 프로그램에서 LightSpeed를 사용하는 것과 관련된 질문이 있습니다. LightSpeed를 사용하려는 REST API 프로젝트를 만들고 있지만 official configuration guidelines은 매우 모호합니다.MVC3 웹 프로젝트에서 사용하기 위해 광속 구성
이<configSections>
<section name="lightSpeedContexts"
type="Mindscape.LightSpeed.Configuration.LightSpeedConfigurationSection, Mindscape.LightSpeed" />
</configSections>
<lightSpeedContexts>
<add name="Test" />
</lightSpeedContexts>
<lightSpeedContexts>
<add name="Test" dataProvider="SQLite3" />
</lightSpeedContexts>
내가 루트의 Web.config에 다음 행을 추가 시도 :
<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>
이가 던졌습니다 공식 문서는 다음과 같은 라인이 Web.Config 파일에 추가 할 필요가 있다고 말한다 예외는 웹 애플리케이션을 시작할 때 configSection을 애플리케이션에서 두 번 이상 지정할 수 없다는 것을 알려주는 예외입니다. 루트 web.config 파일에는 기본값별로 지정된 것이 없습니다.
이 구성을 어디에 둘 것인지 확실하지 않습니다.