Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2004, 04:26 AM
Authorized User
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Running Dlls on client PC from Web Form

Hi guys,

I am developing a web page in which I want to allow the user to run a DLL which is present in the client PC.The Dll performs some functions on the client PC and gives back information to the User on the Web Form itself.

I currently have idea of only to run the DLL on the server side and getting the values on the clients Web Form but for the above situation which is quite opposite to this one, I dont have any clues.

Can Remoting provide the solution?

Can nebody tell me how to do that?
Thanks in advance

Regards,
SANJAY KABRA
__________________
Sanjay Kabra
 
Old July 15th, 2004, 11:24 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

ASP.NET on server == HTML on the client.

You will have to have the user download something, or you'll need to write some kind of clientside user control (.htc) or a java applet or....

Long story short, you are limited to what you can do in HTML, JavaScript and Client plugins. However, what about using some web services? If the client downloads a small program, it could talk to your web application thru web services directly to the server.
 
Old July 16th, 2004, 03:50 AM
Authorized User
 
Join Date: Jan 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi plonie,
Thanks for prompt response. About the WebService I am thinking this way.

When the Client Opens the Web Page he will have a download link which will download a Windows Services DLL and register and run that windows service.
This service on running will run the DLL present in the client PC and the information obtained from that client DLL will be passed on to the Web Service on the Server. But the whole process should occur in the background. In the mean time, user on the Web Page will be getting "Wait.." message.

When the WebService gets the Information from the client it has to notify and fill the page opened by the client with the retrieved information

I hope you got the whole scenario.

Now the questions are.
How the Windows Services will be downloaded, installed and run silently by just clicking a button on the Web Form?
Can the Windows Service run another DLL?
Can the Windows Service pass the information to the WebService on the Server?
How will the WebService notify the WebPage on the Client PC,about the retrieved information

Regards,
SANJAY KABRA
 
Old July 18th, 2004, 03:12 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Question:
1) Here lies the main problem. There are major security restrictions that prevent this from happening. If there weren't, then there would be nothing to preventing me from writing a little program that formats your hard drive, or something equally destructing. You'll need to write some kind of component that downloads. I don't know plugins are written in and how they are downloaded, but that's essentially what you need to do.

2) Once the client has your program on their machine, it can call other programs on their machine.

3) The program they download could most certainly call your web service and pass it information.

4) This is another problem. The web service will be called by the client side program, so it can't tell the browser where to go. You'll need to write something in the program running on the client that points the browser to a page. I don't know how to do this.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Website with Pocket PC Dlls ashu_from_india .NET Framework 2.0 3 June 11th, 2008 11:06 AM
call web service from pocket pc rsa3des .NET Web Services 1 June 7th, 2006 07:41 AM
DLLs on server pulling server time or client? mussitsch Classic ASP Professional 1 March 1st, 2005 05:38 AM
Web Based SQL and PC App reyboy SQL Server 2000 6 May 7th, 2004 08:47 PM
Running Exe's on another PC Duncan Allen Pro VB.NET 2002/2003 1 October 21st, 2003 04:02 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.