SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    NJ
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP.NET 2.0 files at ASP.NET 3.5 host

    I have files that I developed when I read Sitepoint's Build Your Own ASP.NET 2.0 Web Site book. The files worked on my former webhost that was running ASP.NET 2.0. Default.aspx would not display on my new webhost running ASP.NET 3.5.

    Is there something different radically different that would effect this particular file?

    Code:
    <&#37;@ Page Language="VB" MasterPageFile="~/Dorknozzle.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" title="Welcome to Dorknozzzle!" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    	<h1>Company News</h1>
    	<p>We'll add some news later.</p>
    	
    	<h1>Company Events</h1>
    	<p>We'll add some events later.</p>
    
    </asp:Content>

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Well, it should just work. What error message are you getting?

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    NJ
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think that I can't just upload my ASP.NET 2.0 web.config file.

    So, what I did was ask the webhost to install Frontpage Server Extensions. Start up Visual Web Developer 2005 and choose the option create a new empty ASP.NET website at my webhost. When I did this, an ASP.NET 3.5 web.config was automatically created. And then I uploaded the Default.aspx file to the webserver. Then it worked.

  4. #4
    SitePoint Guru Chroniclemaster1's Avatar
    Join Date
    Jun 2007
    Location
    San Diego, CA
    Posts
    784
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, that sounds right. Glad it's working. 3.5 should be backwards compatible, so it was probably a configuration problem but not one having to do 2.0 vs. 3.5. Once you started a new clean plain vanilla site and could add everything else in, you were golden.
    Whatever you can do or dream you can, begin it.
    Boldness has genius, power and magic in it. Begin it now.

    Chroniclemaster1, Founder of Earth Chronicle
    A Growing History of our Planet, by our Planet, for our Planet.

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2003
    Location
    NJ
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This ASP.NET stuff takes getting used to. I don't use it very much. Just trying to learn more about it, since I am more familiar with using PHP on a Linux server.

    The Sitepoint book is very good. I like that it takes you through a complete project.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •