Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在svc中使用带有逻辑的asmx文件时出现windows azure wcf问题_C#_Wcf_Azure_Asmx_Svc - Fatal编程技术网

C# 在svc中使用带有逻辑的asmx文件时出现windows azure wcf问题

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 :

目前该公司有一项服务正在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 : 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);
}