Creating A Simple ASP.NET Site For the Main Cloud Sites Account


Note: This article refers to the Cloud Sites Control Panel. You can access this interface from the Cloud Control Panel by clicking your username in the upper-right corner of the control panel and selecting Cloud Sites Control Panel.

Prerequisites

  • Administrative access to the website

Procedure

  1. Login to the Cloud Sites Control Panel.

    If you are new to The Rackspace Cloud, please refer to Adding a new website and add the website.

    Note: The domain must have .Net and Asp technology Feature enabled. If necessary, this can be verified and changed in the Features tab of the domain as shown below.

  2. Navigate to Hosting -> Cloud Sites -> This will list all the domains/websites owned by the account and click on the website to be updated
  3. Create the following two files:
    • First_asp_page.asp - This is a simple ASP page:
      <html>
       <head>
      
       <title>My First ASP Page</title>
       </head>
       <body bgcolor="white" text="black">
       <%
         'Dimension variables
         Dim strMessage 			
         strMessage = "Hello World"
         Response.Write (strMessage)
         Response.Write (" ")
         Response.Write ("The time on the server is: " & Time())
       %>
      
       </body>
       </html>
      
    • web.config as the configuration file. Fill in your username and password to allow impersonation. Refer to MSDN for more information.
       <?xml version="1.0" encoding="utf-8" ?>
      
       <configuration>
         <system.web>
          <identity impersonate="true" userName="dfw\YOURNAME" password="YOURPASSWORD" />
         </system.web>
       </configuration>
      
  4. Verify that logging is turned on if needed. Refer to Enable logging for a website
  5. Upload the two files created to the main directory of the website using FTP: Upload content to a website using FTP
  6. Navigate to the First_asp_page.asp using the Test URL if necessary. Refer to Use a staging URL. Ensure that it is served by Cloud Sites.

Additional Resources

A complete List of Articles is available to address user questions.



Was this content helpful?




© 2015 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER