У меня был рабочий код. Я попытался добавить событие нажатия кнопки, но получил ошибку. Я думал, что добавление ссылки на System.Web.WebPages решит проблему, но потом я получил гигантскую ошибку:
Could not load file or assembly
System.Web.WebPagesor one of its dependencies.
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'System.Web.WebPages' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Ошибка источника:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Поэтому я решил удалить эту ссылку, но я все еще получаю эту ошибку. Почему я все еще получаю эту ошибку, хотя я удалил ссылку
да. Я понял ошибку. Несмотря на то, что я удалил ссылку, она все еще была в моей папке bin и устарела с помощью инструмента CMS, который я использовал. Мне пришлось получить обновленную версию и поместить ее в папку bin, что странно, потому что даже если бы я полностью удалил файл из папки bin, я все равно получил бы сообщение об ошибке.





Вы пытались очистить решение и построить снова?