Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't Web Publish/Deploy Find my Web.config?

I've just clone OrchardCMS from codeplex, built it and tried to deploy it to my web hosting service using Visual Studio's 'Publish' command.

No files get published and the publish fails with the following error:

1>------ Publish started: Project: Orchard.Web, Configuration: Release Any CPU ------
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(2352,5): Error : Could not open Source file: Could not find a part of the path 'C:\Users\Tim\targetsite.co.uk\src\Orchard.Web\Media\web.config;Media\web.config'.
1>
========== Build: 0 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

I've checked the source code, and the file is there and in the correct folder. So what's this error message actually trying to tell me? What's going on here and how do I fix it?

like image 392
Tim Long Avatar asked Feb 01 '13 18:02

Tim Long


1 Answers

This is a bug. It's already been reported and is being addressed now:

  • http://orchard.codeplex.com/workitem/19264
  • http://orchard.codeplex.com/workitem/19282

The second report proposes a workaround that might help you out till this get fixed.

like image 59
Piotr Szmyd Avatar answered Oct 18 '22 12:10

Piotr Szmyd