asp.net通常是以aspnet帐号运行,此帐号默认是users组成员,只有较低的权限。
可以将该WebService所对应的虚拟站点(目录)设置成集成Windows认证
或将该帐号添加到拥有较高权限的组中.

解决方案 »

  1.   

    干吗要操作注册表呀,这样很不安全,
    一些信息可以写在web.config文件中吗?
      

  2.   

    to AlphaQ: 你说的很对,在程序中如何读写web.config?
      

  3.   

    web.config is an xml file, you can use classes in System.Xml to read/write or use System.Configuration.ConfigurationSettings.AppSettings to read, see 
    http://samples.gotdotnet.com/quickstart/aspplus/doc/configretrieve.aspx
      

  4.   

    to saucer:
         我看了那个网页,并看了System.Configuration.ConfigurationSettings.AppSettings的帮助,但好象只有读,但如何写?
      

  5.   

    ConfigurationSettings.AppSettings is readonly, you have to resort to classes in System.Xml to write into "web.config"