473,404 Members | 2,187 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,404 software developers and data experts.

Permissions on Network shares

I'm a converted Java programmer so go easy on me..

Basically I wrote a program for my Sales department that parses EDI 852s and
returns a csv file for them. My problem is when i move it to the share I
have to trust the assembly in the .net configuration first, not a problem
really as there won't be many people using it, but my next project is company
wide and I really don't want to walk around and trust the assembly on every
machine. I've been hacking away at this permission thing for a good bit of
time now and seem to be missing something. can anyone answer these questions
for me please?

1. Say I have StreamWriter sw = new StreamWriter(outputPath.text + "\\" +
outputFN.text). How would i write a permission to give my users access to
read/write to this file dynamically? the fileIOAccess example in the MSDN
isn't very clear and doesn't seem to work for me. Always returns the typical
permission failure (Request for permissions.fileio mscorb.... failed).

2. is there an easy way to automatically trust your assembly over the entire
intranet at once so users can run it without running the .net config on their
local machine? I tried the .net config on the dev server but that didn't
seem to make a difference.

3. is there a good book/article anyone knows about thats in depth and
explains when/why/how these permissions are applied.

thanks in advance

jake
Nov 16 '05 #1
0 1117

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

Similar topics

0
by: Charles LaCour | last post by:
I am looking for a way to list and possibly change the permissions on file shares on Win2K servers via a perl script. I have tried using Win32::OLE to access ADSI objects for the shares but...
2
by: Mike MacSween | last post by:
I'm not talking Access Users & Groups, I may or may not implement that. Even if I do file/folder rights still need to be managed. I've searched the archives and read the many postings. The basic...
12
by: Mark | last post by:
Hello, in a simple console application I try to create a file with some code like: FileStream file = new FileStream("test.txt", FileMode.OpenOrCreate, FileAccess.Write); StreamWriter sw = new...
6
by: Default User | last post by:
Hi How can i look for network share folders and copy a text file to it? I've been looking into how i can do this in the documention but with no luck. I found a little on of the web but i dont...
3
by: kihoshk | last post by:
Hi, I have a C# app that needs to copy files from the local machine to another on a WORGROUP network (not a domain). The app is running as a service under the SYSTEM account. When an attempt is...
5
by: Jason Richmeier | last post by:
The application I am currently working on contains a custom windows service. On my machine, when I logon with a domain user (non-admin) account, the user is unable to control (start and stop) the...
6
by: tendim | last post by:
G'day group. Currently our organization us using VB6 based applications, and I am trying to push forward and migrate some of the smaller things to VB.NET, eventually migrating all applications...
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...
4
by: Ralph | last post by:
Hi, how can I get the users or groups which are listed in the shared permission of a shared folder? Thanks, Ralph
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.