Transferring Web Applications from ASP.NET 2.0 to 3.5

Last post 12-13-2009 5:52 PM by Geckex. 6 replies.

Sort Posts:

  • Transferring Web Applications from ASP.NET 2.0 to 3.5

    05-29-2008, 5:16 PM
    • Member
      4 point Member
    • cyprich
    • Member since 01-24-2008, 1:21 AM
    • Richmond, BC
    • Posts 16

    I'm having problems getting 2 ASP.NET 2.0 web applications to work on Windows 2008 and ASP.NET 3.5. I've added them as Applications to an existing web site. They're accessed as www.website.com/OrderForm/. Both applications worked well on Windows XP Pro as virtual folders. When I run them on Windows 2008, I get

    HTTP Error 500.19 - Internal Server Error

    The requested page cannot be accessed because the related configuration data for the page is invalid.

    I've tried rebuilding the site with Visual Web Developer 2008. I create the virtual folder in VWD, create the Application that points to it in IIS, then copy all of the files from original app (except for web.config). What am I missing to get these apps working? I'm sure there is a setting in IIS that I need to turn on.

    Thanks.

     

     

    Johan Cyprich
    cyprich.com - Occasionally Relevant Insights from a Software Builder
  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    05-30-2008, 7:16 AM
    • All-Star
      77,676 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,562
    • Moderator
      TrustedFriends-MVPs

    There is no IIS change between ASP.NET 2.0 and 3.5, and 2.0 apps run without change in a 3.5 environment (3.5 is 2.0 with add-ons).  Post the full error.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    05-30-2008, 12:46 PM
    • Member
      4 point Member
    • cyprich
    • Member since 01-24-2008, 1:21 AM
    • Richmond, BC
    • Posts 16

    Ok, here it is:

     ----------------------------------------------------------------------------------------------------------------

    Detailed Error Information
    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x800700b7
    Config Error There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined
    Config File \\?\D:\Virtual Folders\Account Application\web.config
     
     
    Requested URL http://localhost:80/AccountApplication/Default.aspx
    Physical Path D:\Virtual Folders\Account Application\Default.aspx
    Logon Method Not yet determined
    Logon User Not yet determined

     

    Config Source
       15:         <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    16: <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
    17: <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

     ----------------------------------------------------------------------------------------------------------------

    The two web applications work perfectly in virtual folders running on IIS on Windows XP Pro. When I copy them to Win 2008 and set them up as Applications in IIS, they don't work. I also tried setting them up as Virtual Folders but that didn't work either.

    The problem is the web.config file. So I created an empty web application with Visual Web Developer 2008, set it up as an Application in IIS, then copied all of the files from the original web app except for its web.config. I also tried changing the Application Pool to Classic .NET App Pool. Nothing worked.

    Johan Cyprich
    cyprich.com - Occasionally Relevant Insights from a Software Builder
  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    05-30-2008, 3:41 PM
    Answer
    • All-Star
      77,676 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,562
    • Moderator
      TrustedFriends-MVPs

    Have you tried simply removing the second section?  Or do a Clear before it?

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    06-09-2008, 12:32 PM
    • Member
      4 point Member
    • cyprich
    • Member since 01-24-2008, 1:21 AM
    • Richmond, BC
    • Posts 16

    This worked. I tried removing the sections and also tried using Clear.

    Thanks.
     

    Johan Cyprich
    cyprich.com - Occasionally Relevant Insights from a Software Builder
  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    11-02-2009, 11:00 AM
    • Member
      2 point Member
    • zymotik
    • Member since 11-02-2009, 3:59 PM
    • Birmingham, UK
    • Posts 1

    In my case, the web.config file had slipped into a new directory so there were two copies....  doh!

    Ian

     

    -----------------------------------------

    Ian Brown Photography

  • Re: Transferring Web Applications from ASP.NET 2.0 to 3.5

    12-13-2009, 5:52 PM
    • Member
      73 point Member
    • Geckex
    • Member since 08-03-2005, 6:31 PM
    • UK
    • Posts 18

    Hey - I got this issue because I defined my website as a virtual directory - and at the same time had my root website (i.e. the Default Web Site in IIS) pointing to another site. So that in effect means you have two web.config - and so your web.config will inherit from the parent site.

    Using clear will solve this - but really you should place your site in a separate website in IIS.


Page 1 of 1 (7 items)