2
新しいASP.NETコアプロジェクトでコントローラの足場をしようとすると、エラーが発生します。選択したコードジェネレータをVS 2017の足場に実行する際にエラーが発生しました
これは、問題を再現するための正確な手順です:
右コントローラのフォルダをクリックし、新しいプロジェクト> ASP.netコアWebアプリケーション]> [ウェブAPIを作成し
。
[追加]> [コントローラー]> [APIコントローラー]が空です。
ERROR:
There was an error running the selected code generator:
Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.
Unhandled Exception: System.AggregateException: One or more errors occurred.
(Unable to write data to the transport connection:
An established connection was aborted by the software in your host machine.)
私は、Visual Studio 2017 RCの最新のビルドを持っています。
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="1.1.1" />
===
私はscafoldingをしようとするたびに、dotnet.exeが中にクラッシュしたイベントビューアで見つかった:私は、最新のrefrencesを持ってcsprojファイルプロジェクトで
背景。
Fault bucket 129390288245, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: C:\Program Files\dotnet\dotnet.exe
P2: 1.1.0.1179
P3: 5820b092
P4: System.Net.Sockets
P5: 4.6.24705.1
P6: 581d6231
P7: 187
P8: 17
P9: System.AggregateException
P10:
Attached files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7A90.tmp.mdmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7B8B.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7B8C.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER7BAD.tmp.txt
These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_C__Program Files_f41bf27ea39ac572c183c70b1a647b1d5fdfbab_66e69dae_3d448260
Analysis symbol:
Rechecking for solution: 0
Report Id: 19b7e4e4-fb57-487d-81b6-528f04a11eb7
Report Status: 268435456
Hashed bucket: 57d54f0839232cc5a9588d9f015bb19f
どのように発見しましたか? –
[donet core runtime](https://www.microsoft.com/net/download/core)を再インストールしても問題はありません。私は同じコードの問題を抱えていましたが、別の原因がありました。私は[この問題](https://github.com/aspnet/Scaffolding/issues/342)で納得していました。 –