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

I am trying for a remote pc accessing from asp.net application. I am trying to update/store file on pc from asp.net application.
How to access remote pc data and how to update the file on remote pc?
(Remote pc - Windows server express r2 server)
I am trying with this link : http://msdn.microsoft.com/en-us/library/ms257337%28v=VS.80%29.aspx
Here I got exception : Invalid parameter for ManageScope connect() method.

Is there any other way to connect to remote pc please help.!!!
Posted

When you're requirement just is update a file on a remote computer you can configure a share on the remote machine and connect to that share from your asp.net environment.

A better approach would be to create a self hosting wcf service on the remote machine and send the data needed for the update to the remote over wcf.


Regards
Piet
 
Share this answer
 
Comments
Avinash6474 2-Mar-12 23:20pm    
Hi Piet,
I am agree with your sol'n. Actually first time i m doing all this so could you please tell me how to connect from asp.net web page to remote server?
and in self hosting service which type of operations i need to perform.
If you have any link reference then please forward here.

Thank you,
Avinash.
pietvredeveld 3-Mar-12 15:32pm    
Mike Liu has post a compleet example on codeproject see: http://www.codeproject.com/Articles/97204/Implementing-a-Basic-Hello-World-WCF-Service

Regards
Piet
I configured IIS on the remote machine, and I wrote a simple WCF service which accept the file bytes and convert the bytes to required format file.

This is working perfect for me.

Thanks,
Avinash
 
Share this answer
 

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