Hi,All

ranganh:Dear sanju,
You
cannot keep the web.config only in the sub-directory. You need to
have a web.config in the root directory. If at all you want to
have a web.config in the sub-directory, then the only settings you can
specify are authorization, appsettings etc.,
Unless you
configure the sub-directory also as an application in the IIS Virtual
directory settings, you cannot have any other settings such as
authentication, session-state etc., in the web.config that you have in
the sub-directory.
Hope that makes it clear.
Thanks.
Hi I was Also Facing the same Problem
I had a web.config in root directory
And also a web.config in my Subdirectory.
I was also getting the same error.
And the solution above helped me in solving that.
Prevoisly
I had written Connection string section authentication
section control section etc both in webconfig in root as well as
subdirectory
Removing that sections from inner web config file
and only keeping authorize section in it My Problem was solved.
Thanks.
Raghav
CodeASP.NET Community |
My Blog |
jQuery Intellisense in Visual Studio 2008 "Success doesn't come to you…you go to it."--Marva Collins
"Failure is success if we learn from it." Malcolm Forbes
"Success does not come to those who wait . . . and it does not wait for anyone to come to it." Anonymous