C# 在svc中使用带有逻辑的asmx文件时出现windows azure wcf问题
目前该公司有一项服务正在windows azure中运行,我做了一些需要投入生产的更改,但当我在azure Emulator中运行此服务时,该服务无法正常工作 在visual studio解决方案中,它与以下内容类似:C# 在svc中使用带有逻辑的asmx文件时出现windows azure wcf问题,c#,wcf,azure,asmx,svc,C#,Wcf,Azure,Asmx,Svc,目前该公司有一项服务正在windows azure中运行,我做了一些需要投入生产的更改,但当我在azure Emulator中运行此服务时,该服务无法正常工作 在visual studio解决方案中,它与以下内容类似: Service1.svc.cs//我在这个论坛上得到了答案 http://127.0.0.1:81/Service1.asmx http://127.0.0.1:82/Service1.asmx/CurrentVersion public class Service1 :
Service1.svc.cs//我在这个论坛上得到了答案
http://127.0.0.1:81/Service1.asmx
http://127.0.0.1:82/Service1.asmx/CurrentVersion
public class Service1 : IService1
{
public string CurrentVersion(string accountcode)
{
SiteServiceConfiguration sitecfg = GetSiteServiceConfiguration(accountcode);
return sitecfg.CurrentVersion;
}
}
[ServiceContract]
[WebService(Name = "Service1")]
[WebServiceBinding(Name = "ServiceSoap1", ConformsTo = WsiProfiles.BasicProfile1_1, EmitConformanceClaims = false)]
public interface IService1
{
[OperationContract]
[WebMethod]
string CurrentVersion(string accountcode);
}