11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

amrameshreddy.blog.com446 APPENDIX C ■ WCF AND .NET FRAMEWORK INSTALLATION STEPSramrameshreddy.blog.comFigure C-1. ASP.NET Website Configuration dialog boxASP.NET REGISTRATION ISSUESGenerally, it’s a little bit easier to configure a development environment if you have IIS installed prior toinstalling Visual Studio or the SDK. If you’ve already installed Visual Studio or the .NET 2.0 SDK on your developmentenvironment or machine before installing IIS, you’ll be missing the ASP.NET application configurationmappings that are managed within the IIS administration console.Fortunately, a utility that comes with the .NET runtime can fix the problem. This utility is installed withthe .NET runtime, and a specific version matches the particular version for each runtime. Specifically, there’sone for 1.0, 1.1, and 2.0; for our needs, make sure it’s the 2.0 version.You must be an administrator on the machine where you run this utility. Open a command prompt byselecting Start ➤ Run, and enter cmd in the text box. Then click OK. Change to the .NET 2.0 Runtime directoryusing the following command:cd %windir%\Microsoft.NET\Framework\v2.0.50727The last directory name (v.2.0.50727) could change to reflect the latest .NET 2.0 version build number.At this point, if you don’t get any errors, you should be in the runtime directory. In that directory is a utilitynamed aspnet_regiis.exe. All the command-line options for the utility are available by just runningthe utility. But for our needs, we’ll show how to install using the –i switch. So, at the command prompt, enterthe following command:ramrameshreddyramrameshreddyaspnet_regiis.exe –i You’ll see a bunch of messages indicating the installation. If you get any errors, you’ll need to consultthe documentation. It is important to note that this will upgrade the root website and all the virtual directories.If you are running this command on a web server with virtual directories, you will need to ensure thatyou are not going to break any existing applications by upgrading them to the 2.0 framework.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!