Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Tuesday, May 24, 2022

HowTo: Getting Started With Orchard CMS For ASP Core

 


.

Suppose that you want to setup your root at C:\Project\..

1) CLONE

Run Command Window as Administrator

Make directory Project

mkdir Project

cd Project

Clone from GitHub

git clone https://github.com/OrchardCMS/OrchardCore.git


2) RUN

2.1) Run from Visual Studio

Open the project in Step (1)

Go to menu Debug/Start without debugging (CTRL+F5)


2.2) Run from Command Line

Run Command Window as Administrator

Change Directory to the cms core web code and run the project

cd "C:\Project\OrchardCore\src\OrchardCore.Cms.Web"

dotnet run

Note:

If you get error message in Step (2.2) as follows:

Unable to run your project

Your project targets multiple frameworks. Specify which framework to run using '--framework'.

Then, open the file: 

..\OrchardCore\src\OrchardCore.Cms.Web\OrchardCore.Cms.Web.csproj

Remove the letter s from the tag <TargetFrameworks>

  <PropertyGroup>

    <TargetFramework >$(CommonTargetFrameworks)</TargetFramework >

    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>

    <WarningsNotAsErrors>612,618</WarningsNotAsErrors>

    <AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>

    <RazorRuntimeCompilation>false</RazorRuntimeCompilation>

  </PropertyGroup>



Orchard CMS supposed to run on http://localhost:5000 and https://localhost:5001


For the first time run, you should get the setup page which need to be filled up.



REFERENCE:

https://docs.orchardcore.net/en/latest/

https://docs.orchardcore.net/en/dev/docs/guides/

https://www.orchardcore.io/

https://orcharddojo.net/orchard-resources

https://github.com/Lombiq/Orchard-Training-Demo-Module



Monday, May 23, 2022

How To Remove Stubborn Folders Or Files In Windows

 


.

Cannot Remove Folder, Directory is not empty. (SOLVED)

The error message "Cannot delete folder, directory is not empty" can be faced on any Windows based computer (Windows 10, 8, 7, Vista or XP) if you try to delete a folder that the system cannot access due to the permissions applied to it. In other cases the "Cannot Remove folder because the directory is not empty" issue, can be solved after scanning the hard disk for errors by using the "CHKDSK" command.

Cannot Remove Folder, Directory is not empty

In this tutorial you will find detailed instructions on how to resolve the following errors while deleting a file or folder on Windows 10, 8, 7, Vista or XP:

    • "Cannot remove Folder or File. The Directory is not Empty"
    • "Folder Access Denied. You need permission to perform this action"
    • "Cannot delete file. Cannot read from the source file or disk"
    • "Cannot Remove Folder. Cannot find the specified file"
    • Cannot Delete a File or Folder error in Windows.

HOW TO FIX: CANNOT REMOVE FOLDER OR FILE. THE DIRECTORY IS NOT EMPTY OR ACCESS IS DENIED

Method 1. Run CHKDSK on the drive.

The first step to resolve the ?Cannot remove folder" or "Cannot remove file"  issue(s), is to perform a check disk scan on the disk, that contains the folder that we cannot delete.

1. Open an elevated command prompt (Command Prompt (Admin)).

Cannot Delete Folder Directory is not empty

 

2. In the command prompt window, type the following command and press Enter: *

  • chkdsk c: /F /R

* Press the “Y” key if asked to check your disk the next time your system restarts.

Cannot Remove Folder Directory is not empty

3. After disk checking try to delete the problematic folder (or file). If you still cannot remove the folder, proceed to method-2.

Method 2. Modify Folder's (or File's) Permissions.

1. In Windows explorer, right click at the folder that you cannot delete and select Properties.
2. Select the Security tab and then click Advanced.

fix error deleting folder

3. Click Change Owner

fix error deleting file

4. In the object name box type, type the name of the Administrator account (e.g. "User1" in this example) and then click OK.

Cannot Delete a File or Folder error in Windows

 

5. Check the "Replace Owner on subcontainers and objects" checkbox and then click OK OK again to close the security settings.

Cannot Remove Folder. Cannot find the specified file

 

6. Now try to delete the folder (or the file) that you cannot delete. If you receive the same message, then proceed to method-3 below.

 

Method 3. Delete File or Folder from Command Prompt.

1. Open an elevated command prompt (Command Prompt (Admin)).

2. In elevated command prompt, give the below commands, according your case:

A. To delete a folder: *

  • takeown /F "FolderName" /r /d y
  • icacls "FolderName" /grant Username:F /t
  • rd "FolderName" /S /Q

* Notes:
1. Replace the "FolderName" with the full path and the name of the folder that you cannot delete.
2. Replace the "Username" with the username of the Administrator account.

e.g: if you want to delete the "Demo" folder (and its subfolders and files) under the "C:\Program Files\" directory and your Administrator account name is "User1", then the commands should be:

    • takeown /F "C:\Program Files\Demo" /r /d y
    • icacls "C:\Program Files\Demo" /grant User1:F /t
    • rd "C:\Program Files\Demo" /S /Q

 

B. To delete a file: *

    • takeown /F "Filename"
    • icacls "Filename" /grant Username:F
    • del "Filename"

* Notes:
1. Replace the "Filename" with the full path and the name of the file that you cannot delete.
2. Replace the "Username" with the username of the Administrator account

e.g. if you want to delete the "Example.doc" file under the "C:\Temp" directory and your Admin account name is User1, then the commands should be:

    • takeown /F "C:\Temp\Example.doc"
    • icacls "C:\Temp\Example.doc" /grant User1:F
    • del "C:\Temp\Example.doc"

 


.

source:

https://www.repairwin.com/fix-cannot-remove-folder-directory-is-not-empty-solved/

Sunday, May 15, 2022

How to Shrink a VirtualBox Virtual Machine and Free Up Disk Space

.

By default, VirtualBox creates dynamic disks that grow over time as you add data. However, if you delete data from the virtual machine later, you’ll notice that the disk doesn’t automatically shrink. But you can manually shrink a dynamic disk using a hidden command.

.

Remember that this will only shrink the disk if it’s grown in size and you’ve since removed data. So, if you just created a dynamic disk, this won’t shrink it. But, if you’ve created a dynamic disk, downloaded 10 GB of data into it, and then deleted that 10 GB of data afterwards, you should be able to shrink the disk by about 10 GB.

.

https://www.howtogeek.com/312883/how-to-shrink-a-virtualbox-virtual-machine-and-free-up-disk-space/

.

Thursday, May 5, 2022

How To: Switching Between Java Versions In Windows

.

How to Change Java Versions in Windows

.

The following two environment variables decide which Java version an application uses:

JAVA_HOME – many start scripts use this variable.

Path – is used when running a Java binary (such as java and javac) from the console.

These variables should always point to the same Java installation to avoid inconsistencies. Some programs, such as Eclipse, define the Java version in a separate configuration file (for Eclipse, for example, this is the entry "-vm" in the eclipse.ini file).

.

Install the Scripts to Change the Java Version:

https://www.happycoders.eu/java/how-to-switch-multiple-java-versions-windows/