This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) So, can any guru here please explain what it is?
(2) BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
Thank you. 4 1771
On Jun 25, 1:37*pm, Author <gnewsgr...@gma il.comwrote:
This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. *However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
(Think about what you'll get if you search for "visual studio 2005
application file". *I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) *So, can any guru here please explain what it is?
(2) *BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
Another question: I have App.config for my console application. *After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
Thank you.
why you want an especific name?
That file is not intended to be used by th user.
On Jun 25, 3:45*pm, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac... @gmail.comwrote :
On Jun 25, 1:37*pm, Author <gnewsgr...@gma il.comwrote:
This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. *However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
(Think about what you'll get if you search for "visual studio 2005
application file". *I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) *So, can any guru here please explain what it is?
(2) *BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
Another question: I have App.config for my console application. *After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
Thank you.
why you want an especific name?
That file is not intended to be used by th user.- Hide quoted text -
- Show quoted text -
Thank you. But, are you talking about MyApplication.e xe.config file
or MyApplication.a pplication file?
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
I usually just turn off the vshost process. As for the
MyApplication.a pplication file you're seeing, I don't have any idea what
you're talking about there. It's a bit too late for me to start researching
what it's for as well.
(2) BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
I'm pretty sure the manifest is usually embedded within the application
resources somewhere. Check your project properties, I believe there's
something on the general settings for the project that deals with the
manifest file.
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
You won't be able to change the name of that file and have everything still
work properly. When the appdomain is loaded that your executable gets hosted
in - the .NET framework sets the name of the configuration file it's
supposed to look for automatically. Unless you're managing the appdomain
your application is running in yourself you won't have any choice in the
matter about the file name. This is completely normal for .NET applications,
we all use them. I wouldn't worry too much about it. Eventually you'll learn
to love the config files, sure beats the heck outta those old ini files we
all used to deal with.
However, if you really want the config stored in a different filename -
write the xml file yourself and don't use the app.config file. Though you
won't have access to anything in the
System.Configur ation.Configura tionManager class which a lot of the other
pieces of .NET use to access configuration information.
"Author" <gn********@gma il.comwrote in message
news:05******** *************** ***********@z66 g2000hsc.google groups.com...
This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) So, can any guru here please explain what it is?
(2) BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
Thank you.
"Author" wrote:
This is regarding VS2005-generated files.
I've searched a little and found out that *.vshost.* files are VS2005
generated for debugging purpose and should not be published to the end
user. However, it's sorta hard to dig out any article about the
MyApplication.a pplication file.
(Think about what you'll get if you search for "visual studio 2005
application file". I even searched for "visual studio 2005 generated
files", but still could not get any).
(1) So, can any guru here please explain what it is?
The <Application>.e xe.vshost file is a host file Visual Studio uses to
enhance performance when debugging, as well as adding debug support for
partially trusted domains. It can be disabled in the Debug tab of the
project properties, but doing so will lower performance.
(2) BTW, I don't think MyApplication.a pplication and
MyApplication.e xe.manifest should be published to the end user,
correct?
I'm not familiar with <Application>.A pplication files as I have never seen
it (how did you create it?), but the only way I found to attach a manifest
file to a VS2005 generated application was by directly attaching it to the
<Application>.e xe file described in this article http://support.microsoft.com/kb/944276
Not sure if you would consider this publishing the manifest to the end user.
Another question: I have App.config for my console application. After
I compile, VS-2005 generates MyApplication.e xe.config, which is the
same as App.config.
But, to deliver MyApplication to the end user, I would like the config
file to be something like config.xml or MyApplication.c onfig.
(3) So, how can I change the file name and not crash the application?
Create a completely new file instead of adding an application config file to
your project. Make sure this file is deployed with your executable and in
your code use the overloaded configuration methods to access the custom
configuration file.
ConfigurationMa nager.OpenMappe dExeConfigurati on
Thank you.
You're welcome.
--
Happy Coding!
Morten Wennevik [C# MVP] This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from software giant such as Microsoft SQL
Server, Oracle, and Sybase?
Is PostgreSQL reliable enough to be used for high-end commercial
application? Thanks
|
by: Aaron Pfeifer |
last post by:
I've written an application in c# that will eventually crash due to
libraries outside the scope of the application, usually with the following
error in the event log:
---
Reporting queued error: faulting application myapplication.exe, version
1.0.2068.38127, faulting module ntdll.dll, version 5.2.3790.1830, fault
address 0x000224b2.
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode support IDEs are DreamWeaver 8 and
Zend PHP Studio.
DreamWeaver provides full support for Unicode. However, DreamWeaver is
a web editor rather than a PHP IDE. It only supports basic IntelliSense
(or code completion) and doesn't have anything...
|
by: Lasse Edsvik |
last post by:
Hello
I'm trying to build a simple COM+ app in vs.net using C# and i cant register
it in component manager.....
what more is needed than this:
using System;
using System.EnterpriseServices;
|
by: MrNobody |
last post by:
I was a Java developer so I'm used to using property files as a means to keep
configuration settings for my apps. I'm wondering what options are there with
..NET?
Some settings I want to include are like a root directory for a target
program on the user's machine my app uses, which they would be prompted to
supply at startup. Normally the registry is used for this but I'd rather not
use the registry if possible. Isn't there some kind of...
| |
by: Terry Olsen |
last post by:
While running my application, either in or out of the debugger, after a
while the message box pops up that says "MyApp.vshost.exe has encountered a
problem and needs to close." What does the vshost.exe do? I don't get any
other errors in my app and VB doesn't show any error. My application becomes
unresponsive and closes when I click out of the error message. From that
point, I can simply click the "Run" button in the IDE and re-start my...
|
by: Pieter |
last post by:
Hi,
Something strange is happing with my Windowf Forms application (VB.NET
2005): The users had all local Administrator-rights on there pc. We changed
it to the 'normal' users, and now they can't run our V.NET application
anymore!
The application starts (you can see the screen and caption etc), and than
they get the well known error "MyApplication has encountered a problem and
needs to close" with the "send error report"-button etc.
|
by: Bishoy |
last post by:
Hi,
In VB.NET there is a keyword called "My" which has a lot of properties
collected at it.
Is there any equivalent to this "My" in C#?
Thank you.
|
by: Paul Brady |
last post by:
Apparently, I have been living on the wrong planet.
I have written 15 databases in Microsoft Access in the past 10
years, some of which are split, one uses ODBC interface with a SQL
server, one has a many-to-many relationship, and all of which have
Basic code to handle events and run functions which I have coded, and
all this time have never heard of .Net -- until today.
So, I looked it up on Google, asking for Access and .Net and
got...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |