Click here to Skip to main content
15,891,375 members
Home / Discussions / C#
   

C#

 
GeneralRe: I dont solved this error! Pin
MidwestLimey17-Apr-08 16:14
professionalMidwestLimey17-Apr-08 16:14 
Generalfile.copy not copying .zip files Pin
markymark8217-Apr-08 3:20
markymark8217-Apr-08 3:20 
GeneralRe: file.copy not copying .zip files Pin
Reelix17-Apr-08 4:01
Reelix17-Apr-08 4:01 
GeneralRe: file.copy not copying .zip files Pin
led mike17-Apr-08 4:37
led mike17-Apr-08 4:37 
QuestionUncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 3:03
atuldeore17-Apr-08 3:03 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
Reelix17-Apr-08 3:58
Reelix17-Apr-08 3:58 
GeneralRe: Uncommiteed SQLTransaction causing the problem Pin
atuldeore17-Apr-08 4:56
atuldeore17-Apr-08 4:56 
GeneralRegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 3:02
heidihund17-Apr-08 3:02 
Hi!

I am making an asp.net c# application (dotnet framework 3.5), where I am trying to update RegistryKeys on computers in the local area network at my company.

When executing OpenRemoteBaseKey() on one of the computers (running Vista), this:
RegistryKey regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine,
MachineName);
results in an IOException: "The network path was not found.\r\n"

When I try executing OpenRemoteBaseKey() on another (running win 2000), the OpenRemoteBaseKey operation works fine, but then the
CreateSubKey() fails in an UnauthorizedAccessException "Access to the registry key 'HKEY_LOCAL_MACHINE\\SYSTEM\\..' is denied."

I can run both on my local computer with no problem, so the application obviously lack rights(?) in performing the operations, hence my question is how do I set the access rights in order to be able to update these keys on all computers in the network, meaning running this with no problem:

RegistryKey regKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, MachineName);
RegistryKey newKey = regKey.CreateSubKey(RegistryPath);
newKey.SetValue("mycomment", myText);

?

Regards,
Heidi H. D'Oh! | :doh:

heidihundala@gmail.com

GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 4:39
Ed.Poore17-Apr-08 4:39 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund17-Apr-08 21:50
heidihund17-Apr-08 21:50 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 23:07
Ed.Poore17-Apr-08 23:07 
AnswerRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund20-Apr-08 21:07
heidihund20-Apr-08 21:07 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Dave Kreskowiak17-Apr-08 5:07
mveDave Kreskowiak17-Apr-08 5:07 
Generalmy game code Pin
stephen bempah17-Apr-08 2:42
stephen bempah17-Apr-08 2:42 
GeneralRe: my game code Pin
laserbaronen17-Apr-08 2:52
laserbaronen17-Apr-08 2:52 
GeneralRe: my game code Pin
Pete O'Hanlon17-Apr-08 3:01
mvePete O'Hanlon17-Apr-08 3:01 
GeneralRe: my game code Pin
Dave Kreskowiak17-Apr-08 5:03
mveDave Kreskowiak17-Apr-08 5:03 
GeneralMTOM Pin
JustRonald17-Apr-08 2:25
JustRonald17-Apr-08 2:25 
AnswerRe: MTOM Pin
atuldeore17-Apr-08 3:16
atuldeore17-Apr-08 3:16 
GeneralRe: MTOM Pin
JustRonald17-Apr-08 3:52
JustRonald17-Apr-08 3:52 
Generalexception in ReaderWriterLock Pin
George_George17-Apr-08 1:47
George_George17-Apr-08 1:47 
Generalapp.config wtf Pin
Razvan Dimescu17-Apr-08 1:00
Razvan Dimescu17-Apr-08 1:00 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 1:13
Ed.Poore17-Apr-08 1:13 
GeneralRe: app.config wtf Pin
Razvan Dimescu17-Apr-08 6:46
Razvan Dimescu17-Apr-08 6:46 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 11:35
Ed.Poore17-Apr-08 11:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.