473,396 Members | 1,898 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.

OpenExeConfiguration on a shared network folder

Hi all,
I developed a little application which reads/stores some setting on its
app.config file and it perfectly works...locally.

If I store the application and the config file on a shared folder, with full
access right, when the application calls OpenExeConfiguration I always get
ConfigurationErrorsException and this tells me the request for the
FileIOPermission has failed.

I can develop my own configuration parser pretty quickly, but I guess there
is a more elegant solution.

Thanks for the help in advance.
Aug 9 '07 #1
2 1794
Use a linkedConfiguration file. See
http://blogs.msdn.com/junfeng/archiv...08/369662.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Romu" <Ro**@discussions.microsoft.comwrote in message
news:B2**********************************@microsof t.com...
Hi all,
I developed a little application which reads/stores some setting on its
app.config file and it perfectly works...locally.

If I store the application and the config file on a shared folder, with
full
access right, when the application calls OpenExeConfiguration I always get
ConfigurationErrorsException and this tells me the request for the
FileIOPermission has failed.

I can develop my own configuration parser pretty quickly, but I guess
there
is a more elegant solution.

Thanks for the help in advance.

Aug 9 '07 #2
Many thanks Kein for your quick answer.

My application is a very little utility, just one exe assembly without any
other dependencies than the .Net ones.

I was thinking that a more easy simple solution would exist. If it is not
really the case, the simpliest solution is write my own parser.

"Kevin Spencer" wrote:
Use a linkedConfiguration file. See
http://blogs.msdn.com/junfeng/archiv...08/369662.aspx

--
HTH,

Kevin Spencer
Microsoft MVP

DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"Romu" <Ro**@discussions.microsoft.comwrote in message
news:B2**********************************@microsof t.com...
Hi all,
I developed a little application which reads/stores some setting on its
app.config file and it perfectly works...locally.

If I store the application and the config file on a shared folder, with
full
access right, when the application calls OpenExeConfiguration I always get
ConfigurationErrorsException and this tells me the request for the
FileIOPermission has failed.

I can develop my own configuration parser pretty quickly, but I guess
there
is a more elegant solution.

Thanks for the help in advance.


Aug 9 '07 #3

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

Similar topics

2
by: James | last post by:
how can i allow access to a shared network folder? i am trying to give access to my as pages only. i don't want just anyone to type in the path of my files. i can't seem to do this with a shared...
2
by: Daniel | last post by:
when i use stream writer to write to a shared folder, and the network card of that remote computer is disabled in the middle of the write then reenabled later. every time i try to write to that...
30
by: Roald Oines | last post by:
My company is in the process of updating PCs from NT4 to XP Professional, along with moving from Office 97 to Office 2002. I have several Access databases with FE .mdb/.mde files in both versions,...
5
by: Rahul Anand | last post by:
Hi, I am facing a problem in accessing a network shared folder. I just wrote a test console application to test the behavior and found that in some cases the .NET does not releases the network...
5
by: William GS | last post by:
Hello. How can I determine if a folder is shared? if it is shared, how can I retrieve the resource shared name? I have: Folder name ==> C:\WORKS\DOCS Resoure shared name ==> DOCUMENTS With...
1
by: JeffW | last post by:
Researched this, but none of the proposed solutions are working for me. Am hoping for some insight. Am trying to open a binary file that exists on a shared drive for reading. Code lives inside...
10
by: Lloyd Dupont | last post by:
I have written a .NET application which does heavy use of interop (through ManagedC++). It works allright. Now someone askedme if it works when installed in a shared directory. So I'm testing,...
0
by: NoWhereMan | last post by:
Hello, I'm trying to get the list of shared folders of a network computer and add them to a combo box. I'm using the bellow code in VB .NET. Code ==== Private Sub EnumShares(ByVal Machine As...
13
by: Elton Cohen | last post by:
Hi newsgroup! Can anyone tell me where I should put a simple Access database file in order to be accessible for every computer in the network (same workgroup)? There does not need to be any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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,...
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
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...

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.