在VS2013迁移后无法发布lightswitch应用程序

时间:2014-01-07 16:39:11

标签: silverlight visual-studio-2013 visual-studio-lightswitch

我最近将我的Lightswitch项目从VS2012升级到VS2013。我尝试发布项目并收到此错误

Error 3  The "ResolvePublishParameters" task failed unexpectedly.
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
   at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
   at System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Boolean buildChain, Hashtable synonyms, Boolean firstKey)
   at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useOdbcRules)
   at System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String value)
   at Microsoft.LightSwitch.Publish.Tasks.Deployment.ResolvePublishParameters.ExecuteCore()
   at Microsoft.LightSwitch.Publish.Tasks.Common.BuildTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\LightSwitch\v4.0\Publish\v2.2\Microsoft.LightSwitch.Publish.targets
411 10

如何解决这个问题的线索?我甚至无法发布本地包

1 个答案:

答案 0 :(得分:0)

对我有用的修正是:

  1. 启动LightSwitch发布应用程序向导。
  2. 转到数据连接步骤。
  3. 切换到附加数据源选项卡。
  4. 如果有任何连接,请将其值设置为完全空白。
  5. 这是违反直觉的 - 似乎你想要在那里为你的附加数据源提供正确的值 - 但是将这些错误消除后会使错误消失,就像Ian Mac, here那样。