Could not load type 'XXX.Global'

后端 未结 18 1784
萌比男神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:38

    I've found that it happens when the Global.asax.(vb|cs) wasn't converted to a partial class properly.

    Quickest solution is to surround the class name 'Global' with [square brackets] like so (in VB.Net):

    Public Class [Global]
        Inherits System.Web.HttpApplication
        ...
    

提交回复
热议问题