Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / October 2006

Tip: Looking for answers? Try searching our database.

.NET 2003 - app.config problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Josh Crosby - 19 Oct 2006 18:34 GMT
Hello,
I have a simple little app that depends on the app.config file for sql server
settings, report locations, etc... my problem is my dev box has different
values in order for me to test with :) I wrote a small app that will take
a settings.xml file and merge it into the app.config file so that the production
settings are accurate. All works well, the app.config file is changed, but
when the user clicks on the application icon, it quickly throws an error:

"This application has failed to start because the application configuration
is incorrect. Reinstalling the application may fix this problem."

I'm using vs 2003, a simple deployment project, a custom action (Commit)
that executes the smallxml app and passes arguments (/c /i "[TARGETDIR]Arcom.exe.config"
/o "[TARGETDIR]Arcom.exe.config" /s "[TARGETDIR]prodsettings.xml" /q), InstallerClass
is set to False.

I appreciate any help, I absolutely do not want to purchase wise or installshield
to execute a small app after an install happens. What a pain!!!

Thanks,
Josh Crosby
Josh Crosby - 19 Oct 2006 20:35 GMT
Found the problem thank God. Syntax error in the App.config (an extra pesty
")

Thanks,
Josh Crosby

> Hello, I have a simple little app that depends on the app.config file
> for sql server settings, report locations, etc... my problem is my dev
[quoted text clipped - 19 lines]
> Thanks,
> Josh Crosby

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.