使用VB.Net在Windows 2008 Server中创建子文件夹/写入注册表 [英] Creating sub folder/ Writing into Registry in Windows 2008 Server Using VB.Net

查看:66
本文介绍了使用VB.Net在Windows 2008 Server中创建子文件夹/写入注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建子项并为子项指定值可在Local中使用。

但是相同的代码,在服务器上不起作用。抛出对Registry key的访问被拒绝异常。虽然我也导入了System.Security.Permission和Used Assert方法。请帮助我,在服务器中创建子键需要做些什么。

creating Subkeys and assigning values to the subkeys works in Local.
But same code, dont work in server. Throws Access to Registry key is denied exception.Though I imported System.Security.Permission too and Used Assert methods. Please help me, what else needs to be done to create subkeys in server.

推荐答案

访问受保护的系统资源,如注册表项,正在运行的进程(应用程序的EXE) )应具有访问权限(Windows用户级权限),这与 System.Security.Permission 无关。
To access protected system resources like registry keys, the running process (EXE of your application) should have access permissions (windows user level permissions) this has nothing to do with System.Security.Permission.


这篇关于使用VB.Net在Windows 2008 Server中创建子文件夹/写入注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆