20 November, 2013
0 Comments
1 category
The following code result in my case to rootFolderPath = "C:\inetpub\wwwroot\MvcApplication1".
Uri uri = new System.Uri(Assembly.GetAssembly(typeof(MvcApplication)).CodeBase); string binFolderPath = Path.GetDirectoryName(uri.LocalPath); string rootFolderPath = new DirectoryInfo(binFolderPath).Parent.FullName;
Tags: C#
Category: Uncategorized