David
David

Reputation: 1058

Keep getting load error in VS2017: Domain object

Cannot load " file reference ": Domain object with ID " guid " has already been defined in this or another domain model.

enter image description here

The file to be loaded is a DevExpress xpo data model file and the file itself has successfully loaded on at least 3 prior occasions.

I have searched for the ID guid on the whole hard disk without any result.

How can I fix this?

Upvotes: 6

Views: 96

Answers (1)

Thoth
Thoth

Reputation: 2276

The problem here is, you have already compiled the file. Look around in your build path for a compiled file, and either move or delete it. Whenever a file is already compiled in a location, the compiler tries to use its resources in the compilation of your new program. This then defines things multiple times, giving you this error.

Upvotes: 1

Related Questions