What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windwos XP Professional client computer named Certkiller -WS536 as your development computer.
You are developing a .NET Framework 2.0 application on a Certkiller -WS536.
You must add a new code group which adds FullTrust permissions to the code originating from www. Domain.com.
You are required to use the code access security policy tool (Caspol.exe to add the code group whilst you ensure that you only affect the user level policy for the
user running Caspol.exe
What should you do?

You work as the application developer at Domain.com. Domain.com uses Visual Studio.NET 2005 as its application development platform.
You use a Windows XP Professional client computer named Certkiller -WS536 as your development computer.
You are developing a .NET Framework 2.0 application on a Certkiller -WS536.
You must add a new code group which adds FullTrust permissions to the code originating from www.Domain.com.
You are required to use the code access security policy tool (Caspol.exe to add the code group whilst you ensure that you only affect the user level policy for the user running Caspol.exe
What should you do?

A.
Run the caspol -user -addgroup -site www. Domain.com FullTrust command.

B.
Run the caspol -user -addgroup -zone Internet command.

C.
Run the caspol -user -addgroup -url www. Domain.com FullTrust command.

D.
Run the caspol -user -addgroup -pub -cert test.cer FullTrust command.

Explanation:
The correct thing to do in the scenario would be to make use of the segment that used -user to specify only the user level policy, the -addgroup argument to add a new code group to the code hierarchy and the -site argument that targets code that originated only from www. Domain.com.
Incorrect Answers:
B: This method should not be used in the scenario because it is used to simply add a new code group that is a member of the Internet Zone.
C: This command should not be used in the scenario because it should be used to specify a complete url including the protocol like http:// etc.
D: The command should not be used in the scenario as the method does not specify a Web site and the -pub argument is used to identify the software publisher.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


mr_tienvu

mr_tienvu

I agree with the answer.