PC Review


Reply
Thread Tools Rate Thread

appdomain configuration file error

 
 
hB
Guest
Posts: n/a
 
      17th Jul 2005
Hi.


Error = "The configuration system can only be set once. Configuration
system is already set"


Exception Details: System.InvalidOperationExcepti*on: The
configuration
system can only be set once. Configuration system is already set


....
System.Web.Configuration.HttpC*onfigurationSystemBase.EnsureI*nit()
System.Web.HttpRuntime.InitCon*figuration(HttpContext context)
System.Web.HttpRuntime.FirstRe*questInit(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.CreateApplicat*ionHost(Type.GetType("url.ASPN*etHost"),

"/",Directory.GetCurrentDirect*ory());
it worx fine.


but when i create myself an appdomain //due to some reason regarding
[web]application base directory


....loDomain = AppDomain.CreateDomain(domainI*d, null, setup);...
as mentioned in here (reference)
http://radio.weblogs.com/0105476/sto...cutingAspxPage...



in my code:
msh =
ASPNetHost.CreateApplicationHo*st(Type.GetType("url.ASPNetHos*t"),
"/",Directory.GetCurrentDirect*ory()+"\\web",Directory.GetCur*rentDirectory());



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,


---
hB

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicK Mike Microsoft ASP .NET 5 15th Aug 2007 09:57 AM
RE: Enterprise Library exception: The configuration section securityCryptographyConfiguration is not defined in the current configuration for the AppDomain. Steven Cheng[MSFT] Microsoft ASP .NET 0 21st Sep 2006 10:18 AM
appdomain configuration file error hB Microsoft ASP .NET 2 26th Jul 2005 08:01 AM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft C# .NET 7 6th Nov 2003 02:10 PM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft Dot NET 7 6th Nov 2003 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:48 PM.