Deploying ASP.NET Core project via Azure DevOps (VSTS) to Azure WebApp missing files within site/wwwroot











up vote
0
down vote

favorite












I want to deploy an ASP.NET Core project to an Azure WebApp via Azure DevOps Build Pipeline.



My project structure looks like:



MyProject
-> src
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...
-> test
-> MyProjectTests
-> MyProjectTests.csproj
-> ...


So the projects are inside a folder "src", which maybe leads to problems within the Build Pipeline.



My build pipeline settings:
enter image description hereenter image description hereenter image description here



So there is no error within the build pipeline, but the dll's within site/wwwroot are not updated, like deploying manually. I only can see the folders containing the full source of the different projects within MyProject/src...
So the structure on the web app looks like:



site/wwwroot
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...


So I deleted all files within site/wwwroot and when I deploy via Azure DevOps I get following error on the WebApp: You do not have permission to view this directory or page.
When I change the setting "package or folder" to MyProject/src/MainProject I get following error on the WebApp: HTTP Error 502.5 - Process Failure



Is the package or folder settings wrong or something else?



And also, no tests can be found to execute..
Here is a part of the log:



2018-11-19T17:32:55.0038771Z Test selector : Test assemblies
2018-11-19T17:32:55.0042959Z Test assemblies : **release*test*.dll,!**obj**
2018-11-19T17:32:55.0043286Z Test filter criteria : null
2018-11-19T17:32:55.0047373Z Search folder : D:a1s
2018-11-19T17:32:55.0049408Z Run settings file : D:a1s
2018-11-19T17:32:55.0051612Z Run in parallel : false
2018-11-19T17:32:55.0053271Z Run in isolation : false
2018-11-19T17:32:55.0075597Z Path to custom adapters : null
2018-11-19T17:32:55.0076007Z Other console options : null
2018-11-19T17:32:55.0078359Z Code coverage enabled : false
2018-11-19T17:32:55.0079452Z Diagnostics enabled : false
2018-11-19T17:32:55.0084375Z Rerun failed tests: false
2018-11-19T17:32:55.0087931Z VisualStudio version selected for test execution : latest
2018-11-19T17:32:56.2022983Z ========================================================
2018-11-19T17:32:56.4234339Z ##[warning]No test assemblies found matching the pattern: **release*test*.dll,!**obj**.









share|improve this question
























  • That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
    – Brendan Green
    Nov 19 at 23:01












  • Anyone else? :)
    – tschännie
    Nov 26 at 7:47















up vote
0
down vote

favorite












I want to deploy an ASP.NET Core project to an Azure WebApp via Azure DevOps Build Pipeline.



My project structure looks like:



MyProject
-> src
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...
-> test
-> MyProjectTests
-> MyProjectTests.csproj
-> ...


So the projects are inside a folder "src", which maybe leads to problems within the Build Pipeline.



My build pipeline settings:
enter image description hereenter image description hereenter image description here



So there is no error within the build pipeline, but the dll's within site/wwwroot are not updated, like deploying manually. I only can see the folders containing the full source of the different projects within MyProject/src...
So the structure on the web app looks like:



site/wwwroot
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...


So I deleted all files within site/wwwroot and when I deploy via Azure DevOps I get following error on the WebApp: You do not have permission to view this directory or page.
When I change the setting "package or folder" to MyProject/src/MainProject I get following error on the WebApp: HTTP Error 502.5 - Process Failure



Is the package or folder settings wrong or something else?



And also, no tests can be found to execute..
Here is a part of the log:



2018-11-19T17:32:55.0038771Z Test selector : Test assemblies
2018-11-19T17:32:55.0042959Z Test assemblies : **release*test*.dll,!**obj**
2018-11-19T17:32:55.0043286Z Test filter criteria : null
2018-11-19T17:32:55.0047373Z Search folder : D:a1s
2018-11-19T17:32:55.0049408Z Run settings file : D:a1s
2018-11-19T17:32:55.0051612Z Run in parallel : false
2018-11-19T17:32:55.0053271Z Run in isolation : false
2018-11-19T17:32:55.0075597Z Path to custom adapters : null
2018-11-19T17:32:55.0076007Z Other console options : null
2018-11-19T17:32:55.0078359Z Code coverage enabled : false
2018-11-19T17:32:55.0079452Z Diagnostics enabled : false
2018-11-19T17:32:55.0084375Z Rerun failed tests: false
2018-11-19T17:32:55.0087931Z VisualStudio version selected for test execution : latest
2018-11-19T17:32:56.2022983Z ========================================================
2018-11-19T17:32:56.4234339Z ##[warning]No test assemblies found matching the pattern: **release*test*.dll,!**obj**.









share|improve this question
























  • That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
    – Brendan Green
    Nov 19 at 23:01












  • Anyone else? :)
    – tschännie
    Nov 26 at 7:47













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to deploy an ASP.NET Core project to an Azure WebApp via Azure DevOps Build Pipeline.



My project structure looks like:



MyProject
-> src
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...
-> test
-> MyProjectTests
-> MyProjectTests.csproj
-> ...


So the projects are inside a folder "src", which maybe leads to problems within the Build Pipeline.



My build pipeline settings:
enter image description hereenter image description hereenter image description here



So there is no error within the build pipeline, but the dll's within site/wwwroot are not updated, like deploying manually. I only can see the folders containing the full source of the different projects within MyProject/src...
So the structure on the web app looks like:



site/wwwroot
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...


So I deleted all files within site/wwwroot and when I deploy via Azure DevOps I get following error on the WebApp: You do not have permission to view this directory or page.
When I change the setting "package or folder" to MyProject/src/MainProject I get following error on the WebApp: HTTP Error 502.5 - Process Failure



Is the package or folder settings wrong or something else?



And also, no tests can be found to execute..
Here is a part of the log:



2018-11-19T17:32:55.0038771Z Test selector : Test assemblies
2018-11-19T17:32:55.0042959Z Test assemblies : **release*test*.dll,!**obj**
2018-11-19T17:32:55.0043286Z Test filter criteria : null
2018-11-19T17:32:55.0047373Z Search folder : D:a1s
2018-11-19T17:32:55.0049408Z Run settings file : D:a1s
2018-11-19T17:32:55.0051612Z Run in parallel : false
2018-11-19T17:32:55.0053271Z Run in isolation : false
2018-11-19T17:32:55.0075597Z Path to custom adapters : null
2018-11-19T17:32:55.0076007Z Other console options : null
2018-11-19T17:32:55.0078359Z Code coverage enabled : false
2018-11-19T17:32:55.0079452Z Diagnostics enabled : false
2018-11-19T17:32:55.0084375Z Rerun failed tests: false
2018-11-19T17:32:55.0087931Z VisualStudio version selected for test execution : latest
2018-11-19T17:32:56.2022983Z ========================================================
2018-11-19T17:32:56.4234339Z ##[warning]No test assemblies found matching the pattern: **release*test*.dll,!**obj**.









share|improve this question















I want to deploy an ASP.NET Core project to an Azure WebApp via Azure DevOps Build Pipeline.



My project structure looks like:



MyProject
-> src
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...
-> test
-> MyProjectTests
-> MyProjectTests.csproj
-> ...


So the projects are inside a folder "src", which maybe leads to problems within the Build Pipeline.



My build pipeline settings:
enter image description hereenter image description hereenter image description here



So there is no error within the build pipeline, but the dll's within site/wwwroot are not updated, like deploying manually. I only can see the folders containing the full source of the different projects within MyProject/src...
So the structure on the web app looks like:



site/wwwroot
-> Project1
-> Project1.csproj
-> ...
-> MainProject
-> MainProject.csproj
-> ...


So I deleted all files within site/wwwroot and when I deploy via Azure DevOps I get following error on the WebApp: You do not have permission to view this directory or page.
When I change the setting "package or folder" to MyProject/src/MainProject I get following error on the WebApp: HTTP Error 502.5 - Process Failure



Is the package or folder settings wrong or something else?



And also, no tests can be found to execute..
Here is a part of the log:



2018-11-19T17:32:55.0038771Z Test selector : Test assemblies
2018-11-19T17:32:55.0042959Z Test assemblies : **release*test*.dll,!**obj**
2018-11-19T17:32:55.0043286Z Test filter criteria : null
2018-11-19T17:32:55.0047373Z Search folder : D:a1s
2018-11-19T17:32:55.0049408Z Run settings file : D:a1s
2018-11-19T17:32:55.0051612Z Run in parallel : false
2018-11-19T17:32:55.0053271Z Run in isolation : false
2018-11-19T17:32:55.0075597Z Path to custom adapters : null
2018-11-19T17:32:55.0076007Z Other console options : null
2018-11-19T17:32:55.0078359Z Code coverage enabled : false
2018-11-19T17:32:55.0079452Z Diagnostics enabled : false
2018-11-19T17:32:55.0084375Z Rerun failed tests: false
2018-11-19T17:32:55.0087931Z VisualStudio version selected for test execution : latest
2018-11-19T17:32:56.2022983Z ========================================================
2018-11-19T17:32:56.4234339Z ##[warning]No test assemblies found matching the pattern: **release*test*.dll,!**obj**.






azure asp.net-core azure-devops






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 6:58

























asked Nov 19 at 19:43









tschännie

171111




171111












  • That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
    – Brendan Green
    Nov 19 at 23:01












  • Anyone else? :)
    – tschännie
    Nov 26 at 7:47


















  • That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
    – Brendan Green
    Nov 19 at 23:01












  • Anyone else? :)
    – tschännie
    Nov 26 at 7:47
















That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
– Brendan Green
Nov 19 at 23:01






That's the wrong source. You at the very least need to be pointing to MyProject/src/MainProject for the source. You might want to update the question with some more detail on the full project structure, the settings that you are using for the DevOps build pipeline, and concrete examples of the file issues that you are seeing when deployed,
– Brendan Green
Nov 19 at 23:01














Anyone else? :)
– tschännie
Nov 26 at 7:47




Anyone else? :)
– tschännie
Nov 26 at 7:47

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381586%2fdeploying-asp-net-core-project-via-azure-devops-vsts-to-azure-webapp-missing-f%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53381586%2fdeploying-asp-net-core-project-via-azure-devops-vsts-to-azure-webapp-missing-f%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy