C#:could not load type ' XXX. Global '

Source: Internet
Author: User



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 '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.