473,396 Members | 1,785 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,396 software developers and data experts.

AppSettings problem

i have an app.config file in my vb vs2k5 win form project. when i try to set
a different value for "DbConnectionString" and run the application i get the
following error. any help is appreciated.
the code i use to pull the value for "DbConnectionString" is:
DbConnectionString = ConfigurationManager.AppSettings("DbConnectionStri ng")

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="DbConnectionString"
value="Data Source=DEVELOPMENT;Initial
Catalog=VBA1351_00;Integrated Security=SSPI"
/>
</appSettings>
</configuration>

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later
in the log.
* Activation of
file://\\filehost\Development\dpolley\VBA1351_00\VBA1351_ 00.application
resulted in exception. Following failure messages were detected:
+ File, VBA1351_00.exe.config, has a different computed hash than
specified in manifest.
Mar 28 '06 #1
3 12155
stockbuildingsupply wrote:
i have an app.config file in my vb vs2k5 win form project. when i
try to set a different value for "DbConnectionString" and run the
application i get the following error.

+ File, VBA1351_00.exe.config, has a different computed hash than
specified in manifest.


Are you using ClickOnce deployment? It looks like the application isn't
getting rebuilt properly and the hashes for the files in the manifest arn't
getting updated with the new config file's hash. Make sure you completely
rebuild the entire project before testing the installer.
Mar 28 '06 #2
yes i am using clickonce deployment. i did a rebuild all and that resolve
the hash problem. however, when i change the value in VBA1351_00.exe.config
i.e. the app.config file in my vs2k5 project it doesnt pull the changed
value. it keeps using the value that was set in the app.config file at
design time. here is the code i use to access the app.config file:

oConfig =
ConfigurationManager.OpenExeConfiguratio(Configura tionUserLevel.None)DbConnectionString = oConfig.AppSettings.Settings("DbConnectionString") .Value

"Leon Mayne" wrote:
stockbuildingsupply wrote:
i have an app.config file in my vb vs2k5 win form project. when i
try to set a different value for "DbConnectionString" and run the
application i get the following error.

+ File, VBA1351_00.exe.config, has a different computed hash than
specified in manifest.


Are you using ClickOnce deployment? It looks like the application isn't
getting rebuilt properly and the hashes for the files in the manifest arn't
getting updated with the new config file's hash. Make sure you completely
rebuild the entire project before testing the installer.

Mar 29 '06 #3
Hi,
however, when i change the value in VBA1351_00.exe.config
i.e. the app.config file in my vs2k5 project it doesnt pull the
changed value. it keeps using the value that was set in the
app.config file at design time. here is the code i use to
access the app.config file:
...


I am not very clear about the scenario. If you change that app.config file
in your vs2k5 project, it seems still in the design time. Would you please
provide some more detail steps you used in this case?
Thanks!

Best regards,

Gary Chang
Microsoft Community Support
================================================== ====
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Mar 30 '06 #4

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

Similar topics

4
by: Keith Chadwick | last post by:
I have 3 individual ASP.NET applications that make up the overall web application. Each of these websites share some common styles, scripts and xslt files. These are all placed in a single...
2
by: hazz | last post by:
I have spent more time than I care to admit trying to track down a very subtle error. Here is my app's xx.exe.config file. <?xml version="1.0" encoding="utf-8" ?> <configuration>...
3
by: jason | last post by:
i am coding a simple console application with Visual C# .NET in Visual Studio .NET my config file (myapp.exe.config) has the following appSettings section: <appSettings> <add key="myKey"...
4
by: Robert Pfeffer | last post by:
Hi, I have a rather unusual problem. I have a very simple ASP.NET application, basically hello world type. I created it with Visual Studio 2003 and am running it in debug mode. It runs fine...
2
by: Jared Hagel | last post by:
I've searched the web for a solution to this problem. Surprisingly, no problem/solution has been posted yet. We can read application configuration information fine when our asp.net application...
4
by: Dr. Paul Caesar - CoullByte (UK) Limited | last post by:
We have a contact us page that is used throughout our sites. I have over the last few days modified all sites to obtain information from Application Settings. It is a simple form that when ran...
5
by: Simon Hart | last post by:
Hi, I want to use the ConfigurationSettings.AppSettings from within a .NET class library that gets called. If using the above class, what would the name of the config file be? would this be the...
7
by: moondaddy | last post by:
I'm running a wpf windows app and want to add the appSettings element to the config file. when I do, the app wont start up and I get the following error: {"The type initializer for...
1
by: Ken | last post by:
I'm currently using 1.1. Is there any way using the value of a ConfigurationSettings.AppSettings as a key of ConfigurationSettings.AppSettings.Tosting( )]? for example in web.config <add...
6
by: Nick | last post by:
Hi there, I have a Windows Service application that has a load of settings defined, I can access these using My.Settings. I would like to pass the NameValueCollection of the settings to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.