Results 1 to 4 of 4

Thread: writing a file to a network fileshare **SOLVED**

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Resolved writing a file to a network fileshare **SOLVED**

    Hey all,
    I am trying to write a file to remote Fileshare on the Network. I mapped the Share as NetworkDrive. Now I am writing the file as usual using

    FileStream streamWriter = File.Create(filepath);
    streamWriter.Write(data, 0, size);

    This works on a local drive but not on the Network drive.
    I checked the Permissions on the Network Drive and did set those to Everyone Full Control.
    Any idea what I can try to make this work?

    Thanks, Stephan
    Last edited by Sgt-Peppa; Nov 10th, 2005 at 07:19 AM. Reason: **SOLVED**
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: writing a file to a network fileshare

    Are you getting an error message?

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: writing a file to a network fileshare

    How are you qualifying the address?

  4. #4

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Re: writing a file to a network fileshare

    Sorry for the delay of this answer. I found out that it has nothing to do with the .NET Framework or my Code.
    I tried it in a regular C# Form and my Code works fine. I tried it in a C# Library called from Microsoft BizTalk Server 2004 and it did error. It had to do with permissions. Thanks for your help,

    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width