Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,

Here i have problem were, i want process start an application from computer A, using ASP.net C#. But the computer A is have authentication requirement, which is UserName = computerA and Password = computerA123. The computer A ip address is 192.168.4.10.

If i'm using normal program which is;

C#
{
Process.Start(@"\\192.168.4.10\Program\testing.exe")
}


It cannot work, it need authentication for allowed access the computer A.

Can anyone help me how include the authentication requirement into the program, for it freely access the computer A.
Posted

1 solution

Again, this is a stupid idea that will never work.

Why? Because what your doing is a HUGE security risk and Windows specifically prevents you from doing it.

Sure, you CAN launch a process on another machine, but you have to understand ALL of the security implications, restrictions, and barriers to what you're trying to do. It is difficult for a reason!

First, the Process class cannot launch a process on a remote machine. It has to be done using other methods, such as WMI.

Second, you absolutely can NOT launch a process remotely and have it show up so the user can see and interact with it. It simply will not work for security reasons. The process will launch but the user on that machine cannot see or interact with it, even if the user gives you their credentials to use to launch it.
 
Share this answer
 
Comments
CgKumar 13-Oct-15 21:55pm    
Actually i want to access a server. But it has authentication requirement. UserName and password used for the server is only for readonly. I'm just want to open a pdf document. Can it possible to open a pdf file?
Dave Kreskowiak 14-Oct-15 9:56am    
So now you're changing the question entirely. This has nothing to do with what you posted above.

There's an article on CP for getting access to a UNC path using credentials right here[^].
Sergey Alexandrovich Kryukov 13-Oct-15 22:37pm    
5ed.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900