1

This question was already asked so many times. But the said solutions did not help. I tried to publish the WCF project. But it build successfully but failed on publish. I get the following message in output window.

Output window

I tried the following things

  1. Checked the VS2013 having administrator rights.
  2. Folders have permission to modify.
  3. Changed the "MSBuild project build output verbosity" option to "Detailed"

above things did not give me solution. I attached my solution explorer for reference.

Solution Explorer

How can I resolve my problem?

Arun Kumar T
  • 620
  • 4
  • 12
  • 26
  • From your screenshot It doesn't look like you turned on verbosity=detailed – Disappointed Aug 03 '15 at 08:01
  • Thanks for your response. It will not giving detailed info for publish alone. Building process will give detailed info. I changed the screen shot. Please refer it. – Arun Kumar T Aug 03 '15 at 08:06
  • Where is it trying to write to on publish? is that still accessible? – BugFinder Aug 03 '15 at 08:18
  • maybe [this](http://stackoverflow.com/questions/8120812/publish-failed-but-build-succeeded) helps you – Disappointed Aug 03 '15 at 08:19
  • @BugFinder: Thanks for response. Yes it is accessible. Actually, I have two projects, Application and WCF. Application is publish successfully. WCF only unsuccessful. I tried to publish same directory itself. But no use. – Arun Kumar T Aug 03 '15 at 08:21
  • @Disappointed: Actually I tried all the answers on that question. No use. – Arun Kumar T Aug 03 '15 at 08:24
  • @BugFinder: This project was worked and published successful when it was in VS2010. Now I changed it to VS2013. Then only problem starts. – Arun Kumar T Aug 03 '15 at 08:25
  • Downgrading my Microsoft.Net.Compilers to 2.4.0 (FINALLY!) fixed this for me. See: https://stackoverflow.com/a/48104124/826308 – Christopher Feb 23 '18 at 12:16

1 Answers1

1

I've ran into this issue before, the latest was while upgrading a WCF project from Visual Studio 2013 to 2015. The solution (with multiple projects) would build and run fine within VS but would fail when publishing the WCF service. No error in the publish step just the message:

========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

The solution has always been in the project properties. In the latest case, was the Build > Platform Target which was setup as x64 by default in VS2015, which I changed to "Any CPU" and resolved my issue. I hope it helps.

Canica
  • 2,650
  • 3
  • 18
  • 34