Hi.
Error = "The configuration system can only be set once. Configuration
system is already set"
Exception Details: System.InvalidO perationExcepti *on: The
configuration
system can only be set once. Configuration system is already set
....
System.Web.Conf iguration.HttpC *onfigurationSy stemBase.Ensure I*nit()
System.Web.Http Runtime.InitCon *figuration(Htt pContext context)
System.Web.Http Runtime.FirstRe *questInit(Http Context context)
....
I am not on IIS. I am hosting ASP dotnet, in a dotnet console
applicaiton.
The console app has its own default app domain.
When i create as
ApplicationHost .CreateApplicat *ionHost(Type.G etType("url.ASP N*etHost"),
"/",Directory.Get CurrentDirect*o ry());
it worx fine.
but when i create myself an appdomain //due to some reason regarding
[web]application base directory
....loDomain = AppDomain.Creat eDomain(domainI *d, null, setup);...
as mentioned in here (reference)
http://radio.weblogs.com/0105476/sto...cutingAspxPage...
in my code:
msh =
ASPNetHost.Crea teApplicationHo *st(Type.GetTyp e("url.ASPNetHo s*t"),
"/",Directory.Get CurrentDirect*o ry()+"\\web",Di rectory.GetCur* rentDirectory() );
and when i do
msh.ProcessRequ est(file_name, query,tw);
Then this error comes when i use my own appdomain creation.
I think this is some one console exe with its domian create another
appdomain with its (need to be separately own) configuraiton file
(which is there or not there does gives problem) (i do AppDomainSetup
setup = new AppDomainSetup( ); | setup.Configura tionFile = "web.config ";
BUT IT gives same problem)
I hope you guys understand.
Thanks in advance
Awaiting replies.
regards,
---
hB