zoukankan      html  css  js  c++  java
  • netcore发布失败

    2.2  发布Views  <MvcRazorCompileOnPublish>true</MvcRazorCompileOnPublish>

    导致

    发布失败
    ---------------------------
    发布遇到错误。 
    生成失败。检查输出窗口了解更多详细信息。 

    已将诊断日志写入以下位置: 
    “C:UsersddddAppDataLocalTemp mpD3B2.tmp”。 
    ---------------------------
    确定

    2019-9-18 14:25:03
    System.AggregateException: 发生一个或多个错误。 ---> System.Exception: 生成失败。检查输出窗口了解更多详细信息。
    --- 内部异常堆栈跟踪的结尾 ---
    在 System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
    在 System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
    在 Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__2()
    在 System.Threading.Tasks.Task`1.InnerInvoke()
    在 System.Threading.Tasks.Task.Execute()
    --- 引发异常的上一位置中堆栈跟踪的末尾 ---
    在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    在 Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__127.MoveNext()
    ---> (内部异常 #0) System.Exception: 生成失败。检查输出窗口了解更多详细信息。<---

    发布失败
    ---------------------------
    发布遇到错误。
    生成失败。检查输出窗口了解更多详细信息。
    已将诊断日志写入以下位置:
    “C:UsersdongAppDataLocalTemp mp44FA.tmp”。 
    ---------------------------
    确定   
    ---------------------------
    2020-1-13 10:11:38
    System.AggregateException: 发生一个或多个错误。 ---> System.Exception: 生成失败。检查输出窗口了解更多详细信息。
       --- 内部异常堆栈跟踪的结尾 ---
       在 System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       在 System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       在 Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.<>c__DisplayClass43_0.<PublishAsync>b__2()
       在 System.Threading.Tasks.Task`1.InnerInvoke()
       在 System.Threading.Tasks.Task.Execute()
    --- 引发异常的上一位置中堆栈跟踪的末尾 ---
       在 System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       在 Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.<RunPublishTaskAsync>d__127.MoveNext()
    ---> (内部异常 #0) System.Exception: 生成失败。检查输出窗口了解更多详细信息。<---
     
    ===================
    发布失败
    ---------------------------

    工具-- 选项 -- 项目和解决方案 --生成并运行, 对 msbuild的输出级别 设置为详细 。

    -----------------------------------------------------------------------------
     部署.NET网站出现No relevant source lines错误的解决方法
     
    No relevant source lines
    必须给网站文件夹Users组读的权限,注意,是【读】权限就可以了
    -----------------------------------------------------------------------------
    Server Error in '/' Application.
    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 
    Parser Error Message: An error occurred loading a configuration file: Directory 'E:新建文件夹www3App_Code' does not exist. Failed to start monitoring file changes.
    Source Error: 
    [No relevant source lines]
    Source File: E:新建文件夹www3web.config    Line: 0 
     
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2117.0
     
     
    没有找到E:新建文件夹www3App_Code 文件夹
    -----------------------------------------------------------------------------

     

  • 相关阅读:
    .Net Core DI依赖注入:一个接口注入多个实现类(转载)
    单表千万行数据库 LIKE 搜索优化手记(链接)
    Do the JSON keys have to be surrounded by quotes?(转载)
    梳理情绪解决问题
    MYSQL主从数据库同步备份配置的方法
    VMware ESXI 6.5 安装及配置
    linux centos7 完整邮件服务器搭建及调用_2018_lcf
    利用Tampermonkey(油猴)+ IDM 实现百度云盘大文件下载(IDM安装教程)
    Java中使用feign遇到的坑
    微服务为什么要有服务发现与注册?
  • 原文地址:https://www.cnblogs.com/mingjing/p/11542265.html
Copyright © 2011-2022 走看看