4
Answers

Can't use Configuration.GetWebConfiguration("~/")

Kuber Kumar

Kuber Kumar

17y
6.3k
1

Hi all,

I am new to .net and this is my first ever post in any discussion forum :). So, please pardon me if I ask something really stupid.

Problem: I am following this piece of writing on msdn

http://msdn2.microsoft.com/en-us/library/ms971499.aspx. Doing as directed but can't seem to use the call,

Configuration configuration = Configuration.GetWebConfiguration("~/");

getting the error "System.Configuration.Configuration' does not contain a definition for 'GetWebConfiguration"

And can't find any such method in that class. Where am I going wrong?

Kindly help!!!

Platform: IIS 6.0, ASP.NET 2.0, Windows 2003, VS 2005

 

Answers (4)