‘Runtime error’ on the website having Database on SDF file.
- Start IIS Manager.
- Click on Application pools and select the application pool used by the website.
- Right-click on the Application pool name and select Advanced Settings.
- Under the Process Model, find Identity and change it to NETWORK SERVICE.