While I am trying to upload a registry in my registries using the C# code , the application is throwing the error "a required privilege is not held by the client". If I am using the same code on some other machine it is working fine but not particularly
on my machine
I am using below mentioned code to upload the registry files
Process my_p = new Process();<br/>
my_p.StartInfo.FileName = "reg";
<br/>
my_p.StartInfo.Arguments = "load HKLM3780 C
ocuments and SettingsAdministratorNTUSER.DAT";
<br/>
my_p.Start();<br/>
my_p.WaitForExit();<br/>
System.IO.StreamReader srOutPut = my_p.StandardOutput;<br/>
System.IO.StreamReader srError = my_p.StandardError;
<br/>
my_p.Close();
<br/>
results = srOutPut.ReadToEnd().Trim();<br/>
Errors = srError.ReadToEnd().Trim();
One more thing I have noticed is that when I am using the above code in http based website it is showing error , while if I am using it in File System based web site it is working fine.
Please suggest me what are all security permissions I have to give and to which account
Please Help
View the full article
on my machine
I am using below mentioned code to upload the registry files
Process my_p = new Process();<br/>
my_p.StartInfo.FileName = "reg";
<br/>
my_p.StartInfo.Arguments = "load HKLM3780 C

<br/>
my_p.Start();<br/>
my_p.WaitForExit();<br/>
System.IO.StreamReader srOutPut = my_p.StandardOutput;<br/>
System.IO.StreamReader srError = my_p.StandardError;
<br/>
my_p.Close();
<br/>
results = srOutPut.ReadToEnd().Trim();<br/>
Errors = srError.ReadToEnd().Trim();
One more thing I have noticed is that when I am using the above code in http based website it is showing error , while if I am using it in File System based web site it is working fine.
Please suggest me what are all security permissions I have to give and to which account
Please Help
View the full article