我最近将我的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
如何解决这个问题的线索?我甚至无法发布本地包
答案 0 :(得分:0)
对我有用的修正是:
这是违反直觉的 - 似乎你想要在那里为你的附加数据源提供正确的值 - 但是将这些错误消除后会使错误消失,就像Ian Mac, here那样。