Click here to Skip to main content
15,920,603 members
Home / Discussions / C#
   

C#

 
GeneralRe: Localization problem ! Pin
Vertyg01-Aug-06 22:02
Vertyg01-Aug-06 22:02 
GeneralRe: Localization problem ! [modified] Pin
lmoelleb1-Aug-06 23:39
lmoelleb1-Aug-06 23:39 
GeneralRe: Localization problem ! Pin
Vertyg02-Aug-06 7:51
Vertyg02-Aug-06 7:51 
QuestionNetwork Access monitoring Pin
sundar1561-Aug-06 11:16
sundar1561-Aug-06 11:16 
AnswerRe: Network Access monitoring Pin
Ingo2-Aug-06 1:47
Ingo2-Aug-06 1:47 
GeneralRe: Network Access monitoring Pin
sundar1562-Aug-06 8:54
sundar1562-Aug-06 8:54 
GeneralRe: Network Access monitoring Pin
Ingo2-Aug-06 12:39
Ingo2-Aug-06 12:39 
QuestionProblems using RegistryKey.OpenRemoteBaseKey() Pin
b_girl1-Aug-06 10:42
b_girl1-Aug-06 10:42 
Hey, I keep getting the UnauthorisedAccessException from the following code - the user account I'm using to connect to the server in question does have permission to read/edit the registry. I have also modified the my routing table so I can access the server resources by name. If anyone could help me out I'd greatly appreciate it.

using System;<br />
using System.Security;<br />
using System.Security.Permissions;<br />
using Microsoft.Win32;<br />
<br />
[assembly: RegistryPermissionAttribute(SecurityAction.RequestMinimum, Read = @"HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx")]<br />
[assembly: SecurityPermissionAttribute(SecurityAction.RequestMinimum, UnmanagedCode = true)]<br />
<br />
String KEY = "SOFTWARE\\Network Associates\\TVD\\Shared Components\\VirusScan Engine\\4.0.xx";<br />
<br />
try<br />
{<br />
	RegistryHive hKey = RegistryHive.LocalMachine;<br />
<br />
	RegistryKey DATKey = RegistryKey.OpenRemoteBaseKey(hKey, _ServerName).OpenSubKey(KEY);<br />
}<br />
...


It seems to get past the RegistryHive.LocalMachine part, but throws the exception when it gets to the open remote base key call. I tried separating the OpenRemoteBaseKey() and OpenSubKey() calls into 2 separate lines, to see if it was maybe OpenSubKey() that was throwing it, but the same exception was thrown on the OpenRemoteBaseKey() call.

Thanks.
AnswerRe: Problems using RegistryKey.OpenRemoteBaseKey() Pin
leppie1-Aug-06 21:05
leppie1-Aug-06 21:05 
GeneralRe: Problems using RegistryKey.OpenRemoteBaseKey() Pin
b_girl2-Aug-06 4:00
b_girl2-Aug-06 4:00 
QuestionTransfer of XML Pin
RoadieGS1-Aug-06 10:18
RoadieGS1-Aug-06 10:18 
AnswerRe: Transfer of XML Pin
Cadence2.01-Aug-06 10:56
Cadence2.01-Aug-06 10:56 
GeneralRe: Transfer of XML Pin
Cadence2.01-Aug-06 11:06
Cadence2.01-Aug-06 11:06 
AnswerRe: Transfer of XML Pin
leppie1-Aug-06 21:02
leppie1-Aug-06 21:02 
QuestionFundamental DirectX Question Pin
eggie51-Aug-06 10:07
eggie51-Aug-06 10:07 
AnswerRe: Fundamental DirectX Question Pin
Ennis Ray Lynch, Jr.1-Aug-06 10:29
Ennis Ray Lynch, Jr.1-Aug-06 10:29 
GeneralRe: Fundamental DirectX Question Pin
eggie51-Aug-06 10:32
eggie51-Aug-06 10:32 
GeneralRe: Fundamental DirectX Question Pin
Ennis Ray Lynch, Jr.1-Aug-06 10:52
Ennis Ray Lynch, Jr.1-Aug-06 10:52 
GeneralRe: Fundamental DirectX Question Pin
User 66581-Aug-06 13:04
User 66581-Aug-06 13:04 
GeneralRe: Fundamental DirectX Question Pin
eggie51-Aug-06 20:46
eggie51-Aug-06 20:46 
QuestionDataBindings for datagrid Pin
Mohammed Elkholy1-Aug-06 9:37
Mohammed Elkholy1-Aug-06 9:37 
QuestionSocket code Pin
NaNg152411-Aug-06 8:57
NaNg152411-Aug-06 8:57 
AnswerRe: Socket code Pin
Cadence2.01-Aug-06 10:45
Cadence2.01-Aug-06 10:45 
QuestionDataBinding to a detached row? Pin
Paul Brower1-Aug-06 8:53
Paul Brower1-Aug-06 8:53 
AnswerRe: DataBinding to a detached row? Pin
Josh Smith1-Aug-06 9:32
Josh Smith1-Aug-06 9:32 

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.