Getting validation errors while publishing the project

Program runs well in debug and run mode but gives validation error while publishing.

Hi @yuvrajsinghrathore570 ,

Could you maybe check your dependency versions or could you provide a screenshot of your dependencies used in here ?

There might be a conflict with the sub dependency versions, where a different version of the same sub dependency is used.




image
image

Error ERROR Validation Error BC31424: Type ‘System.Data.DataTable’ in assembly ‘586e3d81-4bca-40e1-b961-2f94e7b4b555, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ has been forwarded to assembly ‘System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Either a reference to ‘System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ is missing from your project or the type ‘System.Data.DataTable’ is missing from assembly ‘System.Data.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. HR_GENERATE_OFFER_LETTER_FILES (1)/HR_GENERATE_OFFER_LETTER_FILES/CODE/Performer_HR_OfferLetter/Framework/InitAllSettings.xaml

This is one of the error

Fixed the issue,Thank you

@yuvrajsinghrathore570 ,

Could you let us know what was the issue that you had observed and what did you do fix it ?

The elaboration on the steps could help others who are facing the same issue.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.