By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,874 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,874 IT Pros & Developers. It's quick & easy.

System.UnauthorizedAccessException: Access to the path "d:\inetpub\wwwroot\web.config" is denied.

P: n/a
job
In a sharepoint setup using smartpart to load our user controls using
enterprise blocks (data) we are getting some strange errors (logged to
the event log). We dont get the error all the time. When we get the
error CPU goes 100%

We have been through all we can think of, but have not been able to
locate the source to the error.

Any suggestions?

Entry@12-09-2006 14:35:08: System.UnauthorizedAccessException: Access
to the path "d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()Exception info:
System.UnauthorizedAccessException: Access to the path
"d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()
Sep 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
hi
give full permission to evryone of web.config

It is working.:)

Thanks
Manpreet Singh
jo*@bla.com wrote:
In a sharepoint setup using smartpart to load our user controls using
enterprise blocks (data) we are getting some strange errors (logged to
the event log). We dont get the error all the time. When we get the
error CPU goes 100%

We have been through all we can think of, but have not been able to
locate the source to the error.

Any suggestions?

Entry@12-09-2006 14:35:08: System.UnauthorizedAccessException: Access
to the path "d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()Exception info:
System.UnauthorizedAccessException: Access to the path
"d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()
Sep 26 '06 #2

P: n/a
whenever we make any web application , there is permission for
everyone to read the web.config, so you have to give the read
permission to everyone , so every user can read the web.config. this is
excat solution of that problem

Thanks
Manpreet Singh
jo*@bla.com wrote:
In a sharepoint setup using smartpart to load our user controls using
enterprise blocks (data) we are getting some strange errors (logged to
the event log). We dont get the error all the time. When we get the
error CPU goes 100%

We have been through all we can think of, but have not been able to
locate the source to the error.

Any suggestions?

Entry@12-09-2006 14:35:08: System.UnauthorizedAccessException: Access
to the path "d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()Exception info:
System.UnauthorizedAccessException: Access to the path
"d:\inetpub\wwwroot\web.config" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean
useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationSettingsLoader.Build(String
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationFile.GetConfig(String
configKey)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.ReadMetaConfiguration()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder.LoadMetaConfiguration(Strin g
configurationFile)
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationBuilder..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager..ctor()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.get_Current()
at
Microsoft.Practices.EnterpriseLibrary.Configuratio n.ConfigurationManager.GetCurrentContext()
at
Microsoft.Practices.EnterpriseLibrary.Data.Databas eFactory.CreateDatabase()
at Team.AM.UK2000BussinessLogic.CreateDatabase.Get()
at Team.AM.UK2000Utils.CessionHelper.get_PersonaleNum merAktor()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_DataBinding(Obj ect
sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind()
at
Team.AM.UK2000UserControls.Flytning_FlytteStatus_M ed_Parameter.Flytning_FlytteStatus_Med_Parameter_P reRender(Object
sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain()
Sep 26 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.