An error when publishing a web service
Hello!
I have created a web service and I am having some problems publishing it. I recieve this error every time:
Server Error in '/WebServices' 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 'Service'.
Source Error:
Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>
Source File: /WebServices/ServiceTest/Service.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.
I found some guides on how to solve this problem, that said that this is a problem with the setting of the virtual directory (whatever that means... I have no idea...)
Can anyone please post a truely working published web service so that I can see the structure of the folders and the content of the asmx file and learn from that what changes needs to be made to my web service?
Thanks!!
:wave: