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.