32位.NET Framework 4.8 ASP.NET应用启动报CS1504错误求助
问题
运行基于.NET Framework 4.8的32位ASP.NET应用程序时,启动阶段出现编译错误:
error CS1504: Source file 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\...\xxx.cs' could not be opened ('Unspecified error ')
已尝试的解决方法
- 在32位模式下分别通过IISExpress和Local IIS运行应用程序
- 更新Visual Studio
- 重启系统
- 重新安装Visual Studio 2022和.NET Framework 4.8
- 通过配置将临时文件目录迁移至其他位置
- 删除临时文件夹/文件、清理项目并重新生成
内容的提问来源于stack exchange,提问作者balti
相关产品推荐
相关产品推荐

