You need to ensure that source code files cannot be accessed by the application

You work as a Software Developer for company Inc. The company uses Visual Studio.NET 2008 as its
application development platform. You have recently finished development of an ASP.NET Web
application using the .NET Framework 3.5. You want to build the application and deploy it to a
remote server. You employ VPN to connect to the remote server’s network. You can access the
folder where you want to deploy the application. Front Page Server Extensions are not installed on
the remote server. You are required to make use of Microsoft Visual Studio 2008 to deploy the
application. You need to ensure that source code files cannot be accessed by the application. What
will you do?

You work as a Software Developer for company Inc. The company uses Visual Studio.NET 2008 as its
application development platform. You have recently finished development of an ASP.NET Web
application using the .NET Framework 3.5. You want to build the application and deploy it to a
remote server. You employ VPN to connect to the remote server’s network. You can access the
folder where you want to deploy the application. Front Page Server Extensions are not installed on
the remote server. You are required to make use of Microsoft Visual Studio 2008 to deploy the
application. You need to ensure that source code files cannot be accessed by the application. What
will you do?

A.
Use the Publish Web Site utility and choose the Remote Site option.

B.
Use the Copy Web Site tool and choose the Remote Site option.

C.
Use the Publish Web Site utility and choose the File System option.

D.
Use the Copy Web Site tool and choose the File System option.

Explanation:
You will use the Publish Web Site utility and choose the File System option. This allows you to
compile and deploy the application to a local directory, network drive, or file share. The Publish Web
Site utility pre-compiles the content of a Web site, including Web pages and code, and copies the
output to a directory or to a specified server. It performs the following tasks:
It pre-compiles source code, pages in the App_Code folder, and so on, into executable output.
It saves the executable output to a target folder.

A user can publish directly either as part of the pre-compilation process, or pre-compile locally, and
then copy the files. This utility compiles the Web site and strips the source code out of the files,
leaving only stub files for the pages and compiled assemblies. When the user requests pages,
ASP.NET executes the request from the pre-compiled assemblies. The utility is not available in Visual
Web Developer Express Edition.

Answer D and B are incorrect. You will not choose the Copy Web Site tool. This tool copies project
files, which include source code, to a target location. The Copy Web Site tool allows a user to copy
files between the current Web site and another site. It is like an FTP utility but varies in the following
ways:
It allows the user to connect to and copy files between any types of Web sites the user can create in
Visual Studio, including IIS, local, remote, and FTP Web sites. It has a synchronization feature, which
inspects the files on both sites and ensures that all the files are up-to-date. The user can use this tool
to move files from a local computer to a staging server. This tool is particularly handy in situations
where the user cannot open files from the remote site to edit them.

Answer A is incorrect. You will not use the Publish Web Site utility and choose the Remote Site
option. This option needs the server that has Front Page Server Extensions installed.



Leave a Reply 0

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