Results 1 to 11 of 11

Thread: Clickonce problems

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Clickonce problems

    I've had lots of problems getting my program to run for my customers. Had to fix lots of errors, managed to get past most of them, but now I have a new problem. About 80% of my customers can run the program from my webpage link, but some are reporting the following error.

    A failure occurred attempting to install the .NET Framework 4 Full."

    The following components were not installed:
    - Microsoft Visual Basic PowerPacks 10.0

    The following components failed to install:
    - Microsoft .NET Framework 4 (x86 and x64)

    I'm using VB.net Express 2010. I've always found the language easy to use but distributing never seems to work. My program doesn't have any libraries or dll's, it's just basic controls and is quite a small program. I would have thought the basic prerequisites would be enough, but apparently not.

    Oddly, I've set my program to run under .NET 3.5, so not sure why it's asking for the .NET Framework 4.

  2. #2

    Re: Clickonce problems

    Check your Prerequisites for the ClickOnce installation. It could still be wanting to install .NET Framework 4, even though you're only targeting .NET Framework 3.5

  3. #3
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    519

    Re: Clickonce problems

    Alternatively, you could make the user download and install the required .Net Framework by themselves (as a last resort) if the installation won't complete.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Re: Clickonce problems

    Thanks for the advice. I seem to have made some progress, in that the error has at least changed. Now they're getting the following error.

    Component Microsoft Visual Basic PowerPacks 10.0 has failed to install with the following error message:
    "Fatal error during installation. "

    The following components failed to install:
    - Microsoft Visual Basic PowerPacks 10.0

    I'm listing the entire install.log details that was provided by one of them below, hopefully this will shed some light on the problem?

    The following properties have been set:
    Property: [AdminUser] = true {boolean}
    Property: [InstallMode] = HomeSite {string}
    Property: [ProcessorArchitecture] = AMD64 {string}
    Property: [VersionNT] = 6.1.0 {version}
    Running checks for package 'Windows Installer 3.1', phase BuildList
    The following properties have been set for package 'Windows Installer 3.1':
    Running checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe'
    Result of running operator 'VersionGreaterThanOrEqualTo' on property 'VersionMsi' and value '3.1': true
    Result of checks for command 'WindowsInstaller3_1\WindowsInstaller-KB893803-v2-x86.exe' is 'Bypass'
    'Windows Installer 3.1' RunCheck result: No Install Needed
    Running checks for package '.NET Framework 3.5 SP1', phase BuildList
    Reading value 'SP' of registry key 'HKLM\Software\Microsoft\NET Framework Setup\NDP\v3.5'
    Read integer value 1
    Setting value '1 {int}' for property 'DotNet35SP'
    The following properties have been set for package '.NET Framework 3.5 SP1':
    Property: [DotNet35SP] = 1 {int}
    Running checks for command 'DotNetFX35SP1\dotNetFx35setup.exe'
    Result of running operator 'ValueGreaterThanEqualTo' on property 'DotNet35SP' and value '1': true
    Result of checks for command 'DotNetFX35SP1\dotNetFx35setup.exe' is 'Bypass'
    '.NET Framework 3.5 SP1' RunCheck result: No Install Needed
    Running checks for package 'Microsoft Visual Basic PowerPacks 10.0', phase BuildList
    Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the Global Assembly Cache
    AssemblyCheck: Error querying assembly info: -2147024894
    Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil' in the Global Assembly Cache
    AssemblyCheck: Error querying assembly info: -2147024894
    Unable to find assembly in GAC
    Not setting value for property 'VBPowerPacksInstalled'
    The following properties have been set for package 'Microsoft Visual Basic PowerPacks 10.0':
    Running checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe'
    Result of running operator 'ValueExists' on property 'VBPowerPacksInstalled': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe' is 'Install'
    'Microsoft Visual Basic PowerPacks 10.0' RunCheck result: Install Needed
    EULA for components 'Microsoft Visual Basic PowerPacks 10.0' was accepted.
    Copying files to temporary directory "C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\"
    Downloading files to "C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\"
    (20/09/2010 20:42:15) Downloading 'VBPowerPacks\VisualBasicPowerPacksSetup.exe' from 'http://go.microsoft.com/fwlink/?LinkID=145727&clcid=0x409' to 'C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\'
    Download completed at 20/09/2010 20:42:18
    Verifying file integrity of C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\VBPowerPacks\VisualBasicPowerPacksSetup.exe
    WinVerifyTrust returned 0
    File trusted
    Running checks for package 'Microsoft Visual Basic PowerPacks 10.0', phase BeforePackage
    Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' in the Global Assembly Cache
    AssemblyCheck: Error querying assembly info: -2147024894
    Attempting to find 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=msil' in the Global Assembly Cache
    AssemblyCheck: Error querying assembly info: -2147024894
    Unable to find assembly in GAC
    Not setting value for property 'VBPowerPacksInstalled'
    The following properties have been set for package 'Microsoft Visual Basic PowerPacks 10.0':
    Running checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe'
    Result of running operator 'ValueExists' on property 'VBPowerPacksInstalled': false
    Result of running operator 'ValueEqualTo' on property 'AdminUser' and value 'false': false
    Result of checks for command 'VBPowerPacks\VisualBasicPowerPacksSetup.exe' is 'Install'
    'Microsoft Visual Basic PowerPacks 10.0' RunCheck result: Install Needed
    Verifying file integrity of C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\VBPowerPacks\VisualBasicPowerPacksSetup.exe
    WinVerifyTrust returned 0
    File trusted
    Installing using command 'C:\Users\Doz79\AppData\Local\Temp\VSD632B.tmp\VBPowerPacks\VisualBasicPowerPacksSetup.exe' and parameters ' /q:a /c:"install /q /l"'
    Process exited with code 1603
    Status of package 'Microsoft Visual Basic PowerPacks 10.0' after install is 'InstallFailed'

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Re: Clickonce problems

    I should point out that I was forced to set 'Copy Local' to 'True' for Powerpacks in my references, since I was getting a different error. After much digging, I found that solution.... but if that's causing this error, then it seems I have an error either way.

  6. #6
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Clickonce Error

    For some reason it is failing to install .net framework 3.5. What hapens if they try to install it manually?

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Re: Clickonce Error

    How would they install it manually?

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Re: Clickonce Error

    Also, since it seemed to be having a problem with the powerpacks, I tried working out why and it seems that lines/shapes require powerpacks. Since my program only had 2 lines in it, I tried removing them and then noticed that if I remove powerpacks the program still runs fine. I thought this had perhaps solved it but now I'm back to an error that I had over a month ago...... well, what happens now is, on the install page, it doesn't ask for powerpacks or anything, but when you try to install it starts trying to repair .net. This never completes and it happens every time you try to install, so the program is still unusable. This happens regardless of which .net I aim at.

    My program launches from here ...... http://www.soccerstar.org.uk/client2/publish.htm

  9. #9
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Clickonce Error

    Instruct the user to download the .Net framework from MS' website, install it first, then try to install your application.

    (installer http://download.microsoft.com/downlo...dotnetfx35.exe)

    EDIT: Also a notice, your webpage says that a prerequisite for the application is .Net 4, but your installer is looking for and installing 3.5. Maybe the PowerPacks requires it, not sure. But if you use the powerpacks just for one or two shapes, it might be good to avoid them all together. It will make your deployment much easier and quicker (wont potentially require installation of and additional framework package)

    EDIT2: I don't have much experience when it comes to deployment of .Net applications but someone else will have other suggestions too. And, as your problem is in the deployment and not actually in your application, I've suggested to the Moderators to move th thread to Application Deployment section of the forum to get better and more specific exposure.
    Last edited by baja_yu; Sep 22nd, 2010 at 10:15 PM.

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Aug 2009
    Posts
    175

    Re: Clickonce Error

    Thanks for your help, much appreciated.

    I've cleaned up my program a bit, removed the Powerpacks altogether and switched the whole thing back to .net 4 (basically reset it back to the prerequisites the VB uses when you start a new app). The error log above was from a previous install.

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Clickonce problems

    Duplicate threads merged and moved to Application Deployment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width