We have moved to GitHub Issues
Created by David De Sloovere 01 Apr 2014, 19:00:55 Updated by Ian Robinson 29 Jan 2016, 10:54:25
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
Could you please try a local install of RC3 in this comment? http://issues.umbraco.org/issue/U4-4510#comment=67-13390
This is indeed solved in RC3 ! Nice job. (sorry that I did not see the 'dupe')
After publishing to Azure Websites, I get an error though: You can see the YSOD here http://umbracodeef01.azurewebsites.net
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?
@DavidDeSloovere Weird, not seen that before. Yes please!
I'll create the issue tonight.
@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.
@DavidDeSloovere Ah I see, I have ExcludeApp_Data set to false. I'll try to exclude it.
@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.
@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.
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?
I found it already :-) Setting the Build action to 'None' fixed the error.
I'm seeing this as well (7.1.8)
I'm seeing this in 7.1.9
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'
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.
Backwards Compatible: True
Due in version: