The type "genersoft. zjgl_xd.xdxtxy.xdglpubsrv" cannot be created ".

Source: Internet
Author: User

Tag: failed to create type application server error source file

Background:

Today, I copied a WebService from another project, modified the namespace and assembly information, right-click it, and choose View in the browser. The following error message is displayed:

"/" Indicates a server error in the application. Analyzer error Description: An error occurred while analyzing the resources required to provide services to this request. Check the following detailed analysis error information and modify the source file as appropriate. Analyzer error message: failed to create type "genersoft. zjgl_xd.xdxtxy.xdglpubsrv ". Source error: Row 1: <% @ WebService Language = "C #" codebehind = "xdglpubsrv. asmx. CS "class =" genersoft. zjgl_xd.xdxtxy.xdglpubsrv "%> source file:/services/xdglpubsrv. asmx row: Version 1: Microsoft. net Framework Version: 4.0.30319; ASP. net version: 4.0.30319.1022
The reason is that after the class name is modified in the xdglpubsrv. asmx. CS file, the class name in xdglpubsrv. asmx is still caused by genersoft. zjgl_xd.xdxtxy.xdglpubsrv.
Solution:
Search for genersoft. zjgl_xd.xdxtxy.xdglpubsrv in the error message in Vs, find the xdglpubsrv. asmx file, and modify the class name.

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.