ClickOnce server deployment for Intranet App

K

Knoebel, Mike

I am trying to use ClickOnce Deployment technology.
I have published it on my System(Test Machine) and it works great.

Now I want to put it on the main web server which I cannot access from my
machine. So I copied the files from the Inetpub\wwwroot\ directory to the
main server .
But when I run it from the main webserver it tries to run from where I made
it(test machine).

My question is, what I have to do to run it/deploy it to different machine.
We need to put it on our client intranet server also and they all have
different server name.

Thanks in advance.
Mike
 
A

Andrej Tozon

You need to tweak the deployment manifest a bit. The easiest way to do this
is by changing Publish properties in Visual Studio. Open Project Properties,
Publish Tab. On top you'll see two textboxes. The first one is the location,
on which you want to publish your appllication (Publishing location). In
your case that would probably be a custom folder on your Test Machine. The
second (Installation URL) one is the location from which your users will
install the application (e.g. http://myserver.com/myapplication).
After you enter appropriate information, rebuild and publish your project.
It will be copied to the Publishing location. Copy complete folder to your
web server folder, which is accessible through Installation URL.
Don't forget you need .NET Framework 2.0 installed on your Web server
machine as well.

If you want to further edit manifest files without using Visual Studio,
check out the mage.exe and mageui.exe tools (part of .NET 2.0 SDK).

Andrej
 
K

Knoebel, Mike

Thanks Andrej,
But how it is going to work if I have more then one server, having different
server names.
Our clients have there own Intranet servers. If I copy the entire Published
folder then it will still try to run from the Installation URL (e.g.
http://myserver.com/myapplication).
Does it mean I have to create new Installation url for each client. Or am I
missing something.

Mike
 
A

Andrej Tozon

Is your application configured as "installed"? If so, I think the only way
is to create separate deployment manifests for each of your clients. Each
manifest would include the install location URL, suitable for each of your
clients.
You can generate and sign new manifests easily with Mage(UI) tool without
touching and rebuilding your project. Your clients then get the same
application files, same application manifest, and custom deployment
manifest.

Andrej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top