# Compile and run slicer in vs2022, and the prompt "Access Denied" appears

**URL:** <https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290>\
**Category:** Development\
**Tags:** code\
**Created:** [February 21, 2025, 8:54am UTC](https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290 "2025-02-21T08:54:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuofalin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zhuofalin/32/7146_2.png) [@zhuofalin](https://discourse.vtk.org/u/zhuofalin)\
**Post date:** [February 21, 2025, 8:54am UTC](https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290/1 "2025-02-21T08:54:26Z")

</div>

I compiled slicer on two windows (one is win10 and the other is win11). At that time, I could compile and run slicer normally using vs2022. However, after a few days, when I compiled and ran slicer again, it prompted access denied. What’s going on? Note: The operating environment has not changed.

---

<div class="post-metadata">

**Author:** ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)\
**Post date:** [February 21, 2025, 1:43pm UTC](https://discourse.vtk.org/t/compile-and-run-slicer-in-vs2022-and-the-prompt-access-denied-appears/15290/2 "2025-02-21T13:43:09Z")

</div>

Hi @zhuofalin. Your question seems more appropriate for the [Slicer Discourse](https://discourse.slicer.org/).
