How to use ConfigurationManager with ASP.NET

  • Thread starter Thread starter SR
  • Start date Start date
S

SR

I have created a ConfigurationSection class in VB.NET. I tested my class
using a windows application. Now I need to move it into my ASP.NET project.
I get an error stating that I need to specify the exePath. In the windows
application I was using the ConfigurationLevel.None. I tried setting the
path to the website (System.AppDomain.CurrentDomain.BaseDirectory) but I
have had no success. What configurations do I need to make this work?

TIA

SR
 
Did you try to use System.Web.Configuration.WebConfigurationManager to
access Data in your web.config file?

Oisín
 
Back
Top