070-543 Free Dumps Study Materials
Question 10: You create a document-level solution for a Microsoft Office Word document by using a Visual
Studio Tools for the Microsoft Office System (VSTO) project. The solution project is named
HRSolution. The solution document is named HRSolution.doc. You deploy a copy of the solution
document to the C:\OfficeSolutions folder on client computers. You deploy the assembly to a shared
folder named OfficeSolutions. The shared folder is located on a server named LONDON. You need to
ensure that the solution document loads the assembly from the correct location. Which code
segment should you use?
A. Dim sd As ServerDocument sd = New ServerDocument ("C:\OfficeSolutions\HRSolution.doc") Dim
path As String = "\\LONDON\OfficeSolutions" sd.AppManifest.Dependency.AssemblyPath = path
sd.Save ()
B. Dim sd As ServerDocument sd = New ServerDocument ("C:\OfficeSolutions\HRSolution.doc") Dim
name As String = " LONDON.OfficeSolutions.HRSolution " sd.AppManifest.Identity.Name = name
sd.Save ()
C. Dim sd As ServerDocument sd = New ServerDocument ("C:\OfficeSolutions\HRSolution.doc ") Dim
path As String = "\\LONDON\OfficeSolutions" sd.AppManifest.DeployManifestPath = path sd.Save ()
D. Dim sd As ServerDocument sd = New ServerDocument ("C:\OfficeSolutions\HRSolution.doc") Dim
name As String = " LONDON.OfficeSolutions.HRSolution " sd.AppManifest.EntryPoints.Add (name)
sd.Save ()
Correct Answer: A