When the project is website. The project directory can't be resolve correctly. The issue i found just make a little adjust. So it can be fix.
Please see like below. '
File:
DefaultConnectionString
Fixed Code:
String filepath = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, configPath);
using (var stream = new FileStream(filepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
{
When the project is website. The project directory can't be resolve correctly. The issue i found just make a little adjust. So it can be fix. Please see like below. '
File:
Fixed Code: