Getting the following error while publishing the web app in the server- "error copying the servicereferenceCould not find file"

Kurakula, Julia 21 Reputation points
2022-11-11T17:12:04.193+00:00

The TEST code is working fine locally. But while publishing the Web app, we are getting this error :

"Error: Copying file Service references\abcWCF\abcWCF.DssBicWcf.ProjectSearchCountry.datasource to obj\Release\Package\PackageTmp\Service References\abcWCF\abcWebApp.abcWCF.ProjectSearchCountry.datasource failed. Could not find file 'Service References\abcWCF\abcWebApp.abcWCF.ProjectSearchCountry.datasource'."

I have successfully updated the service references and clean, built the project.

Any Idea What the reason could be for this error?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,356 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,118 questions
Microsoft 365 Publishing
Microsoft 365 Publishing
Microsoft 365: Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line. Publishing: The process of preparing, producing, and releasing content for distribution or sale.
595 questions
{count} votes