Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > MSI problem, System.ConfigurationErrorsException
 

MSI problem, System.ConfigurationErrorsException

We have developed a WPF application and have created windows installer using setup project (MSI). One of our clients is facing the problem while installing it.

When trying to install the application it comes up with the following error (a message box showing this error) at the end of the installation:

Error 1001. Exception occurred wile initializing the installation
System. ConfigurationErrorsException: Configuration system failed to initialize.

Clicking OK to this message box rollbacks the installation.

Client machine has windows XP 2002 SP2, .Net framework 3.5 SP1.

Could any one help please on this.

Thanks,

Nadeem

nadeem4n  Friday, August 07, 2009 6:18 AM
You've got .NET custom actions, right? That code is apparently crashing. You have an Installer class that uses System.Configuration? Is the required .NET Framework version being installed (Prerequisites, setup.exe)?
Phil Wilson
PhilWilson  Friday, August 07, 2009 5:44 PM
Hi Wilson,

Sorry for late reply. We are using .NET custom actions, but we are not using System.Configuration anywhere in ourcustom actions code. All the required .NETframework versions are installed on the clientmachine. It passes the prerequisites, copies the files to install dir, but after that it fails and shows the error message that I posted in my first post above.

Nadeem Ullah
nadeem4n  Thursday, August 13, 2009 5:44 AM
You don't need to be using System.Configuration in your code. That's like saying you are not using System.Xml when in reality your code is calling a whole bunch of other .NET assemblies (Microsoft ones) that *do* call it. Without any details of what your code does it's difficult to know why it's failing. It's probably worth pointing out that an MSI install has absolutely nothing to do with .NET, and there is no .NET code running in an MSI install unless you added it.

Your Installer class (I'll assume that's what it is) is being called from an msiexec.exe process running with the local system account - this may have something to do with the error if you're thinking that this code runs just like it would if it ran with your credentials in your app's context. You should debug this in your normal way, such as catching the exception and showing the call stack.
Phil Wilson
PhilWilson  Thursday, August 13, 2009 6:03 PM

You can use google to search for other answers

Custom Search

More Threads

• Formatting a string
• Strong name library installer
• How to place a new font into [Fonts System] with click once
• application not running on computers without vb .net installed
• Windows Deployment Project
• What's A Reliable Dependency Check for .NET Framework 3.5 SP1?
• VB.NET/Crystal
• How to catch Next button click event in Installer ?
• what is the used of .InstallState
• How create tables and populate with data in table during installation