468,248 Members | 1,529 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,248 developers. It's quick & easy.

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

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
2 14030
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
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.

Similar topics

reply views Thread by xxx | last post: by
1 post views Thread by Diffident | last post: by
5 posts views Thread by wolfgang wagner | last post: by
2 posts views Thread by Morgan Cheng | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.