when i use vs2012 compile this solution and run the program ,an error appear "cannt load haestad.domain.daointerop ",how to solve this question
Hi Gang,
Based on the limited information you provide here I recommend you check the location of the references. There are two "versions" of WaterGEMS that gets installed. There is the x86 (or 32-bit) version and the x64 (or 64-bit) version. The x86 version is installed, by default, to C:\Program Files (x86)\Bentley\WaterGEMS. The x64 version is installed to C:\Program Files (x86)\Bentley\WaterGEMS\x64.
The default platform currently set for the DomainReporter sample is x86. So the references need to point to the x86 installation folder. You can do this by either specifying the reference path in the project properties or by removing an re-adding the references directly.
To add a reference path, follow these steps:
1. Open the WaterObjects.NET.DomainReporter solution
2. Open the project properties - to do this, select the "WaterObjects.NEt.DomainReporter" project node (the second from the top) and right-click and choose Properties or use the shortcut ALT-ENTER.
3. In the list on the left side, click on Reference Paths
4. On the right side, click the [...] button to the right of the box for Folder
5. Browse out to the installation folder (C:\Program Files (x86)\Bentley\WaterGEMS) and click Select.
6. Click on the Add Folder button (this is an important step).
7. Click the Save button on the toolbar and then click the X for the project properties tab.
Once done you should be able to compile the solution and run it.
If for some reason these steps do not work for you please include additional information. A partial call stack or the exception details would be helpful.
I hope this helps.
Kris CulinBentley SoftwareHydrology & Hydraulics
Kris Culin
Bentley Software
Hydrology & Hydraulics
Answer Verified By: gang han