Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Setting up a framwork 2.0 virtual directory inside a framework 1.1 website

Setting up a framwork 2.0 virtual directory inside a framework 1.1 website

Scheduled Pinned Locked Moved ASP.NET
helptestingbeta-testing
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mihai Drebot
    wrote on last edited by
    #1

    Hello I have run into this trouble, trying to add an application built on framework 2.0, inside a website using framework 1.1. This is rather urgent, as it has to go live. The problem is that the app using framework 2.0 inherits the web.config from the root application, and that causes it to crush. The whole scenario is like this: we have a website application as root, written on 1.1 (it was converted, but can't go live until testing is done, and that will take a while), and an online buy application, that needs tuse the same url, newly written on 2.0. Thanks alot for any help at all, the situation is getting desperate Mihai Voicu Drebot

    P G 2 Replies Last reply
    0
    • M Mihai Drebot

      Hello I have run into this trouble, trying to add an application built on framework 2.0, inside a website using framework 1.1. This is rather urgent, as it has to go live. The problem is that the app using framework 2.0 inherits the web.config from the root application, and that causes it to crush. The whole scenario is like this: we have a website application as root, written on 1.1 (it was converted, but can't go live until testing is done, and that will take a while), and an online buy application, that needs tuse the same url, newly written on 2.0. Thanks alot for any help at all, the situation is getting desperate Mihai Voicu Drebot

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Can you add a second .net 2.0 web.config to the new directory. Will mean some duplication, but hey, it might work...

      M 1 Reply Last reply
      0
      • P Paddy Boyd

        Can you add a second .net 2.0 web.config to the new directory. Will mean some duplication, but hey, it might work...

        M Offline
        M Offline
        Mihai Drebot
        wrote on last edited by
        #3

        I can add anything i want, no worries about duplication, as this is just temporary, untill the testers finish their job and we can have the framework 2.0 versions of all applications on live. The only question is how can i make the new framework 2 app ignore the root framework 1 web.config, as it now tryes to read from it first, then override the values with it's own web.config. Each application already has it's own web.config. Thanks for any clue, i'm bein shouted at by the boss... :(

        P 1 Reply Last reply
        0
        • M Mihai Drebot

          I can add anything i want, no worries about duplication, as this is just temporary, untill the testers finish their job and we can have the framework 2.0 versions of all applications on live. The only question is how can i make the new framework 2 app ignore the root framework 1 web.config, as it now tryes to read from it first, then override the values with it's own web.config. Each application already has it's own web.config. Thanks for any clue, i'm bein shouted at by the boss... :(

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          Actually, thinking about it, surely if you have a totally separate virtual directory (not just a folder within a virtual directory), it should be running as its own application. Have you set the application start point correctly in IIS? In all honesty, I'm no great brain on this either, but it might be a place to start...

          M 1 Reply Last reply
          0
          • P Paddy Boyd

            Actually, thinking about it, surely if you have a totally separate virtual directory (not just a folder within a virtual directory), it should be running as its own application. Have you set the application start point correctly in IIS? In all honesty, I'm no great brain on this either, but it might be a place to start...

            M Offline
            M Offline
            Mihai Drebot
            wrote on last edited by
            #5

            The IIS is currently set up like this: i have the website application, set up as a separate website from the DefaultWebSite, and the application is created. In this website i have a virtual directory (using create new virtual dir), for my online buy application, also the IIS application is created. all this is done so the users can access the site using urls like www.mysite.com/default.aspx for the website, and www.mysite.com/buy/default.aspx for the online buy application. The problem is that using this setup, the buy application tryes to inherit the website application's web.config. This is not a problem, as long as they all work on the same framework, as i store very few things in the webconfig, so i don't have a problem with redundency. But when the applications run under different framework versions, the webconfigs are no longer compatible, so i need a way to tell the buy application to ignore the website's webconfig... Hope this make sense :)

            1 Reply Last reply
            0
            • M Mihai Drebot

              Hello I have run into this trouble, trying to add an application built on framework 2.0, inside a website using framework 1.1. This is rather urgent, as it has to go live. The problem is that the app using framework 2.0 inherits the web.config from the root application, and that causes it to crush. The whole scenario is like this: we have a website application as root, written on 1.1 (it was converted, but can't go live until testing is done, and that will take a while), and an online buy application, that needs tuse the same url, newly written on 2.0. Thanks alot for any help at all, the situation is getting desperate Mihai Voicu Drebot

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              If the application inherits the web.config, then it's not a separate application. It has to be a separate application, as you can't run 1.1 applications and 2.0 applications in the same application pool. :: Open the properties of the folder in IIS and click the Create button to create the application for the folder. :: If you don't already have a separate application pool in IIS for 2.0 applications, create one. Just make a duplicate of the application pool you use for 1.1 applications. It doesn't need any differnt settings, it just has to be separate. :: In the properties of the folder change the application pool and change the .NET framework version. After you have done this you should verify that the different applications (and other applications also) are working. I've seen one 1.1 application hang when some other application was changed from 1.1 to 2.0. Restarting IIS fixed that problem. --- b { font-weight: normal; }

              M 1 Reply Last reply
              0
              • G Guffa

                If the application inherits the web.config, then it's not a separate application. It has to be a separate application, as you can't run 1.1 applications and 2.0 applications in the same application pool. :: Open the properties of the folder in IIS and click the Create button to create the application for the folder. :: If you don't already have a separate application pool in IIS for 2.0 applications, create one. Just make a duplicate of the application pool you use for 1.1 applications. It doesn't need any differnt settings, it just has to be separate. :: In the properties of the folder change the application pool and change the .NET framework version. After you have done this you should verify that the different applications (and other applications also) are working. I've seen one 1.1 application hang when some other application was changed from 1.1 to 2.0. Restarting IIS fixed that problem. --- b { font-weight: normal; }

                M Offline
                M Offline
                Mihai Drebot
                wrote on last edited by
                #7

                Thanks alot this is what i thought, and i still beleave you are right :) The thing is i have no access to the live server (being a developer and all), so i told the guys dealing with the server setup to do this. They said they tryed and it didn't work, they still had the webconfig problem. But since there are now two of us saying the same thing, i guess it's their fault :) I'll let you know how it workes out, as those guys are now in their lunch break...

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups