Posted by: lluppes | January 20, 2011

ClickOnce Deployment Projects and IIS 7

We have several click-once applications that we have deployed successfully from Server 2003 / IIS6, but they failed miserably under Server 2008 / IIS7, getting errors trying to download various files.

To get these projects to deploy successfully on IIS6 to we had to make sure that the IIS folder Execute Permissions were set to “Scripts Only”, otherwise it did not install properly.

clip_image002

However, in IIS7 that feature doesn’t exist anymore – that functionality has been moved. Navigate in IIS7 to the folder where you have deployed your Click-Once application and find the Handler Mappings item and click on that icon.

clip_image004

This is where you need to tell IIS7 what to do with *.manifest, *.deploy, and *.application files. Click on the Add Script Map link and you should add one entry each of these using these options:

Request path: *.manifest / *.deploy / *.application

Executable: %windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

Name: ClickOnce1 / ClickOnce2 / ClickOnce3

clip_image005

You should end up with something like this:

clip_image006

In addition to the IIS7 settings, you also have to make sure you have used the option to “Use “.deploy” file extension” in your VS2010 project. Otherwise, it will deploy files as *.dll or *.exe and this tip won’t work.

clip_image008

Once these settings have been set, you should be able to deploy and install a Click-Once application using IIS7.

Written by .

About these ads

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: