In this doc you will find a SetUp Guide, common problems & other tips and trix regarding .Net projects.
Confirmed projects using this set up
- I***
- E*********
Setup
This is a guide to set up your local windows environemnt inorder to start developing in the .Net projects.
Parallels
If you are using Paralells on a Mac make sure to install the latest PRO version of Windows.
Install Chocolatey
- Install Chocolatey in Windows Powershell Admin (skip parts for programs already in place)
- Use Chocolatey to install NVM (nvm install 10, 14, 16 for node versions needed)
- Use Chocolatey to install Notepad++ for opening all files
- Use Chocolatey to install Git
Install Visual Studio
- Install Visual Studio 2022 (or 2019 if preferred)
- Install Powershell from winget or Microsoft store (not necessary but preferred)
- Go to Windows Terminal Settings —> Powershell and add
Run this profile as Administrator
- Update execution policy by running:
Set-ExecutionPolicy -Unrestricted
- Get rid of the prompt for running powershell as admin
- Go to Windows Terminal Settings —> Powershell and add
- Install .NET Framework (4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
- Install in order oldest —> newest
Create project folder
- Create a folder for all your projects, preferrably
C:\Projects
Enables features
The following features should be enabled in Turn Windows Feature on or off
- .NET Framework 3.5 (includes .NET 2.0 and 3.0)
- None of the subfolders
- .NET ASP .NET 4.8
- WCF Services
- All subfolders except HTTP Activation
- Internet Information Services
- Web Management Tools
- IIS Management Console
- IIS Management Services
- World Wide Web Services
- Application Development Features
- All Subfolder
- Common HTTP Features
- Default Document
- Directory Browsing
- HTTP Errors
- Static Content
- Health and Diagnostics
- HTTP Logging
- Performance Features
- Static content compression
- Security
- Basic Authentication
- Request Filtering
- Application Development Features
- Web Management Tools
- Microsoft Messages Queue
- None of the subfolders
- SMB 1.0/CIFS File Sharing Support
- SMB 1.0/CIFS Automatic Removal
- SMB 1.0/CIFS Client
- SMB Direct
- Telnet Client
- Windows Process Activation Service
- Configuration APIs
- Process Model
- Work Folders Client
Add projects
Add projects in ‘Windows\System32\drivers\etc\hosts’
Profile environments
- Change the value to setProfileEnvironment=“true” in ‘Windows\System32\inetsrv\config\applicationHosts’
Activate IIS
Activate IIS (Internet Information Services) in ‘Turn Windows features on/off’ as well as the relevant features - Set up a site in the IIS - IIS should point to the .Web folder - Hostname —> url to visit
Episerver License
To get an Episerver License for the project. Talk to the person in charge of the licenses. (Currently Viktor Gars
)
Common Problems
Internal Server Error
If getting an internal server error when trying to access your local environment try the following.
- Check if VPN is active if your not connected to NoA Network
- Executed command
iisreset
in terminal - Restart Visual Studio
- Do a Create Solution followed by a Build Solution