Új hozzászólás Aktív témák

  • OddMan

    őstag

    A visual studio 2015-el készítettem egy saját app-ot és ezzel kapcsolatban van egy olyan gondom, hogy nem tudok fájlt létrehozni, mert a hozzáféréssel gond van. Azt már kiderítettem, hogy a telepítés (deploy) után a programom DefaultAccount felhasználói jogosultsággal fut és szerintem ezért nem tudok fájlt létrehozni. Szerintetek azt meg lehetne valahogyan oldani, hogy a visual studio-val feltöltött app, Administrator jogosultsággal fusson?
    Az icacls programmal már mindent megpróbáltam, de nem jutottam semmire. Fontos lenne valami megoldás, mert szeretnék egy szöveges fájlba írogatni, de sajnos egyelőre a jelenlegi felhasználóval ehhez nincs jogosultságom. :W

    Hardver: Raspberry pi 2
    OS: Windows 10 iot (10240)

    Pontos hibaüzenet:
    System.UnauthorizedAccessException was unhandled by user code
    HResult=-2147024891
    Message=Access to the path 'C:\log' is denied.
    Source=System.IO.FileSystem
    StackTrace:
    at System.IO.WinRTIOExtensions.<TranslateWinRTTaskCore>d__1`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.IO.WinRTFileSystem.<OpenAsync>d__1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.IO.WinRTFileSystem.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, FileStream parent)
    at System.IO.MultiplexingWin32WinRTFileSystem.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, FileStream parent)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
    at raspi_app1.MainPage.<>c__DisplayClass7_0.<wlog>b__0()
    at System.Threading.Tasks.Task.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    InnerException:

Új hozzászólás Aktív témák