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

<p>I don't actually need Global because I am not adding anything to it, but after I remove it I get more errors.</p>

[{'answer_id': 54027, 'author': 'pete blair', 'author_id': 5119, 'author_profile': 'https://Stackoverflow.com/users/5119', 'pm_score': 7, 'selected': True, 'text': '<p>There are a few things you can try with this, seems to happen alot and the solution varies for everyone it seems.</p>\n\n<ul>\n<li><p>If you are still using the IIS virtual directory make sure its pointed to the correct directory and also check the ASP.NET version it is set to, make sure it is set to ASP.NET 2.0.</p></li>\n<li><p>Clear out your bin/debug/obj all of them. Do a <em>Clean solution</em> and then a <em>Build Solution</em>.</p></li>\n<li><p>Check your project file in a text editor and make sure where its looking for the global file is correct, sometimes it doesnt change the directory.</p></li>\n<li><p>Remove the global from the solution and add it back after saving and closing. make sure all the script tags in the ASPX file point to the correct one after.</p></li>\n<li><p>You can try running the <em>Convert to Web Application</em> tool, that redoes all of the code and project files.</p></li>\n<li><p>IIS Express is using the wrong root directory (see answer in <a href="https://stackoverflow.com/questions/15818364/vs-2012-launching-app-based-on-wrong-path">VS 2012 launching app based on wrong path</a>)</p></li>\n</ul>\n\n<p>Make sure you close VS after you try them.</p>\n\n<p>Those are some things I know to try. Hope one of them works for you.</p>\n'}, {'answer_id': 228209, 'author': 'Mark Glorie', 'author_id': 952, 'author_profile': 'https://Stackoverflow.com/users/952', 'pm_score': 3, 'selected': False, 'text': "<p>I've found that it happens when the Global.asax.(vb|cs) wasn't converted to a partial class properly.</p>\n\n<p>Quickest solution is to surround the class name 'Global' with [square brackets] like so (in VB.Net):  </p>\n\n<pre><code>Public Class [Global]\n    Inherits System.Web.HttpApplication\n    ...\n</code></pre>\n"}, {'answer_id': 3295232, 'author': 'campo', 'author_id': 7293, 'author_profile': 'https://Stackoverflow.com/users/7293', 'pm_score': 1, 'selected': False, 'text': "<p>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...</p>\n"}, {'answer_id': 8938480, 'author': 'Pieter van Ginkel', 'author_id': 446261, 'author_profile': 'https://Stackoverflow.com/users/446261', 'pm_score': 6, 'selected': False, 'text': "<p><strong>The reason I encounter this issue is because I change the build configuration.</strong> When I set a web project to <code>x86</code>, it changes the output path to <code>bin\\x86\\Debug</code>. However, the output path should be <code>bin</code> and the web server won't find the binaries  because of this.</p>\n\n<p>The solution thus is to change the output path of the website back to <code>bin</code> after you change the build configuration.</p>\n"}, {'answer_id': 9211170, 'author': 'bhrionn', 'author_id': 1138368, 'author_profile': 'https://Stackoverflow.com/users/1138368', 'pm_score': 2, 'selected': False, 'text': "<p>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.\n 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. </p>\n"}, {'answer_id': 10113543, 'author': 'Doug Lampe', 'author_id': 550214, 'author_profile': 'https://Stackoverflow.com/users/550214', 'pm_score': 2, 'selected': False, 'text': '<p>This just happened to me and after trying everything else, I just happened to notice on the error message that the app pool was set to .Net 1.1.  I upgraded the app to 2.0, converted to web application, but never changed the app pool:</p>\n\n<p><strong>Version Information:</strong> Microsoft .NET Framework Version:1.1.4322.2490; ASP.NET Version:1.1.4322.2494</p>\n'}, {'answer_id': 11467652, 'author': 'user1444662', 'author_id': 1444662, 'author_profile': 'https://Stackoverflow.com/users/1444662', 'pm_score': 3, 'selected': False, 'text': '<p>Deleting the existing global.asax file and adding a new one, clears out this error. This has worked for me many times.</p>\n'}, {'answer_id': 11553579, 'author': 'MitchellKrenz', 'author_id': 361783, 'author_profile': 'https://Stackoverflow.com/users/361783', 'pm_score': 2, 'selected': False, 'text': "<p>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.</p>\n\n<p>What caused my problem was a <code>&lt;clear /&gt;</code> statement in the <code>&lt;assemblies&gt;</code> 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.</p>\n\n<p>Hope this helps someone else!</p>\n"}, {'answer_id': 11952523, 'author': 'MichelZ', 'author_id': 1317161, 'author_profile': 'https://Stackoverflow.com/users/1317161', 'pm_score': 1, 'selected': False, 'text': '<p>In my case, a AfterBuild target in the project to compile the web application was the reason for this error.</p>\n\n<p>See <a href="https://stackoverflow.com/questions/755645/asp-net-mvc-1-0-afterbuilding-views-fails-on-tfs-build">here</a> for more info</p>\n'}, {'answer_id': 15418527, 'author': 'mahesh reddy', 'author_id': 1286213, 'author_profile': 'https://Stackoverflow.com/users/1286213', 'pm_score': 1, 'selected': False, 'text': '<p>Removing Language="c#" in global.asax file resolved the issue for me.</p>\n'}, {'answer_id': 25073464, 'author': 'user173399', 'author_id': 3898156, 'author_profile': 'https://Stackoverflow.com/users/3898156', 'pm_score': 1, 'selected': False, 'text': "<p>In my case, I was duplicating an online site locally and getting this error locally in Utildev Cassini for asp.net 2.0. It turned out that I copied only global.asax locally and didn't copy the App_code conterpart of it. Copying it fixed the problem.</p>\n"}, {'answer_id': 27396704, 'author': 'rebulanyum', 'author_id': 1266820, 'author_profile': 'https://Stackoverflow.com/users/1266820', 'pm_score': 2, 'selected': False, 'text': "<p>Changing the address's port number (localhost:) worked for me :)</p>\n"}, {'answer_id': 35145788, 'author': 'Devendra Patel', 'author_id': 3027600, 'author_profile': 'https://Stackoverflow.com/users/3027600', 'pm_score': 0, 'selected': False, 'text': '<p>Ensure compiled dll of your project placed in proper bin folder.</p>\n\n<p>In my case, when i have changed the compiled directory of our subproject to bin folder of our main project, it worked.</p>\n'}, {'answer_id': 35611285, 'author': 'ascriven', 'author_id': 3390238, 'author_profile': 'https://Stackoverflow.com/users/3390238', 'pm_score': 0, 'selected': False, 'text': '<p>Had this error in my case I was renaming the application. I changed the name of the Project and the name of the class but neglected to change the "Assembly Name" or "Root namespace" in the "My Project" or project properties.</p>\n'}, {'answer_id': 36250841, 'author': 'Eng.Bassel', 'author_id': 5883618, 'author_profile': 'https://Stackoverflow.com/users/5883618', 'pm_score': 1, 'selected': False, 'text': '<p>When you try to access the Microsoft Dynamics NAV Web client, you get the following error.\nCould not load type \'System.ServiceModel.Activation.HttpModule\' from assembly \'System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 \nThis error can occur when there are multiple versions of the .NET Framework on the computer that is running IIS, and IIS was installed after .NET Framework 4.0 or before the Service Model in Windows Communication Foundation was registered.</p>\n\n<p>For Windows 7 and Windows Server 2008, use the ASP.NET IIS Registration Tool (aspnet_regiis.exe,) to register the correct version of ASP.NET. For more information about the aspnet_regiis.exe, see ASP.NET IIS Registration Tool at Microsoft web site.</p>\n\n<p>try this solution\n<a href="https://www.youtube.com/watch?v=LNwpNqgX7qw" rel="nofollow">https://www.youtube.com/watch?v=LNwpNqgX7qw</a></p>\n'}, {'answer_id': 37755278, 'author': 'fix', 'author_id': 1861044, 'author_profile': 'https://Stackoverflow.com/users/1861044', 'pm_score': 2, 'selected': False, 'text': '<p>I fixed this error by simply switching from Debug to Release, launch program (It worked on release), then switch back to Debug. </p>\n\n<p>I tried just about everything else, including restarting Visual Studio and nothing worked. </p>\n'}, {'answer_id': 44492478, 'author': 'cahit beyaz', 'author_id': 1639347, 'author_profile': 'https://Stackoverflow.com/users/1639347', 'pm_score': 0, 'selected': False, 'text': '<p>Deletin obj, bin folders and rebuilding fixed my issue</p>\n'}, {'answer_id': 57562557, 'author': 'bgmCoder', 'author_id': 1038866, 'author_profile': 'https://Stackoverflow.com/users/1038866', 'pm_score': 0, 'selected': False, 'text': '<p>I had this problem.</p>\n\n<p><a href="https://stackoverflow.com/a/8315381/1038866">I solved it with this solution</a>, 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.</p>\n'}]
['https://Stackoverflow.com/questions/54001', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3208/']