Problem with release build of AssetLinkSearch sample

Hi,

I downloaded the exe of AssetLinkSearch and this version works correctly.

Then I downloaded the latest version of the source code, opened it in VS.2008.

  • The debug build works correctly (both against our production instance and against https://dev6.axeda.com, and both running the debug build from the IDE and from outside of the IDE)
  • The release build however gives an error "There is an error in the xml document". On our production instance, this happens when I select an asset in the tree view (to view data). On https://dev6.axeda.com I get a simular error when I try to login. The behaviour is the same both running the release build from the IDE and from outside of the IDE.

If I compare the size of the exe's, the exe that I downloaded is a release build (but that one works correctly).

Can someone try this out to see if you can reproduce it or your machine ?

Release build has an additional file...

I investigated this a bit further myself. When comparing the Debug and Release build folders, I noticed that the Release build folder has an extra file <name of project>.XmlSerializers.dll.

If I delete this file the release build works fine! If I find an explanation for this, I will post it here. If anyone else has an idea, please post it...

Same problem here with VS2008

Same problem here with VS2008 Professional edition

AssetLinkSearch.XmlSerializers.dll needs to be removed.

Hi Geert

Thank you for alluding us to this issue. It is a runtime build configuration setting that was set to "auto" and generates the file on Build. The file is not needed and does indeed cause the error you reported.

To resolve this permanently, please follow the following steps:

 

1. From the Project menu, select AssetLink properties.

2. Click on Build tab

3. At the bottom of the page there is "Generate serialization assembly -> Change it to OFF

4. Save project and further builds will not include the file.