Click once Installs returns XML page to XP Pro Clients...

G

Guest

I have deployed an application with ClickOnce Publish wizard to a web site.
But when I click web page Install button the web server just returns the
content of the .application file as XML to the browser on all my clients. On
my Development system it works fine.


My Clients:
Windows XP Professional Service Pack 2

Server:
Linux/Apache server at ISP

I followed all the suggestions in the following post:

http://msdn.microsoft.com/newsgroup...6d60bc-22a1-4b84-9cb0-123259636f65&sloc=en-us

I replied to this post but received no answer from MSFT. I believe there is
a larger problem here and if someone can point me in the direction of a
solution, it would be greatly appreciated or if this is a bug to let me know.

Thanks in advance.
 
K

Keith Elder

RBS said:
I have deployed an application with ClickOnce Publish wizard to a web site.
But when I click web page Install button the web server just returns the
content of the .application file as XML to the browser on all my clients. On
my Development system it works fine.


My Clients:
Windows XP Professional Service Pack 2

Server:
Linux/Apache server at ISP

I followed all the suggestions in the following post:

http://msdn.microsoft.com/newsgroup...6d60bc-22a1-4b84-9cb0-123259636f65&sloc=en-us

I replied to this post but received no answer from MSFT. I believe there is
a larger problem here and if someone can point me in the direction of a
solution, it would be greatly appreciated or if this is a bug to let me know.

Thanks in advance.

One of these two is more than likely what is happening:

1. The client computer does not have the .Net 2.0 framework installed
on it. You can make this a prereq in your ClickOnce app so it will
install prior to installing the ClickOnce app.

2. If a user opens a ClickOnce app in a browser besides IE, they will
see this.

These are the only two cases I've seen where this occurs. If this
doesn't fix the problem. Let me know (email me personally or whatever)
I'm curious to stay on top of the problems before they arise if you know
what I mean.

-Keith
 
G

Guest

I followed all the suggestion with regards to KB articles etc.. I am use IE
and tried uninstalling framework 2.0 and re-installing. It basically does not
work on any other machine except the windows 2003 server that I compiled the
program on and publish to the linus server from. The only way I can get it to
install the application is creating my own .bat file that runs this

rundll32.exe dfshim.dll,ShOpenVerbApplication
http://www.gotorders.com/TICKETNET/PRICETICKET.application

Through IE it will not install and just shows the xml page. I looked at the
mime types an they are fine. I followed everything discussed in the article I
referenced.
 
M

Marc Gravell

MIME for .application is wrong; I'm getting text/plain - should be
application/x-ms-application

Marc
 
G

Guest

Any suggestions on how I can advise my ISP. They are running Linux and Apache
web servers. They advised me that they are not running Microsoft products and
that this does not apply to them.

thanks in advance
Dave
 
M

Marc Gravell

"Dear Sir/Madam; the MIME settings for some recent, well-known, file-types
are incorrectly configured. The correct settings are..."

At the end of the day, file type / MIME mappings are more for the benefit of
the client than the server, so it makes no difference *at all* whether they
use MS products at all. You might want to google +"setting MIME types"
+apache so that you can tell them which config file to edit, since they
clearly have no clue what they are doing.

Marc
 
G

Guest

Marc,
This might help others. All I had to do was create a file with these 3 lines

AddType application/x-ms-application application
AddType application/x-ms-application manifest
AddType application/octet-stream deploy

and transfered via ftp to the directory on the apache web server where the
publish.htm file resided.

This appears to have solved the problem with the xml however when I click on
the install button on the publish.htm page , xp still asks if I want to run
the setup.exe file twice. Is there a resolution for this or is this part of
the security of windows xp?

thanks in advance
 
M

Marc Gravell

No idea on the latter. Maybe a bit of effort, but maybe a packet sniffer
might help - i.e. compare what you get from the actual server to what you
get to a working server (such as IIS). That's about all I can suggest.

Marc
 

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