2
Answers

Remote Access Problem

Jiby Seby

Jiby Seby

16y
3.7k
1
I am working in WindowsXP SP2. when am trying to connect through WBemTest its giving an error RPC server unavailable. I have checked RPC is running and firewall in my system and remote system are turned off. The 2 systems are under workgroup named 'WORKGROUP'. I have changed 'Control Panel>Administrative tools>Local Security Policy>Security Options>Network Access : sharing and security model for local accounts' to 'Classic - local users authenticate as themselves'. And again in Computer management's WMI control's property - CIMV2's security for 'everyone' Remote Enabled'.


Still am getting an error access denied when trying to access remote machine through my C#.net code. and getting RPC server unavailable in WBemTest.

Can any one help me for this...
Answers (2)
0
Jiteendra Sampathirao

Jiteendra Sampathirao

NA 6.9k 1.5m 13y


Hi,
Go through these links:

http://www.sql-server-helper.com/tips/date-formats.aspx
http://msdn.microsoft.com/en-us/library/az4se3k1.aspx

0
Jiteendra Sampathirao

Jiteendra Sampathirao

NA 6.9k 1.5m 13y

Hi,

Do like this::

string @DOB = DateTime.ParseExact(txtDOB.Text, "dd/MM/yyyy",  System.Globalization.CultureInfo.CurrentUICulture. DateTimeFormat).ToString("MM/dd/yyyy");



Otherwise post the code here...
0
Abhimanyu K Vatsa

Abhimanyu K Vatsa

NA 50.9k 12.4m 13y
if you still find problem then provide us the code you are using, will try to find out the mistake. 

thanks
0
Prasad Godbole

Prasad Godbole

NA 153 141.7k 13y
Hi all,


Thanks for giving solutions.

I used 24 hours date format and now hour is appearing 00.


Thanks again

Kind Regards
Prasad
0
Abhimanyu K Vatsa

Abhimanyu K Vatsa

NA 50.9k 12.4m 13y
read this msdn post, it probably will help you.

http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
0
Vulpes

Vulpes

NA 98.3k 1.5m 13y
It's just struck me that the problem here is that you're using the 12 hour clock ("hh" format). If you change to the 24 hour format ("HH"), then it should get rid of the 12:00:00  i.e. dateobject.ToString("yyyy-MM-dd HH:mm:ss").
0
Vulpes

Vulpes

NA 98.3k 1.5m 13y
See if using dateobject.Date.ToString("yyyy-MM-dd hh:mm:ss") gets rid of the hour.