私はこれについてとても混乱しています。プロジェクトを公開するときにライブ SQL Server を開発および使用しているときに、デスクトップで SQL Server を使用したいと考えています。Visual Studio 2010 で変換を行っています。
プロジェクトをパブリッシュしようとすると、「一致ロケーターの属性 'name' が存在しません」というメッセージが表示されます。
私の Web.config ファイルには次のものが含まれています。
<connectionStrings>
<add name="EFDbContext" connectionString="Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=db" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<sessionState mode="SQLServer" sqlConnectionString="Server=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=ASPState;Application Name=eGov" timeout="20" allowCustomSqlDatabase="true" />
</system.web>
私はまだそれをテストしているので、今のところ、私の Web.Release.config ファイルには次のものが含まれています。
<connectionStrings>
<add name="EFDbContext"
connectionString="Data Source=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=db"
providerName="System.Data.SqlClient"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<sessionState mode="SQLServer"
sqlConnectionString="Server=.\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=ASPState;Application Name=app"
timeout="20" allowCustomSqlDatabase="true"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</system.web>
私がオンラインで見ているものはすべて、私をさらに混乱させるだけです. 私を立ち上げて実行するための助けはありますか?