Skip to content

Test: DataContractSerializerTests/DCS_FileStreamSurrogate failed with "System.UnauthorizedAccessException" #21425

@ghost

Description

Opened on behalf of @JiayiLi1

The test DataContractSerializerTests/DCS_FileStreamSurrogate has failed.

System.UnauthorizedAccessException : Access to the path 'C:\dotnetbuild\work\8b64ac9d-8324-443b-a250-64baec62f74f\Work\142c785d-2f76-4aae-b3c8-32bf55151a7a\Unzip\Test.txt' is denied.

    Stack Trace:

       at System.IO.FileStream.OpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at MyFileStream..ctor(String fileName)
   at DataContractSerializerTests.DCS_FileStreamSurrogate()

Build : Master - 20170428.01 (UWP F5 Tests)
Failing configurations:

  • Windows.10.Amd64
    • x64-Debug
    • x64-Release

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fuwp~2F/build/20170428.01/workItem/System.Runtime.Serialization.Xml.ReflectionOnly.Tests/analysis/xunit/DataContractSerializerTests~2FDCS_FileStreamSurrogate

Metadata

Metadata

Assignees

Labels

area-Serializationgood first issueIssue should be easy to implement, good for first-time contributorshelp wanted[up-for-grabs] Good issue for external contributorstest-bugProblem in test source code (most likely)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions