U4-4580 - Publish website - msbuild error

Created by David De Sloovere 01 Apr 2014, 19:00:55 Updated by Ian Robinson 29 Jan 2016, 10:54:25

Duplicates: U4-4510

Using VS2013. I started from an Empty ASP.NET Web Application. Installed 7.1.0 RC into it. Ran the project and let the installer finish. Then I wanted to try and publish to Azure Websites. Rightclicked the project and selected publish. Create a new site from the publish dialog (via import). Continue with the publish and a msbuild error occurs.

    Error	1	Could not open Source file: Could not find a part of the path 'c:\users\david\documents\visual studio 2013\Projects\WebApplication3\packages\UmbracoCms.7.1.0-RC\UmbracoFiles\umbraco\Install\Views\Web.config;\umbraco\Install\Views\Web.config'.	C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets	2275	5	WebApplication3

The file exists on disk. The ";\umbraco\Install\Views\Web.config" looks weird though.

After increasing the build logging verbosity:

...
2>Transformation succeeded
2>Transforming Source File: c:\users\david\documents\visual studio 2013\Projects\WebApplication3\WebApplication3\..\packages\UmbracoCms.7.1.0-RC\UmbracoFiles\umbraco\Install\Views\Web.config;.\umbraco\Install\Views\Web.config
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(2275,5): Error : Could not open Source file: Could not find a part of the path 'c:\users\david\documents\visual studio 2013\Projects\WebApplication3\packages\UmbracoCms.7.1.0-RC\UmbracoFiles\umbraco\Install\Views\Web.config;\umbraco\Install\Views\Web.config'.
2>Transformation failed

1 Attachments

Comments

Sebastiaan Janssen 01 Apr 2014, 19:21:47

Could you please try a local install of RC3 in this comment? http://issues.umbraco.org/issue/U4-4510#comment=67-13390


David De Sloovere 02 Apr 2014, 05:34:40

This is indeed solved in RC3 ! Nice job. (sorry that I did not see the 'dupe')


David De Sloovere 02 Apr 2014, 05:36:58

After publishing to Azure Websites, I get an error though: You can see the YSOD here http://umbracodeef01.azurewebsites.net


David De Sloovere 02 Apr 2014, 05:42:05

After publishing to Azure Websites, I get an error though.

[NullReferenceException: Object reference not set to an instance of an object.] umbraco.library.GetXmlNodeByXPath(String xpathQuery) +14

This is because the App_Data folder was empty after publish, which is ok. But the error might be handled better. Shall I create a new issue for this?


Sebastiaan Janssen 02 Apr 2014, 05:45:24

@DavidDeSloovere Weird, not seen that before. Yes please!


David De Sloovere 02 Apr 2014, 05:54:48

I'll create the issue tonight.


Sebastiaan Janssen 02 Apr 2014, 07:25:23

@DavidDeSloovere So how did you resolve this issue? I just tried pushing a site to Azure Websites and it was fine. A bit puzzled as to why I can't repro.


Sebastiaan Janssen 02 Apr 2014, 07:26:08

@DavidDeSloovere Ah I see, I have ExcludeApp_Data set to false. I'll try to exclude it.


Sebastiaan Janssen 02 Apr 2014, 07:29:55

@DavidDeSloovere Did you use SQL CE? The only way I can seem to reproduce the error is when the SQL CE database is not there.


David De Sloovere 02 Apr 2014, 11:01:52

@sebastiaan Indeed, I had the SQL CE option (justran the installer without changing anything). So the exception is thrown when the SQL CE database is missing.


Jan Vanuytrecht 07 Nov 2014, 09:20:18

Hi Sebastiaan, how did you fix the original 'Could not find a part of the path' error? Because stil getting it when publishing my Umbraco website to Azure. It's a site running on v7.1.8, but upgraded manually from 7.1.4 to 7.1.8, so maybe I missed a few things?


Jan Vanuytrecht 07 Nov 2014, 10:06:45

I found it already :-) Setting the Build action to 'None' fixed the error.


Jay Greasley 14 Nov 2014, 11:46:57

I'm seeing this as well (7.1.8)


Anthony 09 Dec 2014, 15:41:43

I'm seeing this in 7.1.9


Craig Stevens 28 Feb 2015, 23:21:22

I'm seeing this in 7.2.2 as well

Could not open Source file: Could not find a part of the path 'C:\VS2012\myProject\myProject\umbraco\Install\Views\Web.config;\umbraco\Install\Views\Web.config'


Ian Robinson 29 Jan 2016, 10:54:25

I'm see the same error when downloading Umbraco 7.3.6 via Nuget and then trying to publish to Azure.

"Could not open Source file: Could not find a part of the path" first for umbarco\Install\Views\Web.config and then for umbraco\Xslt\Web.config.

Setting both build actions to "None" allowed me to publish to Azure.


Priority: Normal

Type: Bug

State: Duplicate

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: