.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Access to Path Denied

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint

I've got this message that keeps popping up every minute.  I can't figure it out.

Log Name:      Application
Source:        Microsoft-SharePoint Products-SharePoint Foundation
Date:          12/3/2010 9:00:00 AM
Event ID:      6398
Task Category: Timer
Level:         Critical
User:          NEWBERN\spadmin
Computer:      spweb.newbern.local
The Execute method of job definition Microsoft.SharePoint.Administration.SPUsageImportJobDefinition (ID 753ca203-576e-4d10-ba18-5478eeaacaad) threw an exception. More information is included below.

Access to the path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS' is denied.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <Provider Name="Microsoft-SharePoint Products-SharePoint Foundation" Guid="{6FB7E0CD-52E7-47DD-997A-241563931FC2}" />

View Complete Post

More Related Resource Links

Access to path xxx denied when uploading a file using c#

Hi I have a file upload app written in c#. The app runs on IIS on a Windows 2003 Server OS. I want the app to upload the file onto the server (The app and the server are on the same machine). This code has been working fine for a long time running on Windows Server 2000, and Windows XP Professional. Now when I moved onto Windows Server 2003, it stopped working. I have given ASPNET account full access to the folder on the server, and it still gives this error. Is this a bug in 2003, and can anybody assist me? Thanks Shane

sql server 2008 version upgrade failed access to path is denied

upgrading from 2008 r2 eval to 2008 r2 enterprise. Use the maintenance option from setup. Get pretty far along in the process.  But then the following error. ( an additional note. setup warns that I am running sql server on a domain controller server. ) The link the error message points to has nothing to say. Why would my sql server upgrade fail? If I have to reinstall, will I lose my database data? thanks,   TITLE: Microsoft SQL Server 2008 R2 Setup ------------------------------ The following error has occurred: Access to the path 'C:\Program Files\Microsoft SQL Server\100\License Terms\SQLServer2008R2_License_ENT_1033.rtf' is denied. Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup. For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0x60797DC7%25400xBB814387  

Access to the path 'Drought\\MyTable' is denied

Hello, I want to create a folder under the root and failed. Please see the code.public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string[][] k = gets(); } } // other code } public string[][] gets() { String thisDir = HttpContext.Current.Server.MapPath("."); String FileDownloadPath = Directory.CreateDirectory(thisDir).ToString() + "\\MyTable"; if (Directory.Exists(FileDownloadPath)) { string[] files = Directory.GetFiles(FileDownloadPath); foreach (string file in files) File.Delete(file); } ...  Thanks.

IIS 7 & W2K8 - Access to path \\remotewinXP\folder\ is denied. No error on IIS 6 & W2K3 hosting. Any



Appreciate if someone could point to the right answer on how to overcome this error. By clicking the Button3, the ExportedFilePDF.pdf should be copied to the \\presario remote machine. So far, no security issue on the same configuration in IIS6 + W2K3.

  Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click
            File.Copy("C:\BackOffice\Export\ExportedFilePDF.pdf", "\\presario\FaxServer\Outbox\ExportedFilePDF.pdf", True)
        Catch ex As Exception
            Response.Write("Error copying file | " & ex.ToString)
        End Try

    End Sub

 The browser will generate this error message when the Button3 is clicked.

Error copying file | System.UnauthorizedAccessException: Access to the path '\\presario\FaxServer\Outbox\ExportedFilePDF.pdf' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) at Test5.Button3_Click(Objec

Access to path denied aspnet account - windows 7


I have seen this error many times in past and what all I used to do was to add aspnet account to the directory and provide it with read and write access.  But this time I am trying to run an application in Windows 7(64 bits) - I had to manually enable the IIS from windows feature in Control Panel.

But I dont see any aspnet account in 'security' tab of any of the directories (in its properties). I even ran aspnet_regiis -i in v2.0.50727 and v4.030319 directories.   How do I get aspnet user account to show up in any folder? Any help would be greatly appreciated.


dotnetzip < Access to the path bLAH is Access denied


I trying  dotnetzip on localhost everything works fine.

but on a real dotnet hosting it raises error :

Access to the path 'C:\inetpub\vhosts\blahblah.com\subdomains\rapor\httpdocs\DotNetZip-luqevaxu.tmp' is denied.

my code is just this :

using (ZipFile zip = new ZipFile(Server.MapPath("~")+"/a.zip"))

my hosting got a plesk interface.and I am afraid there is no solution to fix this on any plesk settings.

what should I do ?

any clue ?

thanks much before for any answers if may be solution or not.

Access to the path 'C:\Windows\system32\config' is denied


I am using Katmai Feb 2008 CTP on 64 bit enterprise vista.

I am getting following error, when I am trying to add dafult detail attributes with a role in report model.


getting the same error when trying to add filter in a report model.

Access to th path 'C:\Windows\system32\config' is denied.



'Access to the path is denied" when more than one app pool access IBM DB2 Driver


I am experiencing a strange situation where when one application (running in it's own app pool) uses the  IBM.Data.DB2.iSeries .net driver, any onther app pool that attempts to access the same resource gets an 'access to the path is denied' message.  If I recycle the app pool that initially 'worked' and then access using another app pool, the one that worked before does not and the one that didn't does.

this is the line of code referenced in the error:

Dim connection as iDB2Connection = new iDB2Connection(ConfigurationManager.COnnectionStrings("theConnectionStringname").ConnectionString())


it fails on this line in either app in the app pool that fails.


 Error Details:

Type : System.TypeInitializationException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The type initializer for 'IBM.Data.DB

Access to report file denied. Another program may be using it.


Migrated from Windows 2000 ASP.NET 1.1 to Windows 2003, ASP.NET 2.0 and had this error. All the forums/MSDN/Blogs says to give Read/Write Access to C:\Windows\Temp folder. Why should we give Full Access to some folder in Production server?? In windows 2000, ASP.NET 2.0 development machine, no files are created when we run crystal reports from aspx pages. Then why in Windows 2003 servers, we need to give rights to temp folder?? It is a simple code


And the code is not storing anything on the disk. Then why should it store the GUID.rpt file in Temp file in Windows 2003 server?? Any alternative is there not to store anything on the disk when Crystal Reports are opened in aspx page??


"Access is denied. Check that the Default Content Access Account has access to this content"


Our search is not working. The crawl log indicates following error: "Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (The item was deleted because it was either not found or the crawler was denied access to it.)".


If I check the event viewer, it indicates following error: "Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. [CLIENT: <local machine>]"


My default content access account is another one than this NT AUTHORITY\NETWORK SERVICE account. The content access account password is correct. Apparently this content access account is translated to the NETWORK SERVICE account upon a crawl. And this network service account doesn't has the appropriate rights on database level. How can I fix this?


Access Denied with SPControlMode.New and RunWithElevatedPriviliges


I am trying to add MultipleLookupField to a webpart I am developing. It works fine as long as the user has Add permission on the list it points to: here is the code:

private MultipleLookupField _multiplelookupKeywords = new MultipleLookupField();
protected override void CreateChildControls()
Guid guidSite = SPContext.Current.Site.ID;
Guid guidWeb = SPContext.Current.Web.ID;
    using (SPSite site = new SPSite(guidSite))
        using (SPWeb web = site.OpenWeb(guidWeb))
  SPList listTest;   
  listTest = web.Lists[ListName]; 
  _multiplelookupKeywords.ListId = listTest.ID;
                _multiplelookupKeywords.ControlMode = SPControlMode.New; //Changing this to SPControlMode.Display works fine
                _multiplelookupKeywords.RenderContext = SPContext.GetContext(web);

Asp.Net upload file access denied



I have the problem below, if anyone can help me, appreciate it.

Server Error in '/' Application.

Access to the path 'c:\Inetpub\EnewsAttFiles\employ-e-header2.jpg' is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'c:\Inetpub\EnewsAttFiles\employ-e-header2.jpg' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Hig

Access denied to folder in ASP.NET project either though I have granted all users full permissions !



i have made a very simple file upload app, that i want users to be able to upload images to a folder on my server, well localhost for the time being Stick out tongue

here is the simple upload code...

        protected void ButtonRegisterDetails_Click(object sender, EventArgs e) 
            // display properties of the uploaded file 

Access Denied error


I have read several posts where this access denied to path ex.('c:\test' ).  The only way I got this to work was adding <identity impersonate> using my credentials in the web.config file but I don't want to use my credentials all the time.  I have Windows as the authentication mode so why doesn't it work without supplying my credentials?  I tried giving Network Service account write permissions to the folder but that doesn't work either.

FileUpload Access Denied


Hi all.

I have done much research on this and am still stumped.

I have a ASP.NET 2.0 application, running on Windows 2003 Server. IIS 6.0

I am using Windows authentication , and I am not using impersonization, and I set my trust levvel to full.

<authentication mode="Windows"/>

<identity impersonate="false"/>

<trust level="Full

Sharepoint site client access denied


I have an sharepoint application which was working fine.

I encountered a license expired message in sql server enterprise evaluation 2008 version after which i changed the date to 2 months earlier date, I have also changed HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\ConfigurationState to 3 after which sql server started working but the issue is that the clients are unable to access the sharepoint site completely. On providing the url the web site requests for logon information and then access is denied. The same url with the same authentication credentials is accessible from the server and the entire application works fine from the server. 

From the  client the below error page appears.

You are not authorized to view this page

You do not have permission to view this directory or page using the credentials that you supplied.

Please try the following:

  • Contact the Web site administrator if you believe you should be able to view this directory or page.
  • Click the Refresh button to try again with different credentials.

HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
Internet Information Services (IIS)


Sharepoint "Access denied"


I'm stuck on the sharepoint access problem now.


We are using Manged Sharepoint 2007 (a hosted version of Microsoft® Windows SharePoint Services 2007) provided by a hosting company.

With the sharepoint site, some of users can not access the site. Message:

Access denied.

You do not have permission to perform this action or access this resource


It does not offer any logon prompt.


Users who can not access the sharepoint site are usually sitting in a LAN. I think it might be blocked by their policy. Am I right? Why do they need to block this site?


Please help me with this question.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend