Welcome to WindowsClient.net | Sign in | Join

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

ClickOnce Deployment w/ Prerequisites in IIS

I encountered an issue where I deployed a .NET 3.5 WPF application to the server.

The deployment was hosted in IIS and the prerequisites were marked with "download from the same location as my application"

The publish works and everything seems up and running.

As soon as I entered the deployment page to install the application in a machine without .NET v3.5, I got the installation window which was all nice but then I received an error.

Clicking Details revealed that it couldn't download files with ".msu" and ".msp" extensions.

The solution was to go to the IIS in the server machine, go to the website where the deployment resided and add the following MIME Types:

.msp --> application/octet-stream
.msu --> application/octet-stream

(IIS --> WebSite/Virtual Directory Properties --> HTTP Headers --> MIME Types)

The deployment in the client machine worked perfectly afterwards.

Posted: May 28 2008, 11:40 AM by zuker | with 2 comment(s)
Filed under:

Comments

Assaf said:

Cool!

# May 28, 2008 4:55 AM

Tom Willwerth said:

Thanks for posting! This solved the issue in my environment as well.

# August 25, 2008 12:41 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Page view counter