473,410 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

invalid configuration?

I have a VC application created with Studio 2005 and when i try to run the
exe on the target machine I get an error message that says the program has
an invalid configuration and I should try reinstalling it. It's just a
simple dialog app using MFC in a shared DLL. Target machine is XP with Net
Framework installed.

Any idea what is being called "configuration"?

Thanks
Feb 16 '08 #1
4 1606
Probably a manifest file specifying where to find the dlls. The message is a
little misleading because most of the time the cause is a dependency issue.
See http://channel9.msdn.com/showpost.aspx?postid=369473 for information
about Visual C++ deployment.
--
Sheng Jiang
Microsoft MVP in VC++
"Dave Cullen" <no****@mail.comwrote in message
news:u3**************@TK2MSFTNGP03.phx.gbl...
I have a VC application created with Studio 2005 and when i try to run the
exe on the target machine I get an error message that says the program has
an invalid configuration and I should try reinstalling it. It's just a
simple dialog app using MFC in a shared DLL. Target machine is XP with Net
Framework installed.

Any idea what is being called "configuration"?

Thanks


Feb 16 '08 #2
"Dave Cullen" wrote:
I have a VC application created with Studio 2005 and when i try
to run the exe on the target machine I get an error message that
says the program has an invalid configuration and I should try
reinstalling it. It's just a simple dialog app using MFC in a
shared DLL. Target machine is XP with Net Framework installed.

Any idea what is being called "configuration"?
Probably you're trying to run debug build of the application on
the target machine. Make relase build and ensure that target
machine has all necessary libraries installed. MFC is not a part
of .NET Framework, BTW. Look in MSDN for "Microsoft Visual C++
2005 Redistributable Package (x86)".

Alex
Feb 16 '08 #3
Dave Cullen wrote:
I have a VC application created with Studio 2005 and when i try to run the
exe on the target machine I get an error message that says the program has
an invalid configuration and I should try reinstalling it. It's just a
simple dialog app using MFC in a shared DLL. Target machine is XP with Net
Framework installed.

Any idea what is being called "configuration"?
Dave:

..NET framework has nothing to do with MFC. Are you taking steps to install the
correct MFC and CRT DLL's on the target machine?

Static linking may be the way to go for you.

--
David Wilkinson
Visual C++ MVP
Feb 16 '08 #4
See this for redistributing MFC:

http://www.codeproject.com/KB/cpp/vcredists_x86.aspx
http://blog.kalmbachnet.de/?postid=80

If your app is not managed, .net is not needed for this app. Also, an easy
option would be to make it static link as pointed out by David.

---
Ajay

"Dave Cullen" <no****@mail.comwrote in message
news:u3**************@TK2MSFTNGP03.phx.gbl...
>I have a VC application created with Studio 2005 and when i try to run the
exe on the target machine I get an error message that says the program has
an invalid configuration and I should try reinstalling it. It's just a
simple dialog app using MFC in a shared DLL. Target machine is XP with Net
Framework installed.

Any idea what is being called "configuration"?

Thanks

Feb 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: lds | last post by:
I am getting the following error: The "SendUsing" configuration value is invalid. Description: An unhandled exception occurred during the execution of the current web request. Please review the...
2
by: js | last post by:
I got this error when I moved my application to a new Windows 2003 server. I installed and recompiled the 'Microsoft.Practices.EnterpriseLibrary - June 2005" then added these assemblies to the...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
0
by: craigwfl | last post by:
This is really a lame error. I've spent two days scouring the internet for a proper solution to my problem. My issue is that I have an ASP.NET website using a VB.NET COM object to send emails (code...
1
by: fran | last post by:
I have this code: System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration("SAS.Int.ComunServicios.ComunProcesos.dll"); The filepath is not useful for me. If I...
2
by: Nathan Sokalski | last post by:
I have a DataList in which the ItemTemplate contains two Button controls that use EventBubbling. When I click either of them I receive the following error: Server Error in '/' Application....
1
by: samarthkumar84 | last post by:
Hi I had used following code for sending e-mail but facing this problem. I want to send this e-mail in ASP.NET using VB.NET code. I am attaching both code an output. CODE Imports...
0
by: =?Utf-8?B?Qy4gSHVnaGVz?= | last post by:
Hello, I have a .net 2.0 application using a 'Settings.settings' configuration file to store application settings. The settings are modified at runtime and stored when the user exits the...
3
by: =?Utf-8?B?T2xpdmllciBNQVRST1Q=?= | last post by:
I'm trying to run an ASP.NET 2.0 web site on Windows Server 2008 RC1. I encounter a server error : HTTP 500.19 - Configuration data is invalid IIS7 claims that the <appSettingssection in web.config...
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.