Exforsys

Free Training

RPC server is unavailable

This is a discussion on RPC server is unavailable within the Microsoft .NET forums, part of the Programming Talk category; i needed to get the free disk space on a shared remote drive. my shared-name goes something like this -- ...

Go Back   Exforsys > Programming Talk > Microsoft .NET

Exforsys.com

  #1 (permalink)  
Old 05-22-2009, 02:53 PM
Junior Member
 
Join Date: Oct 2006
Posts: 4
sansircar is on a distinguished road
Wink RPC server is unavailable

i needed to get the free disk space on a shared remote drive.
my shared-name goes something like this -- \\RemoteServer\ADrive$

ConnectionOptions oConn = new ConnectionOptions();
oConn.Username = "xUser";
oConn.Password = "xxxx";
string sSrvName = @" \\RemoteServer\ADrive$";

ManagementScope oMS = new ManagementScope(sSrvName, oConn);

I get the error - "Invalid Parameter".
If i remove the $ sign from the end of the server name and make it something like \\RemoteServer\ADrive
it goes past the above statement and fails at
ManagementObjectSearcher oSearcher = new ManagementObjectSearcher(oMS, oQuery) ;
ManagementObjectCollection oReturnCollection = oSearcher.Get() ;

with the error - "RPC server is unavailable"

but when trying to map the above mentioned share drive - \\RemoteServer\ADrive$, via Windows Explorer it works.
any kind of help is appreciated.

thanks to all
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Request for interview question for Testing (QA) wildkid98 Testing Tutorials 18 09-10-2009 06:33 AM
SQL Server CE 2.0 installation Problem NareshShroff SQL Server 2005 Tutorials 2 07-17-2004 06:55 AM
Solaris x86 FAQ 2/2 Dan Anderson Tech FAQ 0 04-27-2004 07:24 PM
Sybase FAQ: 1/19 - index David Owen Tech FAQ 2 04-20-2004 09:45 AM
Kerberos FAQ, v2.0 (last modified 8/18/2000) Ken Hornstein Tech FAQ 0 04-17-2004 07:28 AM


All times are GMT -4. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.