Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

New .NET Core MVC/JQuery Project Azure Deployment Compile Error #12110


User avatar
0
indiominerals created

Our New .NET Core MVC/JQuery Project download compiles and runs fine on my Win10/64 machine. No code changes have yet been made to the project. I want to set up the Azure deployment now to support our development process. I followed exactly followed the instructions @ https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Deployment-Mvc-Core-Azure. However when I tried to invoke the publish, I get a compile error for a failed copy operation on 4 SubscriptionExpiringTenants files. The pathing looks correct in the exception message. Note that I changed the default area to "Admin". What is this error and how can I fix it? This is urgent. Thank you. Here is the error detail:

8/3/2024 1:25:35 AM System.AggregateException: One or more errors occurred. ---> Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details. --- End of inner exception stack trace --- ---> (Inner Exception #0) Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.<---

Microsoft.WebTools.Shared.Exceptions.WebToolsException: Build failed. Check the Output window for more details.

===================

Severity Code Description Project File Line Suppression State Error Unable to copy file "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.js" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.js". Could not find a part of the path 'C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.js'. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Could not copy "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.js" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.js". Exceeded retry count of 10. Failed. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Could not copy "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.js" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.js". Exceeded retry count of 10. Failed. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Unable to copy file "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.js" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.js". Could not find a part of the path 'C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.js'. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Unable to copy file "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.css" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.css". Could not find a part of the path 'C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.css'. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Could not copy "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.css" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.css". Exceeded retry count of 10. Failed. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Could not copy "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.css" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.css". Exceeded retry count of 10. Failed. IndioMinerals.AppraisalWell.Web.Mvc 0 Error Unable to copy file "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.css" to "C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.css". Could not find a part of the path 'C:\Users\MichaelMiller\IndioMinerals\repos\IndioMinerals.AppraisalWell\src\IndioMinerals.AppraisalWell.Web.Mvc\obj\Release\net8.0\PubTmp\Out\wwwroot\view-resources\Areas\Admin\Views\CustomizableDashboard\Widgets\SubscriptionExpiringTenants\SubscriptionExpiringTenants.min.css'. IndioMinerals.AppraisalWell.Web.Mvc 0


2 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi indiominerals

    Steps that can be taken:

    • Check the existence of files: Check whether the SubscriptionExpiringTenants files that may be the source of the error are in the correct place and name in the source directory.

    • Windows' maximum path length limit is 260 characters. If the roads are too long, you may encounter problems. Try moving your project to a directory with a shorter path. Or you can shorten the problematic file names, do not forget to change them in the relevant usage areas.

    • To clean temporary files in your project and reset the build process, go to Build > Clean Solution and Build > Rebuild Solution.

    • If the problem persists, you can try manually copying the relevant files from the source directory to the target directory.

    If the problem still persists after following these steps, please do not hesitate to contact us again.

  • User Avatar
    0
    indiominerals created

    I had already tried all the steps you suggested except for making the path shorter. That is the one thing I did not think of. That has to be it. It is not a coincidence that it is failing only on the longest files names in that folder :) Thank you!