Azure .NET Core Web App DirectoryNotFoundException: Could not find a part of the path
Azure .NET Core Web App DirectoryNotFoundException: Could not find a part of the path

Getting this error in an Azure .NET Core Web App deployed via GitHub? An unhandled exception occurred while processing the request. DirectoryNotFoundException: Could not find a part of the path ‘D:\home\site\wwwroot\Templates\my_file.html’. System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) DirectoryNotFoundException: Could not find a part of the path ‘D:\home\site\wwwroot\Templates\my_file.html’. System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) System.IO.FileStream..ctor(string path, FileMode mode,... » read more

How can I use Visual Studio as the editor in WinSCP?

Note this is no longer what I do! I use Visual Studio Code After a bit of searching I found the answer. Add a new external editor in WinSCP (Options/Preferences/Editors/Add), With this info: External Editor: “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\devenv.exe” /Edit !.! External editor opens each file in a separate window: not checked/blank Force text... » read more

Getting MSBuild Error MSB3021 in Visual Studio

For no reason a rebuild of a .NET MVC project created these errors that wouldn’t go away with restarts, cleans, running as administrator, etc: Error 383 Unable to copy file “..\root\foo\bar\thing\test.thing.xml” to “bar\thing\test.thing.xml”. Access to the path ‘bar\thing\test.thing.xml’ is denied As detailed here: https://stackoverflow.com/questions/2895898/visual-studio-build-fails-unable-to-copy-exe-file-from-obj-debug-to-bin-debug The only thing that worked for me was the answer by https://stackoverflow.com/users/2435679/adrian-booth When... » read more

Visual Studio Code for Classic ASP coding?
Visual Studio Code for Classic ASP coding?

I can’t quite believe I’ve been struggling without Visual Studio Code all this time when I’ve been supporting the classic ASP sites we still run. Up until now I’ve been using the full version of Microsoft Visual Studio, hacking WinSCP to open the .asp files, and editing them there. It kind of works but often... » read more