473,405 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

How to remotely login from remote server?

I am able to login remotely to a remote server1 in another domain. But I need to be able to login to another server 2 from the remote server 1 using C#.net

Can any one pls help me? I am using LOGON32_LOGON_INTERACTIVE to login to the first server(1).After that, while in logged on state, when I am using impersonation again using LOGON32_LOGON_INTERACTIVE or LOGON32_LOGON_NEW_CREDENTIALS or LOGON32_LOGON_NETWORK, then my impersonation method is not returning any error.But when I am trying to use Service controller to read the services running on the second server(2), I am getting exception msg "Cannot open Service Control Manager on computer '__'.Access Denied".
Even I am not able to see the Windowsidentity.Getcurrent().Name from my Code. It gives me error.
Can any one plz tell me how to remotely login from another remote server using code?
FYI : I am using user credentials that have admin rights on both the servers.
Nov 24 '10 #1
0 885

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dan King | last post by:
I have a few ASP pages that run great on a local machine. They read folder content then display the information in the browser. I would like to be able to read the same data from several remote...
1
by: Tom | last post by:
Hi, I built several web applications and all work on local and remote servers. Recently, I built one web application which works on local server. However, the login page can be shown on remote...
0
by: Kent K | last post by:
I have a project on a remote server consisting of a aspx page and a class. When I try to use the fill method of a sqldataadaptor to fill a dataset I get this error - Referenced object has a value of...
1
by: IMRAN SAROIA | last post by:
Hi, I am getting message shown below when I tested a simple web application on production Remote Server which has ASP.net enabled for IIS. Please advise! I have tried the resolution...
2
by: Tor Inge Rislaa | last post by:
Database on remote server On the remote server where my ASP.NET application is located there is no SQL Server or SQL Server Express. When I test my application locally it works fine because...
0
by: squirrelonfire | last post by:
Hi I run postgreSQL from a remote server like this SSH -X cnguyen_db@okaram.spsu.edu ....enter the password Then I run bluefish& and psql The problem I'm having is that I can't copy and paste...
2
by: dronkanoki | last post by:
I am attempting to set up myODBC 3.51 on Win XP Pro to a remote MySQL Linux server. I get the following error: Access denied for user: 'username@ipaddress.serviceprovider.net' (Using password:...
0
by: Stupid48 | last post by:
I like the web deployment projects add-in for VS 2005. The web.config section replacement is especially useful. I'm a bit confused about an aspect of this. We develop against remote web servers...
2
by: Vadim Malishev | last post by:
Hello, Can anybody help to solve the following problem? My Windows Service trying to access remote machine to get WindowsDirectory Property over Win32_OperatingSystem WMI class. Both servers...
0
by: =?Utf-8?B?dG9t?= | last post by:
Hi, I have a .net 2.0 windows client that connects to webservices. In most cases it works fine. However I have one client that gets 'Unable to connect to the remote server'. If on that client...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.