Could not load type 'XXX.Global'

后端 未结 18 1798
萌比男神i
萌比男神i 2020-12-01 07:06

Migrating a project from ASP.NET 1.1 to ASP.NET 2.0 and I keep hitting this error.

I don\'t actually need Global because I am not adding anything to it, but after I

18条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 07:43

    The reason I encounter this issue is because I change the build configuration. When I set a web project to x86, it changes the output path to bin\x86\Debug. However, the output path should be bin and the web server won't find the binaries because of this.

    The solution thus is to change the output path of the website back to bin after you change the build configuration.

提交回复
热议问题