line: scope.Connect();返回如下错误信息
System.Runtime.InteropServices.COMException (0x800706BA): RPC 服务器不可用。
at System.Management.ThreadDispatch.Start()
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at WindowsApplication1.Form1.button1_Click(Object sender, EventArgs e) in c:\documents and settings\wjd\my documents\visual studio projects\windowsapplication1\windowsapplication1\form1.cs:line 215
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace IISWatcher
{
[StructLayout(LayoutKind.Sequential)]
public class NetMappingDrive
{
public int dwScope;
public int dwType;
public int dwDisplayType;
public int dwUsage;
public string LocalName;
public string RemoteName;
public string Comment;
public string Provider;