Previous Next

Thread: Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

Last post 05-15-2008 5:27 PM by therage3k. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 04-20-2008, 11:14 AM

    Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

    Hi!

    Because of the legacy applications I still run ASP.NET 1.1. I've created subdirectory that runs in ASP.Net 2.0. I've set up separate application pools and path to web.config to 1.1 and 2.0

    When I try to run my 2.0 site I get an error message:

    Unrecognized configuration section 'connectionStrings'

    When I look at the framework it shows that my subdirectory still runs in 1.1 framework, though I set it up in IIS and created application pool for it that has path to 2.0 config.

    Please help, I searched high and low and did all that this error message requirs, still no luck

    thanks

  • 04-21-2008, 12:26 AM In reply to

    • therage3k
    • Not Ranked
    • Joined on 06-10-2005, 12:31 AM
    • Castle Rock, CO
    • Posts 3

    Re: Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

    Double Checking...

    So the primary website in IIS is set up for .NET 1.1, then within that you want to have a virtual directory pointing to a site that will be .NET 2.0.

    You are correct, you need 2 application pools.  In the .NET 1.1 Site you need to make sure the properties of that site in IIS are using the .NET 1.1 application pool AND that the ASP.NET tab has .NET 1.1 selected.

    In the .NET 2.0 "subfolder" you must make sure that "Create Application" has been clicked in the properties, that the application is using the .NET 2.0 application pool AND that the ASP.NET tab has .NET 2.0 selected.

    I do something similiar - I have a .NET 2.0 website that also has a .NET 1.1 application running aas a virtual directorywithin the website.  Kind-of a pain, but depending on your website, converting to 2.0 can be a bigger pain!!

    Good Luck!

    TheRage3K
    www.therage3k.com
    www.zettaspace.com
  • 04-21-2008, 8:44 AM In reply to

    Re: Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

    Therage3!

    Thanks for reply. I checked it all again and ran aspnet_regiis -i on folder with asp 2.0 and got another error message.

     I did a quick Google run on new error message, changed Location path in web.config and here it goes. It works!

    Thanks for getting me to go back and run all the things again!

    Regards

     

  • 05-15-2008, 3:59 PM In reply to

    • saviDev
    • Not Ranked
    • Joined on 05-15-2008, 7:52 PM
    • Posts 1

    Re: Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

     therage3k,

    I am trying to setup .NET 2.0 website that needs to run .NET 1.1 application as virtual directory.

    I am running   .NET 1.1 in a new application pool and I did select ASP.NET version as 1.1.  Even then it is giving error in web.config file for connectionString. 

    Can you please explain how to setup this environment ?

    Thanks
     

  • 05-15-2008, 5:27 PM In reply to

    • therage3k
    • Not Ranked
    • Joined on 06-10-2005, 12:31 AM
    • Castle Rock, CO
    • Posts 3

    Re: Problems running ASP.Net 1.1 and subdirectory in ASP.NET 2.0

    Hello,

    IIS is VERY finicky about your configuration.  If you have 2 application pools defined (1 for 1.1 and one for 2.0) they must not ever mix.  For example, on my server I have a mix of .NET 2.0 and 1.1 sites (and some in virtual directories), but if I accidentally assign a .NET 2.0 site the 1.1 application pool - than ALL the 1.1 sites across all of IIS break.

    So you must be careful that in the properties of the 2.0 site, it is using the 2.0 application pool (and that no 1.1 sites are pointing to that pool across your IIS server), and in the virtual site properties that the 1.1 site is using the 1.1 application pool (and that no other 2.0 sites are pointing to that pool across your IIS server).

    If you have that configured, and you have stopped/started IIS, it should be working.  If not, maybe you can post some screen shots to a URL of your AppPools, Site and Virtual Directory Properties, etc... ?

     

    TheRage3K
    www.therage3k.com
    www.zettaspace.com
Page 1 of 1 (5 items)
Page view counter