Today, when switching from the current network code to local debugging, after the Web. config changed the interface, it suddenly found that the interface page pops up this non-loaded error:
C #, failed to load type
Could not load type ' XXX. Global '
It is very puzzling, puzzled, the project does not contain the interface, not Ah, has been included in the, click http://localhost:5320/ Port, again this error, is very puzzled.
Then found on the Internet, find that most of the solution is to delete the global file, and then reload. Also some rebuld succeed.
I this place is rebuld unsuccessful, global file Delete is can, the problem is I did not want to solve, asked carefully, find the following methods.
Solution,
On the not loaded project, locate the interface or file, right-click to find View in Browser, Click to make it run successfully in the browser, and then close.
again to Web. config found in http://localhost:8080/aa.asmx, Click to successfully execute the
Note: Local call interface, no directory, can write interface name directly
is a wonderful, eh, wonderful world, really sentimental!!!
PS: This article only for the record exchange, does not do his use. cannot be reproduced without permission.
C#:could not load type ' XXX. Global '