?
Solved

Corrupt VB.net ClickOnce Deployment

Posted on 2010-11-17
4
Medium Priority
?
735 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1200 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 800 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

800 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