Triumph-Tech / magnus-vscode

Triumph Tech’s Magnus Editor is a full-featured remote editor for Rock RMS.
https://www.triumph.tech
MIT License
10 stars 1 forks source link

"Unable to read file" error when viewing .ascx and .cs files in the Plugins directory #2

Closed leahjennings closed 2 years ago

leahjennings commented 2 years ago

In Allowed Physical Directories in the Magnus settings in Rock, if I enable Plugins, I get an error when viewing any .ascx and .cs file in the Plugins directory. Spot checked several files in different sub-directories and all had the same error, unless the file was an image or a .css, .js, or .lava file. I did refresh at the server directory level and the error still occurred.

image

Running this version of Visual Studio Code on macOS Monterey 12.3.1:

image

Rock Version: Rock McKinley 13.6 (1.13.6.1)

jonedmiston commented 2 years ago

Thanks Leia! This is being caused by IIS not allowing certain types of files (ascx, cs) from being accessed in the query string. We have a workaround where we change the file extension in the URL to work around IIS. This will be in the Magnus public beta.