开发者

WCF Data Service SaveChanges problem

开发者 https://www.devze.com 2023-01-11 06:48 出处:网络
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:

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.S开发者_开发知识库etEntitySetAccessRule("*", 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?


Make sure the directory is shared with read and write privileges and enable anonymous access on IIS


It is due to the rights on the physical location of your web application.

0

精彩评论

暂无评论...
验证码 换一张
取 消