ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Error when loading AweCoreDemo application on Mac OS
Title:
B
I
{code}
?
Hi, I unzipped AweCoreDemo.zip to ~/Downloads/AweCoreDemo folder on my Mac. I opened AweCore.sln in Visual Studio for Mac, when I run the application, I get the following yellow screen of death. System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/xxxxxxx/Downloads/AweCoreDemo/AweCoreDemo\\Views\Home/Index.cshtml'. at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) ... Please help in resolving this error.
Save Changes
Cancel
Ganeshan
asked at 20 Nov 2019
the Main demo uses html helpers for the "show code" functionality, they read the code directly from the Views folder, try the MinSetupCore demo for now
at 20 Nov 2019
Omu
Thanks, MinSetupCore works great. I would love to get the Main demo working at some point.
at 20 Nov 2019
Ganeshan
you could modify the methods inside `ShowCodeHelpers.cs` and `CodeHelper.cs`, where you see `File.ReadAllText` or `ReadAllLines` reaplace with string.Empty or empty string array;
at 20 Nov 2019
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK