1

I have a website developed in Asp.net and C# with mssql database. I use a web service file named Service.asmx file which contains

<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>

I published the site and give option of precompile. The contents of App_Code turned into App_Code.dll file in a bin folder and so the service.asmx file now refers to incorrect codebehind. And I am getting error "No service defined in Service.asmx ". How to solve this error.

Any help will be appreciated. Thanks in advance

user2363957
  • 93
  • 1
  • 11

0 Answers0