Analyzer error message: Unable to load type

xiaoxiao2021-03-06  99

Analyzer error message: Unable to load the type "WebApplication1.global". Analyzer error message: Failed to load the type "WebApplication1.webform1".

1, solution:

Please follow the steps below: 1. Look at the last modified program, is there no compilation? If there is no compilation, modify the error code. 2. Delete the original bin below the DLL file (remove the program generated DLL file, the referenced DLL file is not deleted) 3. In VS.NET, select "Generate" -> Regenerated Solution. Then, re-run and see if it is successful. 2, miss one:

If you change the root naming space of the project, such as XIaoniuge.microcms, and the current project is in version management state, then you should open the global.asax file with Notepad, and modify Microcms to xiaoniugE.microcms.

3, today I found that there is still a case that will also produce this error message:

When a .aspx or .ascx file in the project is excluded from the project, and some pages need to call this file, it will also generate such errors. At this time, you can include the file into the project, then Re-compiling it.

4,

Workaround: Set the program directory to virtual directory

转载请注明原文地址:https://www.9cbs.com/read-97382.html

New Post(0)