LightSwitch project failed to build - 2 strange errors

我们两清 提交于 2019-12-06 10:46:37

I did encounter the same problem today. Yesterday I was working on a LightSwitch project, solving some issues. I finished my work, built the project and everything was fine. Today I wanted to continue my work on other isseus of the project, but all of a sudden the same error appeared - but for one of my own queries of course. What happened? After some time trying to solve the problem without success, I then decided to go one changeset back in TFS history. There still was an error, but a different one with a more helpful error message! Now I was able to figure out what was going on.

The query that seemed to cause the problem was a query I used for reporting (with DevExpress XtraReports for LightSwitch). The problem was that I tried to set some standard values for parameters in the report query, but couldn't figure out where to put the code. One of my wrong attempts to find the right place must have added some XML (<QueryOperation>...</QueryOperation>) to the query's client-side lsml-file (project-folder/Client/MyProject/ApplicationData/Query.lsml). I removed this bit of XML and reloaded and rebuilt the project - and all was working fine again. So, I changed back to the current version of my project in TFS and once again removed the XML from the query's lsml-file. The project now builds and runs again without problems.

Sure, the source of your problem might not be exactly the same as mine - but it might be quite similar, I guess. Anyway, I hope this will give a hint to anyone who encounters the same problem!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!