Solved

Corrupt VB.net ClickOnce Deployment

Posted on 2010-11-17
4
725 Views
Last Modified: 2012-05-10
I have a VB.NET (Built in VS 2008 SP1) ClickOnce Deployment.   I am no expert in the ClickOnce technology, but have been able to successfully deploy 1 application on our internal network to about 100 machines.

We recently had an issue where one of the published manifests (I think) on the server was accidentally opened (in Notepad) by someone which broke the signing/security.   Then, every time a client ran the application (to get the auto-update) many errors occurred (which I did not save unfortunately).  

Eventually, I restored from backup the network setup files to the server and that 'fixed' the issue.

Does anyone have an explanation of the role of these manifests in the application:

1)  company.application
2)  company.exe.config
3)  company.exe.manifest

I am guessing it is a no-no to edit these files directly - which is what caused the original problem.

What would be the procedure to Re-Deploy the application if did 'break'?

1) Uninstall the application at the client machine
2) Re-Publish a new Application to a new network location.
3) Re-install from this new publish location?

I am trying to do some disaster preparedness for any potential roadblocks....  I would appreciate any direction from the Experts!

Thanks.
0
Comment
Question by:browe68
  • 2
4 Comments
 
LVL 7

Expert Comment

by:EYoung
ID: 34160314
What I have done is as follows:

If the manifest is damaged, I just re-publish a new one.

If the client application is damaged or not able to update, then I uninstall it on the client machine and re-install from the Setup.exe.
0
 

Author Comment

by:browe68
ID: 34160768
Thanks EYoung.... How do you publish a new Manifest?   Just Publish the whole project?
0
 
LVL 7

Accepted Solution

by:
EYoung earned 300 total points
ID: 34161684
Yes, just publish the project again.  If that does not work, then delete the click-once folder (after saving it off to another location) and re-publish the project.  This should make it think you are publishing for the first time.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 200 total points
ID: 34162609
1)  company.application
     This contains the list of files and other settings required to run the app. This is used by the ClickOnce DLL file to deploy your application(in the same way MSI files are used by Windows Installer).
2)  company.exe.config
     This is the configuration file which stores the configuration of your program. You can also use this to store any app settings (Settings tab on Project properties).
3)  company.exe.manifest
     http://msdn.microsoft.com/en-us/library/aa374191%28VS.85%29.aspx
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now