开启WEBSERVICE的远程调试功能

在.NET 中已经默认将WEBSERVICE的远程调试功能关闭,有的时候我们需要远程调试程序的时候,就需要打开此功能我们只需在WEBSERVICE的项目的中 添web.config的配置节下面加一下一段配置就OK了,代码如下:
system.web>
        <compilation debug=”true” />
   <webServices>
         <protocols>
            <add name=”HttpSoap”/>
            <add name=”HttpPost”/>
            <add name=”HttpGet”/>
            <add name=”Documentation”/>
         </protocols>
      </webServices>
 </system.web>

保存一段DOTNET代码

一段DOTNET代码
String the_rar;
RegistryKey the_Reg;
Object the_Obj;
String the_Info;
ProcessStartInfo the_StartInfo;
Process the_Process;
try
{
the_Reg = Registry.ClassesRoot.OpenSubKey(@”Applications\WinRar.exe\Shell\Open\Command”);
the_Obj = the_Reg.GetValue(“”);
the_rar = the_Obj.ToString();the_Reg.Close();
the_rar = the_rar.Substring(1, the_rar.Length – 7);
int lastl = the_rar.LastIndexOf(“\\”);
the_rar = the_rar.Substring(0, lastl) + “\\rar.exe”;
//rar.exe x -o+ -x@exlist.txt rardoc 不提示覆盖解压缩 exclist.txt包含去除的文件,一行一个类型
if (!_exlistPath.Equals(“”))
{
the_Info = ” X -o+ -x@” + _exlistPath + ” ” + _zipFile + ” ” + ” ” + _tagPathFile;
}
the_Info = ” [...]