Hi Cuba man,
I can positively tell you that your lnkProducts_Click method is going to run
on the Web Server. There is no way for this to execute on the client.
Remember, the client is a browser! It can execute Java, ActiveX, and
The only reason your program has been somewhat successful is because your
client and server are on the same machine.
Click-Once is a method of deploying an application from a Web Server to a
Client machines do not have a Inetpub\wwwroot folder unless they are running
their own IIS web server.
I hope this helps,
You are wrong:
the local hard drive onto the server in a folder named Inetpub
file ClickOnce creates to install the Windows application from there
client from there is named Publish.htm . Publish.htm then puts the
application in the users Start menu.
That means there is no Windows application.exe file created by
the batch file to execute on the server."
Publish.htm just point to a file with application extension
(*.application) This file contains information needed to install and/
or run your app. If you publish it as a local app, then it will be
deployed to the user's local folder, something like "C:\Documents and
\<z>". If application is available only on-line, it is copied to a
local temp folder and executed.
You can not run a windows program embedded on a web page, not even
Please, read more about clickonce app deployment at: