Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3699358
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:05:35+00:00 2026-05-19T05:05:35+00:00

I’ve decided to use ClickOnce technology to deploy my new WPF application. By and

  • 0

I’ve decided to use ClickOnce technology to deploy my new WPF application. By and large, ClickOnce works as advertised but I’ve hit a minor glitch regarding Bootstrapping and framework detection.

Some background:
– I’m using the standard Visual Studio-generated publish.htm page as my launch page.
– The only prerequisite is the .NET Framework 4.0 Client Profile.
– All clients using IE 8.
– All clients already have the .NET 4.0 Client Profile installed.

ClickOnce works as advertised on the vast majority of machines. The VS-generated JScript correctly detects that the framework is installed and presents the user with a Run button. The app launches just fine.

I’m getting odd results on one of the machines, however. On the offending machine, the VS-generated JScript tells the user that the prereqs may not be installed — or rather, it FAILS to detect that the framework is already installed. The “launch” link successfully launches the application but the Run link points to the bootstrapper setup.exe. Why is it failing to detect the framework on this one machine?

It occurred to me that framework detection is largely a matter of examining the useragent string that’s submitted by the browser. So, what you see below are two UserAgent strings. The first is from a machine where things are working properly. The second is from the offending machine.

THIS ONE WORKS:
2011-01-11 15:14:14 W3SVC1 192.168.0.36 GET /publish.htm – 80 – 72.130.187.100 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.0;+Trident/4.0;+SLCC1;+.NET+CLR+2.0.50727;+Media+Center+PC+5.0;+.NET+CLR+3.5.21022;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C) 304 0 0

THIS ONE DOESN’T:
2011-01-11 18:49:12 W3SVC1 192.168.0.36 GET /publish.htm – 80 – 76.212.204.169 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+6.1;+WOW64;+Trident/4.0;+GTB6.6;+SLCC2;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+Media+Center+PC+6.0;+.NET4.0C) 200 0 0

The useragent string of both machines clearly states, “hey the .NET 4.0 client profile is installed here” — yet the second machine seems unable to detect it. I don’t know enough about useragent strings to understand why the former works and the latter fails. The only difference as far as I can tell is that the offending machine is running 64bit. But that shouldn’t make a difference. Should it? Any ideas?

Dexter Morgan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:05:36+00:00Added an answer on May 19, 2026 at 5:05 am

    PROBLEM SOLVED!

    I took a close look at the publish.htm file that VS.NET generates. There’s an error in the JScript code. The offending line is:

    checkClient=false;

    I changed the line to read:

    checkClient=true;

    Unless this line of code is changed, the browser won’t bother to check if the .NET 4.0 Client Profile is installed and as a result, a user who already has installed the 4.0 Client Profile will always be presented with an unnecessary list of prerequisites.

    The bad line of code must be the result of some error in the VS.NET publishing logic. Hopefully MSFT will fix. Until then, you’ll have to correct it by hand every time you run the publish wizard. Ugh.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.