在尝试在服务器上部署我的web服务时出现以下错误(同时参见屏幕截图)。不能找出原因。请帮忙!!无法在服务器上部署webservice
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error details
and modify your source file appropriately.
Parser Error Message: Could not create type 'WebServices.WebService'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="WebService.asmx.cs" Class="WebServices.WebService" %>
Source File: /WebServices/WebService.asmx Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
它在本地机器上工作吗?! –
是它在本地工作,但不在远程。应该做什么?感谢您的回复! –
看到我下面指定的链接,它涵盖了所有需要的检查,以确保您的web服务在您的服务器上正常工作 –