asp.net core 2.0无法删除PreCompiledViews.dll [英] asp.net core 2.0 unable to delete PreCompiledViews.dll

查看:176
本文介绍了asp.net core 2.0无法删除PreCompiledViews.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net core 2.0 Web应用程序.

当我将其发布到Web服务器(使用UNC路径)时,[AppName] .PrecompiledViews.dll被锁定,无法删除(因此无法重新发布该应用程序)./p>

我尝试手动删除文件-除此dll外,其他所有东西都可以删除...而且我没有权限去重新启动IIS worker进程以释放锁,所以我我不知所措...等待应用程序回收是我目前的最佳计划.

欢迎提出任何建议.

(使用以下内容:)

Microsoft Visual Studio Community 2017版本15.4.2 VisualStudio.15.Release/15.4.2 + 27004.2006 Microsoft .NET Framework 版本4.7.02046

安装版本:社区

Visual Basic 2017 00369-60000-00001-AA538 Microsoft Visual Basic 2017

Visual C#2017 00369-60000-00001-AA538 Microsoft Visual C#2017

Visual F#4.1 00369-60000-00001-AA538 Microsoft Visual F#4.1

用于Visual Studio软件包的Application Insights工具8.9.00809.2 Visual Studio的Application Insights工具

ASP.NET和Web工具2017 15.0.30925.0 ASP.NET和Web工具2017

ASP.NET Core Razor语言服务1.0提供语言服务 适用于ASP.NET Core Razor.

ASP.NET Web框架和工具2017 5.2.50921.0其他 信息,请访问 https://www.asp.net/

Azure App服务工具v3.0.0 15.0.30915.0 Azure App服务工具 v3.0.0

Azure Data Lake Node 1.0此软件包包含Data Lake 服务器浏览器的集成节点.

用于Visual Studio 2.2.9000.1 Microsoft Azure的Azure Data Lake工具 用于Visual Studio的Data Lake工具

用于Visual Studio 2.2.9000.1 Microsoft Azure的Azure Data Lake工具 用于Visual Studio的Data Lake工具

通用Azure工具1.10提供通用服务以供Azure使用 移动服务和Microsoft Azure工具.

Cookiecutter 3.0.17297.4提供查找,实例化工具 并以cookiecutter格式自定义模板.

Fabric.DiagnosticEvents 1.0结构诊断事件

JavaScript语言服务2.0 JavaScript语言服务

JavaScript Project System 2.0 JavaScript项目系统

JavaScript UWP项目系统2.0 JavaScript UWP项目系统

Merq 1.1.17-rc(cba4571)命令总线,事件流和异步管理器 用于Visual Studio扩展.

Microsoft Azure HDInsight Azure节点2.2.9000.1下的HDInsight节点 Azure节点

Microsoft Azure Hive查询语言服务2.2.9000.1语言 Hive查询服务

用于Visual Studio 1.8的Microsoft Azure Service Fabric工具Microsoft 用于Visual Studio的Azure Service Fabric工具

Microsoft Azure流分析语言服务2.2.9000.1 Azure流分析的语言服务

Microsoft Azure流分析节点1.0 Azure流分析 Azure节点下的节点

Microsoft Azure工具2.9用于Microsoft Visual的Microsoft Azure工具 Studio 2017-v2.9.50719.1

用于Visual Studio 0.3的Microsoft连续交付工具 简化了持续构建集成的配置,并且 在Visual Studio IDE中持续进行构建交付.

Microsoft JVM Debugger 1.0提供了对连接 Visual Studio调试器到兼容JDWP的Java虚拟机

基于Microsoft MI的调试器1.0提供对连接的支持 Visual Studio到MI兼容的调试器

Microsoft Visual Studio VC程序包1.0 Microsoft Visual Studio VC 包装

Visual Studio 4.7.4-pre(c2d89eb)的单声道调试支持 使用Visual Studio调试Mono进程.

Node.js工具1.4.10918.1添加了对开发和调试的支持 Visual Studio中的Node.js应用程序

NuGet软件包管理器4.4.0 Visual Studio中的NuGet软件包管理器. 有关NuGet的更多信息,请访问 http://docs.nuget.org/.

Python 3.0.17297.4提供IntelliSense,项目,模板, 调试,交互式窗口以及其他对Python的支持 开发人员.

Python-Django支持3.0.17297.4提供模板和 Django Web框架的集成.

Python-IronPython支持3.0.17297.4提供模板和 集成基于IronPython的项目.

Python-分析支持3.0.17297.4对Python的分析支持 项目.

用于Visual Studio 1.2.30905.1244的R工具提供项目系统R R编程语言的交互式窗口,绘图等.

SQL Server数据工具15.1.61707.200 Microsoft SQL Server数据工具

ToolWindowHostedEditor 1.0将json编辑器托管到工具窗口中

用于Visual Studio的TypeScript 2.3.5.0 TypeScript工具

用于的Visual Studio代码调试适配器主机程序包1.0互操作层 在Visual Studio中托管Visual Studio Code调试适配器

适用于通用Windows应用的Visual Studio工具15.0.27004.2006 适用于通用Windows应用程序的Visual Studio工具允许您构建一个 一次通用的应用程序体验,可以覆盖所有正在运行的设备 Windows 10:手机,平板电脑,PC等.它包括微软 Windows 10软件开发套件.

带有Visual Studio IoT组件的VisualStudio.IoT 1.0程序包

VisualStudio.Mac 1.0 Mac Visual Studio扩展

WebJobs工具v1.0.0 15.0.30915.0 WebJobs工具v1.0.0

Xamarin 4.7.10.33(70936af)Visual Studio扩展以启用 Xamarin.iOS和Xamarin.Android的开发.

Xamarin.Android SDK 8.0.2.1(HEAD/c2a33d8ea)Xamarin.Android 参考程序集和MSBuild支持.

Xamarin.iOS和Xamarin.Mac SDK 11.2.1.0(12e80e0)Xamarin.iOS和 Xamarin.Mac参考程序集和MSBuild支持.

解决方案

这对我来说是从appveyor部署到azure服务器的工作:

您可以在发布配置文件(.pubxml)中配置appOffline规则.像这样将EnableMSDeployAppOffline元素添加到PropertyGroup:

<PropertyGroup>
  <EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
</PropertyGroup>

这是Microsoft文档的链接:https://www.asp.net/

Azure App Service Tools v3.0.0 15.0.30915.0 Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.2.9000.1 Microsoft Azure Data Lake Tools for Visual Studio

Azure Data Lake Tools for Visual Studio 2.2.9000.1 Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Cookiecutter 3.0.17297.4 Provides tools for finding, instantiating and customizing templates in cookiecutter format.

Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events

JavaScript Language Service 2.0 JavaScript Language Service

JavaScript Project System 2.0 JavaScript Project System

JavaScript UWP Project System 2.0 JavaScript UWP Project System

Merq 1.1.17-rc (cba4571) Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure HDInsight Azure Node 2.2.9000.1 HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.2.9000.1 Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 1.8 Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.2.9000.1 Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50719.1

Microsoft Continuous Delivery Tools for Visual Studio 0.3 Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio 4.7.4-pre (c2d89eb) Support for debugging Mono processes with Visual Studio.

Node.js Tools 1.4.10918.1 Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 4.4.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Python 3.0.17297.4 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.

Python - Django support 3.0.17297.4 Provides templates and integration for the Django web framework.

Python - IronPython support 3.0.17297.4 Provides templates and integration for IronPython-based projects.

Python - Profiling support 3.0.17297.4 Profiling support for Python projects.

R Tools for Visual Studio 1.2.30905.1244 Provides project system, R Interactive window, plotting, and more for the R programming language.

SQL Server Data Tools 15.1.61707.200 Microsoft SQL Server Data Tools

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript 2.3.5.0 TypeScript tools for Visual Studio

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for Universal Windows Apps 15.0.27004.2006 The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

VisualStudio.IoT 1.0 Package with IoT components for Visual Studio

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

WebJobs Tools v1.0.0 15.0.30915.0 WebJobs Tools v1.0.0

Xamarin 4.7.10.33 (70936af) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK 8.0.2.1 (HEAD/c2a33d8ea) Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 11.2.1.0 (12e80e0) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

解决方案

This work for me deploying from appveyor to an azure server:

You can configure the appOffline rule in the publishing profile (.pubxml). Add the EnableMSDeployAppOffline element to the PropertyGroup like this:

<PropertyGroup>
  <EnableMSDeployAppOffline>true</EnableMSDeployAppOffline>
</PropertyGroup>

This is the link to the Microsoft documentation: https://docs.microsoft.com/en-us/iis/publish/troubleshooting-web-deploy/web-deploy-error-codes#errorfileinuse

这篇关于asp.net core 2.0无法删除PreCompiledViews.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆