ArgumentException text is wrong - by Josip Medved

Status : 

 


3
1
Sign in
to vote
ID 392318 Comments
Status Active Workarounds
Type Bug Repros 4
Opened 1/8/2009 2:30:23 PM
Access Restriction Public

Description

When running code bellow:

    using (var package = (ZipPackage)ZipPackage.Open(_fileName, FileMode.Create, FileAccess.Write)) {
    }

following ArgumentException is thrown:

"Cannot get stream with FileMode.Create, FileMode.CreateNew, FileMode.Truncate, FileMode.Append when access is FileAccess.Read."

As one may see, FileAccess in question is actually FileAccessWrite.
Sign in to post a comment.
Posted by Microsoft on 7/9/2012 at 10:43 PM
The WPF team has recently reviewed this issue and will not be addressing this issue as at this time the team is focusing on the bugs impacting the highest number of WPF developers. If you believe that this was resolved in error, please reactivate this bug with any necessary supporting details.
Posted by Microsoft on 1/8/2009 at 9:18 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team