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.application 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.application and
MyApplication.exe.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.exe.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.config.
(3) So, how can I change the file name and not crash the application?
Thank you. 4 1744
On Jun 25, 1:37*pm, Author <gnewsgr...@gmail.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.application 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.application and
MyApplication.exe.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.exe.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.config.
(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...@gmail.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.application 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.application and
MyApplication.exe.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.exe.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.config.
(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.exe.config file
or MyApplication.application 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.application file.
I usually just turn off the vshost process. As for the
MyApplication.application 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.application and
MyApplication.exe.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.exe.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.config.
(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.Configuration.ConfigurationManager class which a lot of the other
pieces of .NET use to access configuration information.
"Author" <gn********@gmail.comwrote in message
news:05**********************************@z66g2000 hsc.googlegroups.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.application 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.application and
MyApplication.exe.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.exe.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.config.
(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.application 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>.exe.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.application and
MyApplication.exe.manifest should be published to the end user,
correct?
I'm not familiar with <Application>.Application 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>.exe 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.exe.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.config.
(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.
ConfigurationManager.OpenMappedExeConfiguration
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |