PrepAway - Latest Free Exam Questions & Answers

What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create a Windows Communication Foundation (WCF) Data Services service. The service connects to a Microsoft SQL Server 2008 database. The service is hosted by an Internet Information Services (IIS) 6.0 Web server.

The application works correctly in the development environment. However, when you connect to the service on the production server, attempting to update or delete an entity results in an error. You need to ensure that you can update and delete entities on the production server. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Add the following line of code to the InitializeService method of the service.
config.SetEntitySetAccessRule (“*”,EntitySetRights.WriteDelete | EntitySetRights.WriteInsert);

B.
Add the following line of code to the InitializeService method of the service.
config.SetEntitySetAccessRule (“*”,EntitySetRights.WriteDelete | EntitySetRights.WriteMerge);

C.
Configure IIS to allow the PUT and DELETE verbs for the .svc Application Extension.

D.
Configure IIS to allow the POST and DELETE verbs for the .svc Application Extension.


Leave a Reply