16

currently I'm trying to create an WebSetup Project for one of our ASP.net4/Silverlight-Web Applications using Visual Studio 2010.

I created the setup Project according to this tutorial, but when I'm trying to build the Setup Project (I did a build of the whole solution before), I get the following error:

Unable to build project output group 'Content Files from MyWebProject (Active)'  

According to this and almost any other site I found, this error refers to items that are included in the web-project but missing on disk.

I checked all my projects twice, there is no missing file. Are there any other solutions to this problem?

Other things I tried:

  • This post: I do have .xml Files accompanying our .dlls. I also removed the xml File from my project, but it didn't help either

  • This post: Setting the startup project to my web application changed nothing.

Both of the above Posts are from this thread on forums.asp.net.

Vertigo
  • 634
  • 1
  • 9
  • 24

3 Answers3

48

I had this problem also. (Visual Studio 2010 Pro, .Net 4.0) I found the missing file using "Publish..." option. Right click on the web app. Up near the top of the menu (5th from the top for me) is "Publish...". Click that. I did "Publish method: File System". Publish fails for the same reason that building the setup fails. The difference is that when Publish fails, it gives an error message.

user1698125
  • 481
  • 4
  • 3
14

In most cases it's due to missing files. Expand all your projects and check that none of them is marked with the Yellow Exclamation mark. For web applications the usual suspect is config.web and more specifically the Debug/Release versions , click on the '+' next to the Web.Config and see if they are marked as missing. Good luck

AshMan
  • 149
  • 1
  • 2
0

I have faced the same issue at my side. `

[how to resolve ERROR: Unable to build project output group 'Content Files from XYZ.xyz (Active)]

so solution ==> as per my project resolution I was just removed the reference file same name as the reference shown in the error block as [XYZ.xyz (Active) ] from the WCFSetup project followed by clean with Rebuild the solution.

The problem will be resolved and .MSI, as well as .setup file, will generated

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 20 '22 at 11:35