| Braindumps
of 70-306
Developing
Win-based Applications with MS VB.NET
Exam Questions, Answers,
Braindumps (70-306)
I had enjoyed the paper
after getting help from the braindumps of www.braindumps.org.
You use Visual Studio
.NET to create a class library project. Another developer
named Lilliane uses ASP.NET to create an Internet
application for your company's Web site. Lilliane
deploys your class library to the \bin folder of her
ASP.NET application on your company's development
Web server. She has access to your source code through
a share on another network server. Lilliane reports
that her application can instantiate and use classes
from your class library. However, when she is debugging
her application, she cannot step into code within
your class library. You must ensure that developers
who use your class library can step through the code
for debugging purposes. Which three actions should
you take? (Each correct answer presents part of the
solution. Choose three)
A. Use the Build Configuration
Manager to set the Active Solution Configuration option
to Debug. Set the Project Configuration to Debug.
Build your class library.
B. Add the class library
project to the ASP .NET solution.
C. Copy the .dll file
from the Debug folder of the class library project
to the \bin folder of the ASP .NET application.
D. Copy the .pdb file
from the Debug folder of the class library project
to the \bin folder of the ASP .NET application.
E. Copy the TempPE folder
Debug folder of the class library project to the \bin
folder of the ASP.NET application.
F. Copy the source code
for the class library to the ASP.NET application folder
on the Web server.
G. Register the class
library on the Web server by using RegSvr32.exe.
My answer is A, C &
F.
A and C seem to be universally
accepted. The final point is the contentious one.
It is not D. You don't
need to copy the PDB files. The debugger creates these
as it needs. Just look in the /obj/debug folder of
any application you have ever debugged and they will
just be there even though you never created them.
It is not G. RegSvr32.exe
is just for registering COM components. I did a search
on the .NET SDK for "RegSvr32.exe" and got
2 hits - both about registering COM components. There
is no mention is the SDK/MSDN relating RegSvr32.exe
in any way to debugging.
It is F. You need the
source code. That is verified from two different sources
(see below), but I think it is obvious when you think
about it. When you are debugging you see the source
code - complete with comments and formatting. How
would the debugger be able to work that out from just
compiled DLL or EXE? The question specifies that the
source code is available.
My sources for believing
that the answer is A C & F are as follows:
Source 1:
ASP.NET for Developers, Michael Amundsen/Paul Litwin,
SAMS publishing,
Page 385 "Debugging Compiled Components".
You can also debug compiled components using the CLR
Debugger. To do this you need to compile your components
with the debug+ command-line option (BraindumpNote.
You can also set the build properties to Debug - which
is option A of the available answers). This instructs
the compiler to create the proper debug information
file and store it in the same location as your DLL.
This file is given the same name as your compiled
component, but has a file extension of PDB (Program
Debugging) instead of DLL. Following is a command
line coimpile command for a simple component that
includes the debug+ option:
vbc /target:library /debug+
sample.vb
Once the component is
properly compiled, you can load the source code into
the debugger and set breakpoints as you would any
ASPX page you are debugging. (BraindumpNote - so you
need the sourcecode - answer F)
Source 2:
MSDN: "Debugging Deployed ASP.NET Applications"
Sometimes, you may need
to debug a Web application that is already deployed
and running on a server. To debug a deployed and running
application from Visual Studio .NET, you must attach
to the ASP.NET worker process (aspnet_wp.exe) and
ensure that the debugger can find symbol information
for the application. In addition, you must locate
and open the source files for the application.
That is pretty clear
that you need the source code. Again it says that
answer F is correct.
I hope this helps. I
was just trying to clarify the answer for myself.
70-306
|