title: Accessing Virtual Directory from console application
body: <p>i have console application in which it will try to access an application installed in IIS (i.e. virtual directory) for getting the db connection information. While doing this in windows xp (IIS 5.1), it is working, but it is not working in windows 7 (IIS 7.5). The console application's Target .Net framework is 2.0, 3.5 (having 5 applications), since, it was developed years ago. Now trying to move from XP to Win 7, but facing some issues with accessing the IIS folder.
  Please advise to access the virtual directory folder in win 7. Any code example will help a lot.</p>
  
  <p>*<em>Error:</em>*System.Runtime.InteropServices.COMException (0x80070005): Access is denied.</p>