<p>I have a solution with several projects in Visual 2008, let's say SuggestionProcessor (a class library) and Suggestions (a website) with a webhandler GetSuggestions.ashx. I changed a method in SuggestionProcessor which is used in the webhandler. The call in the webhandler has been adjusted to the changed method.</p>

<p>But now when I try to execute the webhandler after a rebuild I get an error that the method I changed is <strong>missing</strong>, displaying the <strong>old method signature</strong>. When I try to rebuild the entire project it seems that the website does not rebuild properly and the code I changed in the webhandler does not seem to be included in the rebuild. I made sure that the website is last in the build order.</p>

<p>What I tried is <strong>remove the dlls that the build process should rebuild</strong> from the bin folder (not the ones referenced from outside the website). When rebuilding I now get a: '<strong>could not load type</strong> Suggestions.global'. Duh, that is what the build process should create. What is going wrong here? </p>

[{'answer_id': 81926, 'author': 'cjheath', 'author_id': 337110, 'author_profile': 'https://Stackoverflow.com/users/337110', 'pm_score': 0, 'selected': False, 'text': '<p>I would check your web.config file, there may be references there that are causing the error since they are missing.</p>\n'}, {'answer_id': 81969, 'author': 'lomaxx', 'author_id': 493, 'author_profile': 'https://Stackoverflow.com/users/493', 'pm_score': 0, 'selected': False, 'text': '<p>Maybe try and right click on your solution and  select "Clean solution" and then try and rebuild all.</p>\n\n<p>If that doesn\'t work, check your solutions build configuration and make sure all your projects are getting built</p>\n'}, {'answer_id': 82014, 'author': 'Oded', 'author_id': 1583, 'author_profile': 'https://Stackoverflow.com/users/1583', 'pm_score': 0, 'selected': False, 'text': '<p>Try "Clean Solution", then building SuggestionProcessor, and after that clean and rebuild the web solution.</p>\n'}, {'answer_id': 82668, 'author': 'Drejc', 'author_id': 6482, 'author_profile': 'https://Stackoverflow.com/users/6482', 'pm_score': 0, 'selected': False, 'text': '<p>Visual Studio creates a copy of all your DLLs and sometimes this copies are not refreshed.\nJust execute <strong>iisreset</strong> and delete all folders in: </p>\n\n<blockquote>\n  <p>C:\\WINDOWS\\Microsoft.NET\\Framework\\v1.1.4322\\Temporary\n  ASP.NET Files\\</p>\n</blockquote>\n\n<p>Of course change windows installation folder and framework folder to your version!</p>\n'}, {'answer_id': 82837, 'author': 'Michiel Borkent', 'author_id': 6264, 'author_profile': 'https://Stackoverflow.com/users/6264', 'pm_score': 2, 'selected': True, 'text': "<p>I solved this one by reverting to a previous state when it still worked. </p>\n\n<p>Thanks for the suggestions, I'm sorry they didn't work in my situation. </p>\n\n<p>Shall I delete this question now that it doesn't really have a clear use for someone else?</p>\n"}, {'answer_id': 82873, 'author': 'kooshmoose', 'author_id': 7436, 'author_profile': 'https://Stackoverflow.com/users/7436', 'pm_score': 0, 'selected': False, 'text': "<p>I don't think so... I've seen similar issues in Visual Studio 2008 working on web projects where the build and rebuild would fail time after time. I knew that my changes shouldn't have affected the build so I just kept cleaning and building each of the individual projects in my solution until finally (and I do mean finally as in, it took up to 10 builds) my web project would build correctly. I have no idea why, but it feels like some sort of caching issue.</p>\n"}, {'answer_id': 2023292, 'author': 'jyoungdev', 'author_id': 120682, 'author_profile': 'https://Stackoverflow.com/users/120682', 'pm_score': 0, 'selected': False, 'text': '<p>From my answer at <a href="https://stackoverflow.com/questions/2005747/could-not-load-type-namespace-global-causing-me-grief/2023267#2023267">&quot;Could not load type [Namespace].Global&quot; causing me grief</a>:</p>\n<blockquote>\n<p>It seems that VS 2008 does not always add the .asax(.cs) files correctly by default.</p>\n</blockquote>\n<p>In this case, refreshing, rebuilding, removing and re-adding, etc. etc. will not fix the problem.  Instead:</p>\n<blockquote>\n<p>Check the Build Action of Global.asax.cs. It should be set to Compile.</p>\n<p>In Solution Explorer, Right-click Global.asax.cs and go to Properties. In the Properties pane, set the Build Action (while not debugging).</p>\n</blockquote>\n'}]
['https://Stackoverflow.com/questions/81911', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6264/']