最新评论
xxx1013 2009-09-16 14:48
[quote]邀月: ManagementClass mc = new ManagementClass(scope, new ManagementPath("ServerBinding"), null);<br/> ManagementObject mco = mc.CreateInstance();<br/><br/> mco.Properties["Hostname"].Value = hostName;<br/> mco.Properties["IP"].Value = ip;<br/> mco.Properties["Port"].Value = port;<br/> mco.Put();<br/>执行到这里老提示"访问遭到拒绝"<br/><br/>还有,你执行成功的参数给一个看看?谢谢。[/quote]
我也出现了和你相同的错误 最后是通过修改wmi的用户权限来克服这个问题的。
李宏 2009-07-22 12:24
anchor.target="_blank"
和直接写在html属性里有区别吗?
有必要一味的追求标准吗?
通过js替换一下,有意义吗???
simon4545 2009-07-20 09:46
问两个问题
1.这是因为W3C认为如果不经过用户同意,没有明确提示就打开一个新窗口是不礼貌的。
你的这个观点出处是哪里?
2.从xml角度讲,target,rel 都是一个属性键,rel从哪里实现了让用户同意了?和target,有什么区别?
James.Ying 2009-07-20 09:36
这真有点不靠浦了,使用js倒成为标准了,有点不敢相信,或许博主说的是真的,不过我还是不太敢接受这个标准
斯克迪亚 2009-07-19 23:33
我倒觉得没什么礼貌不礼貌的,按设计者的意图来做就OK了,设计者认为怎么合适怎么来。
具体到每个人来说,每个人期望的结果可能不尽相同,比如Google搜索页有人希望当前页面跳转,有人就习惯于新窗口,Google提供了选项设置解决这一问题,浏览器也一直在致力于解决这种问题(如中间单击为新窗口打开)。
而且现在多标签浏览器大行其道,也就是默许了_blank行为。
大力 2009-07-03 10:02
--引用--------------------------------------------------
邀月: ManagementClass mc = new ManagementClass(scope, new ManagementPath("ServerBinding"), null);
ManagementObject mco = mc.CreateInstance();
mco.Properties["Hostname"].Value = hostName;
mco.Properties["IP"].Value = ip;
mco.Properties["Port"].Value = port;
mco.Put();
执行到这里老提示"访问遭到拒绝"
还有,你执行成功的参数给一个看看?谢谢。
--------------------------------------------------------
WIN2003系统用WEB调用 WMI,不但要指明用administrator,对应IIS的程序池的 标识 要用 本地服务才有权限
邀月: ManagementClass mc = new ManagementClass(scope, new ManagementPath("ServerBinding"), null);
ManagementObject mco = mc.CreateInstance();
mco.Properties["Hostname"].Value = hostName;
mco.Properties["IP"].Value = ip;
mco.Properties["Port"].Value = port;
mco.Put();
执行到这里老提示"访问遭到拒绝"
还有,你执行成功的参数给一个看看?谢谢。
--------------------------------------------------------
WIN2003系统用WEB调用 WMI,不但要指明用administrator,对应IIS的程序池的 标识 要用 本地服务才有权限
邀月 2009-07-02 09:25
ManagementClass mc = new ManagementClass(scope, new ManagementPath("ServerBinding"), null);
ManagementObject mco = mc.CreateInstance();
mco.Properties["Hostname"].Value = hostName;
mco.Properties["IP"].Value = ip;
mco.Properties["Port"].Value = port;
mco.Put();
执行到这里老提示"访问遭到拒绝"
还有,你执行成功的参数给一个看看?谢谢。
ManagementObject mco = mc.CreateInstance();
mco.Properties["Hostname"].Value = hostName;
mco.Properties["IP"].Value = ip;
mco.Properties["Port"].Value = port;
mco.Put();
执行到这里老提示"访问遭到拒绝"
还有,你执行成功的参数给一个看看?谢谢。
邀月 2009-07-02 09:16
ManagementScope scope = new ManagementScope(string.Format(@"\\{0}\root\MicrosoftIISv2, serverName"), options);
第一段代码这句有问题,应该是
ManagementScope scope = new ManagementScope(string.Format(@"\\{0}\root\MicrosoftIISv2", serverName), options);
itpob 2009-07-01 20:19
是在写文章时,code 功能不支持 chrome 浏览器,一插入后,代码就没有了。后来改成 IE 来写文章,就没有问题了。


