Mar 14, 2011, 11:46 AM
[CLOSED] WebPart and access denied to web.config
Hi,
I have sharepoint webpart using Ext.Net, and some problems with configuration.
Why does it need access to web.config there? is there a way to avoid that ?
I have sharepoint webpart using Ext.Net, and some problems with configuration.
Why does it need access to web.config there? is there a way to avoid that ?
.WebPartException: Access to the path 'C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config' is denied. ---> System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at Ext.Net.ResourceHandler.HasHandler()
at Ext.Net.ResourceManager.GetWebResourceUrl(Type type, String resourceName)
at Ext.Net.ResourceManager.RegisterClientScriptIncludeInternal(Type type, String resourceName)
at Ext.Net.XControl.RegisterScripts(List`1 scripts, ResourceManager rm)
at Ext.Net.XControl.RegisterScripts(ResourceManager rm)
at Ext.Net.XControl.RegisterScripts()
at Ext.Net.XControl.SetResources()
at Ext.Net.XControl.PreRenderAction()
Last edited by Daniil; Mar 21, 2011 at 7:11 PM.
Reason: [CLOSED]