Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3809244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:16:31+00:00 2026-05-19T15:16:31+00:00

Im trying to save a file that i download from a mailbox. This hasnt

  • 0

Im trying to save a file that i download from a mailbox. This hasnt been any problems, but now that i’v built a GUI upon my modell i get and Authorization exception:

Saved file: C:\TempNorlander
System.UnauthorizedAccessException: Access to the path 'C:\TempNorlander' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode)
   at a.a0.b(String A_0, Byte[] A_1, Int32 A_2, Int32 A_3)
   at MailBee.Mime.Attachment.Save(String filename, Boolean overwrite)
   at Mail2DB.Connect2Exchange.CollectData() in C:\Users\marthin\documents\visual studio 2010\Projects\Mail2DB\Mail2DB\Connect2Exchange.cs:line 210

I cant figure out what the problem is here. In the folder iv set all possible users have all priviliges.

EDIT:

I forgot to mention that now with the GUI i enter the folderpath in a simple textBox. (via a FolderBrowserDialog)

SECOND EDIT:

Im Runnig this on a windows 7 and VS 2010.
Thx for any help!
/Marthin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:16:32+00:00Added an answer on May 19, 2026 at 3:16 pm

    Saved file: C:\TempNorlander

    You are trying to save a file that has the same name as the folder. That’s not allowed, UnauthorizedAccessException is the result. Fix the file name to, say, C:\TempNorlander\mumble.txt

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to download a mp4 file from a server, then save it in
I'm trying to save my Photo class that has a byte[] File field. When
I am trying to download a file from a site using perl. I chose
I'm trying to write a servlet, that can upload a file from client to
I'm trying to download a PDF file in Struts Action class. Problem is that
I have a site, from which you can download an HTML file. This HTML
I am trying to save a sftp file in C#. I have found this
I am trying to save a file from the web to my Android device,
I'm trying to save a file in which I have some credentials. In order
I am trying to save a file (and then read it later) in java

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.