Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
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 
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 
Here is the code for uninstalling:

ManagementScope scope = new ManagementScope(@"\\" + software.DNS + @"\root\CIMV2", conn);
scope.Connect();

ManagementObjectSearcher mos = new ManagementObjectSearcher(scope, new ObjectQuery("SELECT * FROM Win32_Product WHERE Name='" + software.NAME + "'"));
foreach (ManagementObject mo in mos.Get())
{
    ManagementOperationObserver observer = new ManagementOperationObserver();
    observer.Progress += new ProgressEventHandler(observer_Progress);
    observer.Completed += new CompletedEventHandler(observer_Completed);
    mo.InvokeMethod(observer, "Uninstall", null);
}


Also I have tried this with my local machine and it worked great! Its the remote machines that are a problem. I have tried XP, Windows Server 2008 & 2003. Cannot get any to work.. Also I have tried it with the domain administrator account and local servers account (no luck).
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 
GeneralRe: Using dlls that are not referenced. Pin
Md. Marufuzzaman7-Dec-09 8:00
professionalMd. Marufuzzaman7-Dec-09 8:00 

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.