我的Web应用程序有问题。我刚刚创建了我的第一个Web应用程序。更新数据库后,“大概”出现了错误消息“ HTTP错误502.5-进程失败”。我知道我可以在stackoverflow上找到很多解决此问题的方法,但是找不到确切的解决方案。由于它是一个点网核心项目,因此我没有“ web.config”。嗨
BigProject.csproj:
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<None Include="wwwroot\index.html" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.1.2" PrivateAssets="All" />
<PackageReference Include="OdeToCode.UseNodeModules" Version="1.0.6" />
</ItemGroup>
<ItemGroup>
<Folder Include="Services\" />
<Folder Include="Views\Shared\" />
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties package_1json__JSONSchema="" /></VisualStudio></ProjectExtensions>
</Project>
package.json:
{
"version": "^1.0.0",
"name": "asp.net",
"private": true,
"dependencies": {
"bootstrap": "^4.1.1",
"jquery": "^3.3.1",
"jquery-validation": "^1.17.0",
"jquery-validation-unobtrusive": "^3.2.10"
},
"devDependencies": {}
}
launchSettings.json
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:8888/",
"sslPort": 44370
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"BigProject": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
project.assets.json
version": 3,
"targets": {
".NETCoreApp,Version=v2.1": {
"Microsoft.AspNet.WebApi.Client/5.2.6": {
"type": "package",
"dependencies": {
"Newtonsoft.Json": "10.0.1",
"Newtonsoft.Json.Bson": "1.0.1"
},
"compile": {
"lib/netstandard2.0/System.Net.Http.Formatting.dll": {}
},
"runtime": {
"lib/netstandard2.0/System.Net.Http.Formatting.dll": {}
}
},
"Microsoft.AspNetCore/2.1.1": {
"type": "package",
"dependencies": {
"Microsoft.AspNetCore.Diagnostics": "2.1.1",
"Microsoft.AspNetCore.HostFiltering": "2.1.1",
"Microsoft.AspNetCore.Hosting": "2.1.1",
"Microsoft.AspNetCore.Routing": "2.1.1",
"Microsoft.AspNetCore.Server.IISIntegration": "2.1.1",
"Microsoft.AspNetCore.Server.Kestrel": "2.1.1",
"Microsoft.AspNetCore.Server.Kestrel.Https": "2.1.1",
"Microsoft.Extensions.Configuration.CommandLine": "2.1.1",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "2.1.1",
"Microsoft.Extensions.Configuration.FileExtensions": "2.1.1",
"Microsoft.Extensions.Configuration.Json": "2.1.1",
"Microsoft.Extensions.Configuration.UserSecrets": "2.1.1",
"Microsoft.Extensions.Logging": "2.1.1",
"Microsoft.Extensions.Logging.Configuration": "2.1.1",
"Microsoft.Extensions.Logging.Console": "2.1.1",
"Microsoft.Extensions.Logging.Debug": "2.1.1"
},
"compile": {
"lib/netstandard2.0/Microsoft.AspNetCore.dll": {}
},
"runtime": {
"lib/netstandard2.0/Microsoft.AspNetCore.dll": {}
}
事件查看器错误:
具有物理根目录'C:\ Users \ prywatny \ Desktop \ Projekt Visual Studio \ BigProject \ BigProject \'的应用程序'MACHINE / WEBROOT / APPHOST / BIGPROJECT'无法使用命令行'c:\ program files(x86)启动进程\ microsoft visual studio \ 2017 \ community \ common7 \ ide \ extensions \ microsoft \ web工具\ projectsystem \ VSIISExeLauncher.exe -argFile“ C:\ Users \ prywatny \ AppData \ Local \ Temp \ tmp98B6.tmp”',ErrorCode =' 0x80004005':0。