Advertise with us
Control Panel
Forum
Hosting Help
ASP.NET 4.5 & SQL 2012 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
Home
»
Questions & Answers
»
OpenWebConfiguration
OpenWebConfiguration
14 Jul, 12
Author:
Hieu N Trinh
http://aspspider.info/vboyz2knight
My little home.
I'm trying to :
System.Configuration.Configuration rootWebConfig1 = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(/);
if (rootWebConfig1.AppSettings.Settings.Count > 0)
{
System.Configuration.KeyValueConfigurationElement customSetting = rootWebConfig1.AppSettings.Settings[53UploadDir];
if (customSetting != null)
{
UploadDir = HttpContext.Current.Server.MapPath(customSetting.Value);
}
}
Parser Error Message: An error occurred loading a configuration file: Access to the path 'c:\AspSpiderRoot\web.config' is denied.
I don't want to read 'c:\AspSpiderRoot\web.config', I want to use my web.config. How do i fix this?
Answers .............
You must
login
to post answer for this question.
Total
members
:
250612
Average new registrations per day (in last 7 days):
7
New Registration:
Open
Register Now
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.