• 习惯发布站点的同学有时候可能遇见以下错误

解决The type 'ASP.global_asax' exists in both ASP.global_asax同时存在问题

 

  • 这是发布时【预编译勾选/不勾选】产生的文件冲突导致的

解决The type 'ASP.global_asax' exists in both ASP.global_asax同时存在问题

 

  • 如果不勾选预编译会发布以下代码

解决The type 'ASP.global_asax' exists in both ASP.global_asax同时存在问题

 

  • 如果勾选预编译会发布以下代码

解决The type 'ASP.global_asax' exists in both ASP.global_asax同时存在问题

 

错误就在于此,如果非预编译Global.asax会在根目录,如果预编译Flobal.asax会生成dll在bin目录并且在根目录生成PrecompiledApp.config文件,检查一下错误就解决了。

 

相关文章:

  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-08-20
  • 2021-10-06
  • 2021-07-02
  • 2021-11-28
猜你喜欢
  • 2021-12-19
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-06-03
相关资源
相似解决方案