Question

Jiniv Thakkar on Wed, 04 Jun 2014 14:27:35


I have added

using Microsoft.Office.Word.Server.Conversions;
using Microsoft.Office.Word.Server.Service;

I have created service application also the Word Automation Service is working on the server,I am also the Farm Admin

Reference :

http://msdn.microsoft.com/en-us/library/office/ff742315(v=office.14).aspx

I am using the first piece of code from the above link

Getting error at            job.Start();

Error : Access denied - System.ServiceModel.Security.SecurityAccessDeniedException was unhandled by user code

Please help


Sponsored



Replies

Inderjeet Singh Jaggi on Wed, 04 Jun 2014 14:37:45


http://social.msdn.microsoft.com/Forums/sharepoint/en-US/7e948a5c-369c-49a5-9db8-4d28a7e890ea/bdc-service-gives-access-denied-on-central-admin-site?forum=sharepointadminprevious

It turns out the IIS Anonymous Authentication Credentials were incorrect. Once we reset the Anonymous account and password the Access Denied messages went away.

1. Open IIS Manager
2. click on the server name
3. Double click authentication
4. Right click on "Anonymous Authentication" and choose "Edit"
5. Set the account and password
6. IISRESET

http://stackoverflow.com/questions/6594001/access-denied-error-for-a-method-in-web-service

http://www.windows-tech.info/11/5f523134b204fdaa.php

http://sharepoint.stackexchange.com/questions/35457/access-denied-when-code-is-executed-remotely-as-a-wcf-service

SPSecurity.RunWithElevatedPrivileges(delegate{ [code] })

Jiniv Thakkar on Wed, 04 Jun 2014 16:54:13


Hi Inderjeet,

Thanks for your response

1) The code is already in

SPSecurity.RunWithElevatedPrivileges(delegate{ [code] })

2) This too did not work

It turns out the IIS Anonymous Authentication Credentials were incorrect. Once we reset the Anonymous account and password the Access Denied messages went away.

1. Open IIS Manager
2. click on the server name
3. Double click authentication
4. Right click on "Anonymous Authentication" and choose "Edit"
5. Set the account and password
6. IISRESET

3) During my intial investigations I had already visited the links you mentioned but those links dont have anything useful that could resolve the issue

4) Checked the logs also but could not find the error

Anyways thanks for your reply,really appreciate it !

What is more surprising is that I did everything from the MSDN post yet it gave me error