You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 12:30:59