I’ve published wcf dataservice project to IIS7 with .NET 4 installed on that server. Everything worked fine, but when i called SaveChanges from client, service returned error:
Server Error in ‘/’
Application.
Description: An error
occurred while accessing the resources
required to serve this request. You
might not have permission to view the
requested resources.
Error
message 401.3: You do not have
permission to view this directory or
page using the credentials you
supplied (access denied due to Access
Control Lists). Ask the Web server’s
administrator to give you access.
Tho everything works fine on my local Visual Studio host server.
The permissions on directory, that contains websites seem to be correct. Cant identify the problem.
Service configuration:
config.UseVerboseErrors = true;
config.SetEntitySetAccessRule("*", EntitySetRights.All);
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
Adding “Authenticated Users” to users with write permissions on *.svc file helps, but that’s just bad solution. May be someone can suggest the better one?