本文介绍了尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误.发生了一个或多个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从源 url 克隆了项目.我的朋友使用 .NetCore 1.0.0-preview2-003121 sdk 开发了 asp.net core web 应用程序.但是在我的电脑上,我安装了 .NetCore 1.0.1-preview2-003131 sdk.我收到错误.我更改了 global.json 文件中的版本,如下所示,但仍然没有解决方案.我用谷歌搜索,但所有解决方案都不适合我.

I have clone the project from source url. My friend has developed the asp.net core web application using .NetCore 1.0.0-preview2-003121 sdk. However on my pc I have install .NetCore 1.0.1-preview2-003131 sdk. I am getting the error. I changed the version in the global.json file as you can see below but still no solution.I google it but all the solution are not working for me.

Global.json 文件

Global.json file

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-preview2-003131"
  }
}

项目.json

{
  "userSecretsId": "aspnet-FMM-02f339eb-4af7-42c9-b7f3-d05b48d36811",

  "dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.0.0",
      "type": "platform"
    },
    "Microsoft.AspNetCore.Authentication.Cookies": "1.0.0",
    "Microsoft.AspNetCore.Diagnostics": "1.0.0",
    "Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore": "1.0.0",
    "Microsoft.AspNetCore.Mvc": "1.0.0",
    "Microsoft.AspNetCore.Razor.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
    "Microsoft.AspNetCore.StaticFiles": "1.0.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
    "Microsoft.Extensions.Configuration.Json": "1.0.0",
    "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0",
    "Microsoft.Extensions.Logging": "1.0.0",
    "Microsoft.Extensions.Logging.Console": "1.0.0",
    "Microsoft.Extensions.Logging.Debug": "1.0.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
    "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0",
    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.EntityFrameworkCore.Tools": {
      "version": "1.0.0-preview2-final",
      "type": "build"
    },
    "Microsoft.EntityFrameworkCore": "1.0.0",
    "Microsoft.AspNetCore.Identity": "1.0.0",
    "Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.0.0",
    "Microsoft.EntityFrameworkCore.Relational": "1.0.0",
    "Microsoft.EntityFrameworkCore.SqlServer": "1.0.0",
    "Microsoft.EntityFrameworkCore.Design": "1.0.0-preview2-final",
    "Microsoft.AspNetCore.Authentication.Facebook": "1.0.0",
    "Microsoft.AspNetCore.Authentication.Google": "1.0.0",
    "MailKit": "1.8.1",
    "NLog.Extensions.Logging": "1.0.0-*",
    "System.Data.SqlClient": "4.1.0"
  },

  "tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
    "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
    "Microsoft.Extensions.SecretManager.Tools": "1.0.0-preview2-final",
    "Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
      "version": "1.0.0-preview2-final",
      "imports": [
        "portable-net45+win8"
      ]
    }
  },

  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "portable-net45+win8"
      ]
    }
  },

  "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true,
    "xmlDoc": false
  },

  "runtimeOptions": {
    "configProperties": {
      "System.GC.Server": true
    }
  },

  "publishOptions": {
    "include": [
      "wwwroot",
      "Views",
      "Areas/**/Views",
      "appsettings.json",
      "web.config",
      "nlog.config"
    ]
  },

  "scripts": {
    "prepublish": [ "bower install" ],
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
  }
}

我电脑上的点网版

我该如何解决这个问题.请任何人都可以让我知道这件事.[

How can I solve this issue. Please can anyone let me know about this.[

[

推荐答案

当三件事都为真时,就会出现这个问题:

That problem can occur when three things are true:

  1. 您的应用正在尝试使用 SSL,
  2. 您的应用没有设置 SSL 证书,并且
  3. 您正在调试您的应用(这会阻止 SSL 证书设置).

作为快速修复尝试,通过 + 在不调试的情况下运行应用程序或通过 + + .这可能会为您安装 SSL 证书.如果没有,请考虑将应用的启动设置从 HTTPS 更改为 HTTP.如果您确实需要 SSL,则必须弄清楚如何在本地计算机上安装和使用 SSL 证书.

As a quick fix attempt, run the app without debugging via + or view the app in the browser via + + . That might install the SSL certificate for you. If it does not, consider changing your app's launch settings from HTTPS to HTTP. If you really need SSL, you'll have to figure out how to install and use an SSL certificate on your local machine.

在 GitHub 和 StackOverflow 上查看这些内容.

Checkout out these on GitHub and StackOverflow.

这篇关于尝试确定托管您的应用程序的 dotnet.exe 的进程 ID 时发生错误.发生了一个或多个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 18:12