Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
AnswerRe: updating datagrid values to sql db without looping Pin
Vimalsoft(Pty) Ltd7-Dec-09 21:36
professionalVimalsoft(Pty) Ltd7-Dec-09 21:36 
QuestionDownload? [modified] Pin
miss YY7-Dec-09 16:01
miss YY7-Dec-09 16:01 
AnswerRe: Download? PinPopular
dan!sh 7-Dec-09 17:02
professional dan!sh 7-Dec-09 17:02 
AnswerRe: Download? Pin
dan!sh 7-Dec-09 18:52
professional dan!sh 7-Dec-09 18:52 
AnswerRe: Download? Pin
0x3c07-Dec-09 20:18
0x3c07-Dec-09 20:18 
Questionwhere can i find the Tutorial about CryStal Report? Pin
miss YY7-Dec-09 15:47
miss YY7-Dec-09 15:47 
AnswerRe: where can i find the Tutorial about CryStal Report? Pin
vivasaayi7-Dec-09 18:19
vivasaayi7-Dec-09 18:19 
QuestionWMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon7-Dec-09 10:25
Jacob Dixon7-Dec-09 10:25 
Ok so I am having a big problem with this. I had a problem with getting a remote servers serices to stop with WMI and ended up using a ServiceController instead (worked great).

I created a application that got all computer objects from AD. When you click on those computer objects it gets information such as services (and their state), installed applications, disk drives, and other information such a manufacturer, model, etc.. All of this works perfect!

The problem is I can't uninstall software. If I use the same credentials as I do getting the information I get an 'Access Denied' Error

ConnectionOptions conn = new ConnectionOptions();
conn.Impersonation = ImpersonationLevel.Impersonate;
conn.EnablePrivileges = true;


But if I do this I no longer get the access denied error and get the RPC server is unavailable:

ConnectionOptions conn = new ConnectionOptions();
conn.Authentication = AuthenticationLevel.Default;
conn.Impersonation = ImpersonationLevel.Impersonate;
conn.Username = "DOMAIN\USERNAME";
conn.Password = "PASSWORD";
conn.Authority = null;
conn.EnablePrivileges = true;


So how come I no longer get the access denied error and get something abouit the RPC server is not avaiable? How is this since the RPC service IS available since I just got tons of information from it!

Also if you are suggesting I try this instead of DOMAIN\USERNAME:
conn.Authority = "ntlmdomain:DOMAIN";

it doesn't work. When I do it that way it still gives me a access denied error.

I noticed someone else seemed to have this issue:
http://www.codeproject.com/Messages/2903205/WMI.aspx[^] but it was never resolved it looks like.

I have googled the crap out of this error message and tried everything that I found suggested (changing the AuthenticationLevel, changing the ImpersonationLevel) and it didn't work for me Frown | :-(
AnswerRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon7-Dec-09 10:26
Jacob Dixon7-Dec-09 10:26 
GeneralRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) Pin
Jacob Dixon8-Dec-09 5:01
Jacob Dixon8-Dec-09 5:01 
GeneralRe: WMI Uninstall application on remote computer (The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)) [modified] Pin
Jacob Dixon8-Dec-09 5:16
Jacob Dixon8-Dec-09 5:16 
QuestionC# Datagridview Pin
Ronni Marker7-Dec-09 9:47
Ronni Marker7-Dec-09 9:47 
AnswerRe: C# Datagridview Pin
DaveyM697-Dec-09 10:45
professionalDaveyM697-Dec-09 10:45 
GeneralRe: C# Datagridview Pin
Ronni Marker7-Dec-09 10:52
Ronni Marker7-Dec-09 10:52 
AnswerRe: C# Datagridview Pin
ricmil427-Dec-09 10:49
ricmil427-Dec-09 10:49 
QuestionCommunication between 2 processes by DLL Pin
bonzaiholding7-Dec-09 9:30
bonzaiholding7-Dec-09 9:30 
AnswerRe: Communication between 2 processes by DLL Pin
Wes Aday7-Dec-09 9:49
professionalWes Aday7-Dec-09 9:49 
GeneralRe: Communication between 2 processes by DLL Pin
PIEBALDconsult7-Dec-09 17:13
mvePIEBALDconsult7-Dec-09 17:13 
AnswerRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:03
sitebuilderLuc Pattyn7-Dec-09 10:03 
GeneralRe: Communication between 2 processes by DLL Pin
bonzaiholding7-Dec-09 10:38
bonzaiholding7-Dec-09 10:38 
GeneralRe: Communication between 2 processes by DLL Pin
Luc Pattyn7-Dec-09 10:49
sitebuilderLuc Pattyn7-Dec-09 10:49 
AnswerRe: Communication between 2 processes by DLL [modified] Pin
Abhinav S7-Dec-09 17:12
Abhinav S7-Dec-09 17:12 
QuestionUsing dlls that are not referenced. Pin
Tim Groven7-Dec-09 7:11
Tim Groven7-Dec-09 7:11 
AnswerRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 7:34
professionalMd. Marufuzzaman7-Dec-09 7:34 
AnswerRe: Using dlls that are not referenced. [modified] Pin
PIEBALDconsult7-Dec-09 7:37
mvePIEBALDconsult7-Dec-09 7:37 

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.