Could not load type 'XXX.Global'

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

    I had this problem.

    I solved it with this solution, by giving CREATOR OWNER full rights to the Windows Temp folder. For some reason, that user had no rights at all assigned. Maybe because some time ago I ran Combofix on my computer.

    0 讨论(0)
  • 2020-12-01 07:44

    If your using visual studio 2010 this error can occur when you change the configuration deployment type. The 3 types are x86, x64 and Mixed mode. Changing to mixed mode setting for all projects in solution should resolve the issue. Don't forget to delete the bin, Lib files and change the tempdirectory output if your an ASP.NET website.

    0 讨论(0)
  • 2020-12-01 07:44

    This one drove me completely insane and I couldn't find anything helpful to solve it. This is probably not the reason most people have this issue but I just hope that someone else will benefit from this answer.

    What caused my problem was a <clear /> statement in the <assemblies> config section. I had added this because in production it had been required because there were multiple unrelated applications on the same hosting plan and I didn't want any of them to be affected by others. The more correct solution would have been to have just used web config transforms on publish.

    Hope this helps someone else!

    0 讨论(0)
  • 2020-12-01 07:44

    I fixed this error by simply switching from Debug to Release, launch program (It worked on release), then switch back to Debug.

    I tried just about everything else, including restarting Visual Studio and nothing worked.

    0 讨论(0)
  • 2020-12-01 07:52

    In my case, a AfterBuild target in the project to compile the web application was the reason for this error.

    See here for more info

    0 讨论(0)
  • 2020-12-01 07:53

    I had this same problem installing my app to a server. It ended up being the installer project, it wasn't installing all the files needed to run the web app. I tried to figure out where it was broken but in the end I had to revert the project to the previous version to fix it. Hope this helps someone...

    0 讨论(0)
提交回复
热议问题