473,396 Members | 2,017 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.

app.config headache

HaLo2FrEeEk
404 256MB
Ok, I've got my application all written up, I've spent a good bit of time on it. It utilizes a SOAP web service. I'm trying to build and distribute my application for people to test and everytime they run it they get an "[Application] has stopped working" error.

I determined that it was because the app.config file wasn't present in the same directory as the executable. I REALLY don't want to distribute the app.config file with my executable, I don't want people to make changes to the file and potentially break or alter the way my app works.

Everytime I try to change the app.config's build action to something like "compile", I get this error:

"A namespace does not directly contain members such as fields or methods"

What the crap does that mean? I just want to embed the app.config file into my executable so that I can only have to distribute one file, and to help stop people from messing with the file.

Is this just not possible? If so, are there alternatives?
Oct 16 '10 #1
3 2274
Curtis Rutland
3,256 Expert 2GB
Are you deploying this as a Click-Once or Setup package, or just the executable itself?

App.config files can't be compiled into the executable. They have to be distributed with it. Click once and the Setup projects take care of this for you.
Oct 19 '10 #2
HaLo2FrEeEk
404 256MB
I din't thinkI could do click once, since I don't have an IIS server. I learned that I could just add some mimetypes to my .htaccess and it would work. Unfortunately I have to publish it to be installed from a CD ROM, then upload it to my server, I can't have it publish directly to my ftp server. That sucks.
Oct 19 '10 #3
Curtis Rutland
3,256 Expert 2GB
Just publish it to a directory (or "share" or "filesystem" or whatever they call it, can't remember at the moment). It will add all the files you need. Then you can copy that to your server.

I would suggest that you look into a setup project, if you have the proper version of VS. That's a bit more work, but much better results.

There's also third party installer package creators, but I don't have any experience with them. Some of them are really good, from what I hear.
Oct 19 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: David | last post by:
On every web browser except Safari, this website works great. (Well, by "every" I mean Mozilla, Netscape, and Internet Explorer, for Mac and Windows). The site is: http://www.ruleofthirds.com ...
4
by: Dominic | last post by:
Suppose I have a web.config. I'd like to move some configuration settings from this web.config and put it another XML file (say, common.xml). Now, is there any way that I can modify the web.config...
3
by: Jeff Robichaud | last post by:
Hello, Since it is possible to put application settings in a file other than web.config, I was wondering what is the best practice in doing so vs. putting these settings directly in web.config....
5
by: sling blade | last post by:
I have developled my first major app and i am trying to deploy it in to a host server for publication. However the app tries to use the physical path used during development. Is the path...
0
by: Mantorok | last post by:
Hi I store my tcp port configuration in my Web.config file and I read the configuration using RemotingConfiguration.Configure when the session starts. However when I start the app after...
5
by: Ryan Ternier | last post by:
I'm having an issue with an SQL insert statement. It's a very simple statement, and it's causing too much fuss. strSQL = "INSERT INTO tblFieldLayouts(TypeID, FieldID, OrderID, Hidden) VALUES("...
3
by: laurenq uantrell | last post by:
I'm trying to return an integer from the following table that returns the number of unique cities: tblEmployees Name City John Boston Frank New York Jim Omaha Betty ...
12
by: NuB | last post by:
The validation controls are giving me a headache. here is what i'm trying to do and so far what I've tried has not worked. I need to hide my grid if the page is not valid how can i accomplish...
5
by: James Ma | last post by:
Now I am debugging a buggy VB.NET function like following Function foo() Try ‘ many loops and codes and nested try catch here! …… Catch (ex as Exception) Msgbox ex.message Finally …
0
by: Mahesh Devjibhai Dhola | last post by:
Hi, I am getting the following exception when using webservice.. "The underlying connection was closed: An unexpected error occurred on a receive" I am not getting any innerexception so no clue...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.