H
hB
Hi.
Error = "The configuration system can only be set once. Configuration
system is already set"
Exception Details: System.InvalidOperationException: The
configuration
system can only be set once. Configuration system is already set
....
System.Web.Configuration.HttpConfigurationSystemBase.EnsureInit()
System.Web.HttpRuntime.InitConfiguration(HttpContext context)
System.Web.HttpRuntime.FirstRequestInit(HttpContext 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.CreateApplicationHost(Type.GetType("url.ASPNetHost"),
"/",Directory.GetCurrentDirectory());
it worx fine.
but when i create myself an appdomain //due to some reason regarding
[web]application base directory
....loDomain = AppDomain.CreateDomain(domainId, null, setup);...
as mentioned in here (reference)
http://radio.weblogs.com/0105476/stories/2002/07/12/executingAspxPage...
in my code:
msh =
ASPNetHost.CreateApplicationHost(Type.GetType("url.ASPNetHost"),
"/",Directory.GetCurrentDirectory()+"\\web",Directory.GetCurrentDirectory());
and when i do
msh.ProcessRequest(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.ConfigurationFile = "web.config";
BUT IT gives same problem)
I hope you guys understand.
Thanks in advance
Awaiting replies.
regards,
Error = "The configuration system can only be set once. Configuration
system is already set"
Exception Details: System.InvalidOperationException: The
configuration
system can only be set once. Configuration system is already set
....
System.Web.Configuration.HttpConfigurationSystemBase.EnsureInit()
System.Web.HttpRuntime.InitConfiguration(HttpContext context)
System.Web.HttpRuntime.FirstRequestInit(HttpContext 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.CreateApplicationHost(Type.GetType("url.ASPNetHost"),
"/",Directory.GetCurrentDirectory());
it worx fine.
but when i create myself an appdomain //due to some reason regarding
[web]application base directory
....loDomain = AppDomain.CreateDomain(domainId, null, setup);...
as mentioned in here (reference)
http://radio.weblogs.com/0105476/stories/2002/07/12/executingAspxPage...
in my code:
msh =
ASPNetHost.CreateApplicationHost(Type.GetType("url.ASPNetHost"),
"/",Directory.GetCurrentDirectory()+"\\web",Directory.GetCurrentDirectory());
and when i do
msh.ProcessRequest(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.ConfigurationFile = "web.config";
BUT IT gives same problem)
I hope you guys understand.
Thanks in advance
Awaiting replies.
regards,