MCSD.NET - 70-320 Exam Question:
Download Questions PDF

Suppose You create an XML Web service named Time ESService. Each time ESService is started, it
checks for the existence of an event log named Time ESServiceLog. If TimeServiceLog does not
exist, Time ESService creates it. You discover that when Time ESService creates Time
ESServiceLog, it throws a System.Security.SecurityException. The exception includes the
following message: "Requested registry access is not allowed". You need to resolve this problem.
What should you do?
A. Configure Inetinfo.exe to run as the local administrator user account.
B. Create an installer for Time ESService, and create the new event log in the installer code.
C. Modify the Web.config file by adding an identity element to impersonate the LOGON user
specified by Internet Information Services (IIS).
D. Modify the permissions of the
KEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlog registry key to give
full control to the IUSR_computername user account.

Answer:

B. Create an installer for Time ESService, and create the new event log in the installer code.

Download MCSD.NET - 70-320 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose Company Ltd. receives product information from manufactures in the form of an XML documents.
The product information is stored in a Microsoft SQL Server database. The format of each XML
document varies. Each one is located in a MemoryStream object named newProds. You create a
merge procedure that reads data and schema information in a Dataset object and merges the
information into your database. You now need to write code to transfer the XML document and its
schema into a Dataset object.
Which code segment should you use?
A. Dataset products = new Dataset("prodInfo");
XmlTextReader reader = new XmlTextReader(newProds);
XmlValidatingReader validReader = new
XmlValidatingReader(reader);
while (validReader.Read()) { products.WriteXml(validReader.Value);}
B. Dataset products = new Dataset("prodInfo");
products.ReadXml(newProds);
C. Dataset products = new Dataset("prodInfo");
XmlDataDocument document = new XmlDataDocument(products);
D. document.DataSet.ReadXmlSchema(newProds);
Dataset products = new Dataset("prodInfo");
string myXmlData = Encoding.UTF8.GetString(newProds.ToArrary());
SqlDataAdapter adapter = new SqlDataAdapter("LoadSchemaType=XML",myXmlData);
adapter.
Fill(products)
Suppose You have a .NET Remoting object named ES ProductLoader. The ES ProductLoader class is a
server-activated Singleton object.
The ES ProductLoader class loads product data into a Microsoft SQL Server database. The Load
method of the ES ProductLoader class is a time-consuming method to call. You are developing a
client application that uses the ES ProductLoader class. You want to ensure that the client
application can continue to respond to user input while the Load method of the ES ProductLoader
class is called.
What should you do?
A. Use an AsyncDelegate instance to call the Load method.
B. Modify the ES ProductLoader class to be derived from IAsyncResult.
C. Configure the ES ProductLoader class to be a client-activated .NET Remoting object.
D. Configure the client application to have its own remoting channel that matches the servers
channel and formatter.