.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

Webservices access denied with service account "NetworkServices"

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :ASP.Net

I have created an asp.net web application on  windows server 2008. I have created a website in IIS 7 with an application pool. The application pool has the identity "NETWORKSERVICE". I have a web reference in my application with a certificate.

When I create a new web application and add the code below and add the web reference, and run the web application from the solution (and not from a website in IIS), the web service works fine. I think the local administrator has permissions and the network service account not. Is this the problem? And is there solution?

public static PartsService MyCompanyPartsService
                if (_partsService != null)
                    return _partsService;

                _partsService = new PartsService();

View Complete Post

More Related Resource Links

"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 to Search Service Application

I just "upgraded" my installation of SharePoint 2010 Foundation with Search Server Express 2010.  During the installation, I was able to access and configure the Search Service Application. However, a day later, I cannot access the application management page: I get an access denied error.  I am the farm administrator, so supposedly I am supposed to have access to the management page.  I've also tried adding my login to the "Full Control" group of the Search Application; it gives me the same error.  It appears that the only account that can access the administration page is the service/system account.  Obviously this would not be ideal. I've tried looking around for logs to see if anything is amiss, but there appears to be nothing logged. What gives?  How do I fix it?

WCF Service Unable to Access Personal Certificate Store Unless Service Account is Logged In

I created a WCF service that has a method which makes a call to a SOAP web service over the internet. In order to make a call to the SOAP web service, it requires that an X.509 certificate be sent with the HttpWebRequest. The X.509 certificates are loaded in the Personal and Trusted Certificate store of the account which the service is running under. When the service account is logged into the server, everything works just fine. However, when the service account is not physically logged onto the server, it has problems loading up the X.509 certificate and fails authentication when trying to make the HttpWebRequest. I am new to WCF services so I don't even know where to start looking. Can anyone please help? Thanks in advance.

Search Server Express 2010 - Access Denied when attempting to manage Search Service Application or P

I first noticed this error with the Search Service Application when I was no longer able to use the search portal, but have since noticed the issue with the PowerPoint Service Application.  When I navigate in Central Administration to either the "Farm Search Administration" or the "Manage service applications" pages and attempt to manage the "Search Service Application", I get this error: Error: Access Denied  Current User You are currently signed in as:  WHEELERS\MyUserName   Sign in as a different user    I have tried removing the service application and re-adding it, changing the application pool to running under an existing application pool as the farm administrator, as another application pool with the same identity as the primary web application, and as another application pool running under the SP-SearchService identity. The big recent change with SharePoint, aside from fixing the previous issue where I was incorrectly using CNAMEs with Kerberos, was to switch the main web application to claims authentication. That site correctly works with claims based authentication and Kerberos.

Access denied on "Configure service accounts"


Just installed a standalone, developer's instance of Sharepoint 2010 on my Windows7 workstation per the instructions outlined in the MSDN article:


When I try to click on the Configure service accounts link on Sharepoint Central Administration site, I get an access denied error.  My windows ID is local to the workstation and it has full administrator rights.  My Id is in the Farm Administrator's group plus the BUILTIN\Administrators group.  Why can't I access this link?  Everything else appears to working fine (still testing).



SP 2010 RTM: Volume Shadow Copy Service error: Access is denied


I'm getting this error on SP2010 RTM:

Volume Shadow Copy Service error: Unexpected error calling routine RegOpenKeyExW(-2147483646,SYSTEM\CurrentControlSet\Services\VSS\Diag,...).  hr = 0x80070005, Access is denied.

   Initializing Writer

   Writer Class Id: {35500004-0201-0000-0000-000000000000}
   Writer Name: SPSearch4 VSS Writer
   Writer Instance ID: {13687afd-3a26-4e72-a323-dda04d8c2066}


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.


Access denied when Searc Service Application tries to crawl Sharepoint content


I have just set up a new SP2010 environtment(3 servers: WFE, App, SQL).

When I try to get my Search Service Application to crawl my main SP site and my MySite location, I get the following error in the crawl log:

"Access is denied. Verify that either the Default Content Access Account has access to this repository, or add a crawl rule to crawl this repository. If the repository being crawled is a SharePoint repository, verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled."

Things I have checked:
I have ensured that the default access account has "Full Read" on the web application
-I set up crawl rules for both sources specifying a service account that has admin access to the content on those sites
-I logged in to the SP sites using the service account that the Service Application is using to crawl
-I even created a brand new search service application from scratch and got the exact same results

The only difference between this environment and my test environment, where search works just fine, is that this is the production environment and so it uses FQDN with a host header: http://portal.company.org.


Web analytics service failed to start : access denied


I came a cross an error in my sharepoint environemnt whic indicates that Web analytics service  fails to start.

Web analytics service failed to start : access denied

I have everything up and running, is there a special service with a special privileges that need to be setup for this service?

Thanks in advance

MOSS 2007 - Access is denied. Check that the Default Content Access Account has access to this cont


Greetings folks,

I have MOSS 2007 running on Windows 2008 server.  I'm getting the following error when trying to crawl content.  "Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content."  I have tried everything to correct this, and i'm about ready to pull my hair out.



BDC Service gives Access Denied on Central Admin site


We have a new installation of SharePoint 2010 using Kerberos authentication and everything works fine but Business Data Connectivity Services. We get "Access Denied" from the Central Administration site when we click on "Manage Service Applications" and then we click the name of the BDC service. The SharePoint WFE and the DB catalogs are on two different servers in case that matters. Anyone seen this issue before? 

Access 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.ServiceModel.Security.SecurityAccessDeniedException: Access is denied.

Source Error:

Wrong Account being used to access files - Help - No Impersonation


I run a simple .aspx website on a Windows Server 2008 machine.

There is NO impersonation, and System.Security.Principal.WindowsIdentity.GetCurrent().Name returns NT AUTHORITY\NETWORK SERVICE, which it the account which the application pool runs. In my web.config, I have <authentication mode="Forms">.


I tried to test the security of the application and server by removing file permissions to the .aspx files. I was greatly worried when the website continued to run without problem (it should not have been able to read the .aspx files).

By turning on file level auditing, I discovered that the .aspx files were being read by the machine$ account (if the machine is called Serv1, then the files would be read by the Serv1$ account, which seems to have access to all files on the local machine).


Is this a security breach or is this behaviour by design ?

Please can somebody assist, as I am worried.

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 To Web Service !


Hello ,

I have an Web service,that is call with jquery .

now i neccessary limit access to it .

for Example if everybody type address or ... show an "Access denied" text ...

in fact only my site can call web service and client not allow to call it .

please help me , its very Necessary ...

thanks a lot

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

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
        protected void ButtonRegisterDetails_Click(object sender, EventArgs e) 
            // display properties of the uploaded file 
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