Powerpacks reference missing in deployment with clickonce?
-
Monday, June 27, 2011 4:47 PM
Hi, i successfully created my application that work without problems on my machine, running it by visualstudio.
Next, i do my deploy with clickonce, install it with success and run it. In many part of my application i receive this error:
System.InvalidOperationException: Error durante la creazione del form. Per informazioni dettagliate vedere Exception.InnerException. Errore: Impossibile caricare il tipo 'Microsoft.VisualBasic.PowerPacks.DataRepeaterItem' dall'assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. ---> System.TypeLoadException: Impossibile caricare il tipo 'Microsoft.VisualBasic.PowerPacks.DataRepeaterItem' dall'assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
How can i solve and fix it?
All Replies
-
Wednesday, June 29, 2011 7:24 AMModerator
Hi Luchett,
Welcome to the MSDN Forum.
Based on my understanding, it seems that the target machine have no cooresponding version of the powerpacks packages. If you can thranslate the error message to english, I think I can get more exactly cause of this issue.
However, please try this solution first:
Change the Microsoft.VisualBasic.PowerPacks.Vs copy local property to true like the following:

If you have any concerns, please feel free to let me know.
Best regards,
Mike Feng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

- Marked As Answer by Liliane TengModerator Thursday, July 07, 2011 8:07 AM
-
Friday, July 01, 2011 10:21 AMModerator
Hello Luchett,
Mike's suggestion is helpful. If you want to deploy an application that references Visual Basic Power Packs components, the components must be installed on the destination computer.
You could deploy Visaul Basic PowerPacks as the prerequisites of your setup project. Then it will install it if it needs and won't if it doesn't.
Right click your project-> Properties->Go to the Publish tab-> Click the Prerequisites button
Select Visual Basic PowerPacks, and choose "Download prerequisites from the component vendor's web site".
Then the project will deploy it as a prerequisite. In addition, if you don't have the PowerPacks under the Prerequisite list, please install SP1 for VS2010 or VS2008.
Please have a try and let us know the situation on your side.
More useful information:
http://msdn.microsoft.com/en-us/library/cc425002(v=vs.80).aspx
(Deploying Applications That Reference Visual Basic Power Packs)
http://blogs.msdn.com/b/vsdata/archive/2009/07/24/visual-basic-power-packs-is-included-in-visual-studio-2008-sp1.aspx (Visual Basic Power Packs is included in Visual Studio 2008 SP1)If you need further assistance about this problem, please feel free to follow up.
Have a nice day.
Best regards
Liliane Teng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

- Marked As Answer by Liliane TengModerator Thursday, July 07, 2011 8:07 AM
-
Tuesday, July 05, 2011 9:04 AMModerator
Hi Luchett,
What about this problem on your side now? If we misunderstood, could you please translate the error message into English? If you have any concerns, please feel free to follow up.
Have a nice day.
Best regards
Liliane Teng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Thursday, July 07, 2011 8:10 AMModerator
Hi Luchett,
When you come back, if you need further assistance about this issue, please feel free to let us know. We will continue to work with you on this issue.
Have a nice day.
Best regards
Liliane Teng [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

-
Thursday, August 04, 2011 12:43 AM
I had this same problem and this worked! thanks!
:)
-
Tuesday, August 07, 2012 3:38 PM
You are a life saver! Thank you! WIN!

