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

Interesting App domain issue

I have two managed windows applications A and B. Both have their own config
files. Application A invokes application B thru process start. However,
since B runs in A's context, B starts up and reads A's configuration file
instead of it's own. I didn't even realize that this was possible.

To get around that issue, from A application code I create a new application
domain and load B. B then is able to read it's own configuration file.
However, it opens a console window while it executes. I want to suppress
this window. I also want to read the output from the console window; that
is, make application B's output be available in application A. This was
rather easy with the system.diagnostic class however because of the config
file issue, I can't use it. Any hints? Assume further that app B is a third
party component so I have no access to the source code.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------

Jun 24 '06 #1
3 1222

"Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
news:uF*************@TK2MSFTNGP05.phx.gbl...
|I have two managed windows applications A and B. Both have their own config
| files. Application A invokes application B thru process start. However,
| since B runs in A's context, B starts up and reads A's configuration file
| instead of it's own. I didn't even realize that this was possible.
|

This is not the expected behavior, and is not what I'm seeing when I start a
windows application using Process.Start (using V2's
ConfigurationManager.OpenExeConfiguration).

My test platform consists of the following:
Windows Application : A.exe
Config file: A.exe.Config

Windows Application : B.exe
Config file: B.exe.Config

A calls Process.Start("B.exe");

A uses A.exe.Config, while B uses B.exe.Config

Willy.



Jun 24 '06 #2
I need to get a sample from the developer that reproduces this problem so it
may be until monday before I post back. This is .NET 1.1 by the way.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:eG**************@TK2MSFTNGP03.phx.gbl...

"Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
news:uF*************@TK2MSFTNGP05.phx.gbl...
|I have two managed windows applications A and B. Both have their own
config
| files. Application A invokes application B thru process start. However,
| since B runs in A's context, B starts up and reads A's configuration
file
| instead of it's own. I didn't even realize that this was possible.
|

This is not the expected behavior, and is not what I'm seeing when I start
a
windows application using Process.Start (using V2's
ConfigurationManager.OpenExeConfiguration).

My test platform consists of the following:
Windows Application : A.exe
Config file: A.exe.Config

Windows Application : B.exe
Config file: B.exe.Config

A calls Process.Start("B.exe");

A uses A.exe.Config, while B uses B.exe.Config

Willy.


Jun 24 '06 #3
Let's put that one up to programmer error.
Thanks for the time willy.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
news:eI**************@TK2MSFTNGP05.phx.gbl...
I need to get a sample from the developer that reproduces this problem so
it may be until monday before I post back. This is .NET 1.1 by the way.

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:eG**************@TK2MSFTNGP03.phx.gbl...

"Alvin Bruney [MVP]" <www.lulu.com/owc> wrote in message
news:uF*************@TK2MSFTNGP05.phx.gbl...
|I have two managed windows applications A and B. Both have their own
config
| files. Application A invokes application B thru process start. However,
| since B runs in A's context, B starts up and reads A's configuration
file
| instead of it's own. I didn't even realize that this was possible.
|

This is not the expected behavior, and is not what I'm seeing when I
start a
windows application using Process.Start (using V2's
ConfigurationManager.OpenExeConfiguration).

My test platform consists of the following:
Windows Application : A.exe
Config file: A.exe.Config

Windows Application : B.exe
Config file: B.exe.Config

A calls Process.Start("B.exe");

A uses A.exe.Config, while B uses B.exe.Config

Willy.



Jun 27 '06 #4

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

Similar topics

3
by: ACP | last post by:
Hi all, Have a situation that my company has never run across before. Client is running NT4 for the domain server, using terminal services 2000 and running an application with a SQL Server...
2
by: Chris Stewart | last post by:
We're having an issue here at school with trying to access a SQL Server database from a .NET application. As a department, we roll out a generic image to all of our lab computers. For some reason...
5
by: Tyler Style | last post by:
Hullo - looking for a little advice here. I have a form on a page in one domain submitting to a cgi in another domain. Weirdly, on some Windows XP systems, a form on the page fails to submit/post...
0
by: Oliver | last post by:
Hello, (I posted about this a few weeks agao, but got no response. I've tried some more stuff since then...) I’ve written a Visual basic .NET program that need to create a new .DBF file...
2
by: Leonard | last post by:
I am using SmtpMail on a couple of ASP.NET pages. When mail is sent to an address outside the domain I get the "Could not access 'CDO.Message' object." error message. I have looked in the...
1
by: Rakesh Roberts | last post by:
I think I have a very interesting cookie problem. I use form authentications on my application. Through out my application I started using a toggle control that persists its value for the session...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
1
by: IM | last post by:
Hi all, I've done some sniffing around but apart from one post in this newsgroup haven't been able to find much on this topic. We have recently moved (well, quite a while ago but that's...
1
by: raviviswanathan.81 | last post by:
Hello, So we have a webmaster who sets document.domain to some domain. After that, we try to create and inject text inside an iframe by getting the iframeID.contentDocument (or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?
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
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
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,...

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.