Upgrade to Vs 2008 does not work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Sheen

    Upgrade to Vs 2008 does not work

    Ok I copied a VS 2005 web site to another folder.

    Open my new VS 2008. Attempt to run.

    I get the following:

    Error 1 It is an error to use a section registered as
    allowDefinition ='MachineToAppl ication' beyond application level. This error
    can be caused by a virtual directory not being configured as an application
    in IIS. C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config
    21


    The error points to :

    <sessionState timeout="60">
    </sessionState>

    This is not a virtual directory. I have one but it is attached to IIS7.0
    and is used when I publish.

    Any ideas??

    Thanks
    Lloyd Sheen

  • Lloyd Sheen

    #2
    Re: Upgrade to Vs 2008 does not work


    "Lloyd Sheen" <a@b.cwrote in message
    news:uwC6G5OlIH A.748@TK2MSFTNG P04.phx.gbl...
    Ok I copied a VS 2005 web site to another folder.
    >
    Open my new VS 2008. Attempt to run.
    >
    I get the following:
    >
    Error 1 It is an error to use a section registered as
    allowDefinition ='MachineToAppl ication' beyond application level. This
    error can be caused by a virtual directory not being configured as an
    application in IIS. C:\Visual Studio Projects\Music Player Web
    Site\MusicSite\ Web.config 21
    >
    >
    The error points to :
    >
    <sessionState timeout="60">
    </sessionState>
    >
    This is not a virtual directory. I have one but it is attached to IIS7.0
    and is used when I publish.
    >
    Any ideas??
    >
    Thanks
    Lloyd Sheen
    When I delete the above I now get the following errors:

    Message 2 Could not find schema information for the element 'validation'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 62 4
    C:\...\MusicSit e\
    Message 3 Could not find schema information for the attribute
    'validateIntegr atedModeConfigu ration'. C:\Visual Studio Projects\Music
    Player Web Site\MusicSite\ Web.config 62 15 C:\...\MusicSit e\
    Message 4 Could not find schema information for the element 'modules'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 63 4
    C:\...\MusicSit e\
    Message 5 Could not find schema information for the element 'add'. C:\Visual
    Studio Projects\Music Player Web Site\MusicSite\ Web.config 64 5
    C:\...\MusicSit e\
    Message 6 Could not find schema information for the attribute 'name'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 64 9
    C:\...\MusicSit e\
    Message 7 Could not find schema information for the attribute
    'preCondition'. C:\Visual Studio Projects\Music Player Web
    Site\MusicSite\ Web.config 64 29 C:\...\MusicSit e\
    Message 8 Could not find schema information for the attribute 'type'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 64 59
    C:\...\MusicSit e\
    Message 9 Could not find schema information for the element 'handlers'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 66 4
    C:\...\MusicSit e\
    Message 10 Could not find schema information for the element 'remove'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 67 5
    C:\...\MusicSit e\
    Message 11 Could not find schema information for the attribute 'name'.
    C:\Visual Studio Projects\Music Player Web Site\MusicSite\ Web.config 67 12
    C:\...\MusicSit e\


    Things could not go much worse I think.

    LS

    Comment

    • George Ter-Saakov

      #3
      Re: Upgrade to Vs 2008 does not work

      You must configured fresh folder you created as an application in IIS
      management console..

      George.

      "Lloyd Sheen" <a@b.cwrote in message
      news:uwC6G5OlIH A.748@TK2MSFTNG P04.phx.gbl...
      Ok I copied a VS 2005 web site to another folder.
      >
      Open my new VS 2008. Attempt to run.
      >
      I get the following:
      >
      Error 1 It is an error to use a section registered as
      allowDefinition ='MachineToAppl ication' beyond application level. This
      error can be caused by a virtual directory not being configured as an
      application in IIS. C:\Visual Studio Projects\Music Player Web
      Site\MusicSite\ Web.config 21
      >
      >
      The error points to :
      >
      <sessionState timeout="60">
      </sessionState>
      >
      This is not a virtual directory. I have one but it is attached to IIS7.0
      and is used when I publish.
      >
      Any ideas??
      >
      Thanks
      Lloyd Sheen

      Comment

      • Lloyd Sheen

        #4
        Re: Upgrade to Vs 2008 does not work


        "George Ter-Saakov" <gt-nsp@cardone.com wrote in message
        news:uW4JV9OlIH A.1280@TK2MSFTN GP05.phx.gbl...
        You must configured fresh folder you created as an application in IIS
        management console..
        >
        George.
        >
        "Lloyd Sheen" <a@b.cwrote in message
        news:uwC6G5OlIH A.748@TK2MSFTNG P04.phx.gbl...
        >Ok I copied a VS 2005 web site to another folder.
        >>
        >Open my new VS 2008. Attempt to run.
        >>
        >I get the following:
        >>
        >Error 1 It is an error to use a section registered as
        >allowDefinitio n='MachineToApp lication' beyond application level. This
        >error can be caused by a virtual directory not being configured as an
        >application in IIS. C:\Visual Studio Projects\Music Player Web
        >Site\MusicSite \Web.config 21
        >>
        >>
        >The error points to :
        >>
        > <sessionState timeout="60">
        > </sessionState>
        >>
        >This is not a virtual directory. I have one but it is attached to IIS7.0
        >and is used when I publish.
        >>
        >Any ideas??
        >>
        >Thanks
        >Lloyd Sheen
        >
        >
        I created a new folder (file system). I copied the contents of my VS 2005
        web site (file system) to the new folder. At this point I cannot see what
        relationship this has to IIS. If I "Publish" the site then I would use the
        virtual folder which is configure as an application.

        Until I get a working version in VS 2008 I see no relationship between my
        (file system) web site and ISS.

        If so what do I get rid of or change or ....????

        Thanks
        Lloyd Sheen

        Comment

        • George Ter-Saakov

          #5
          Re: Upgrade to Vs 2008 does not work

          Are you saying that you using Filesystem type of project for your ASP.NET
          application?
          Cause the error points that you are using IIS. And with IIS virtual (or not
          virtual) folder must be configured as an application if you planning to have
          web.config there...

          George.


          "Lloyd Sheen" <a@b.cwrote in message
          news:%234CyjIPl IHA.1184@TK2MSF TNGP04.phx.gbl. ..
          >
          "George Ter-Saakov" <gt-nsp@cardone.com wrote in message
          news:uW4JV9OlIH A.1280@TK2MSFTN GP05.phx.gbl...
          >You must configured fresh folder you created as an application in IIS
          >management console..
          >>
          >George.
          >>
          >"Lloyd Sheen" <a@b.cwrote in message
          >news:uwC6G5OlI HA.748@TK2MSFTN GP04.phx.gbl...
          >>Ok I copied a VS 2005 web site to another folder.
          >>>
          >>Open my new VS 2008. Attempt to run.
          >>>
          >>I get the following:
          >>>
          >>Error 1 It is an error to use a section registered as
          >>allowDefiniti on='MachineToAp plication' beyond application level. This
          >>error can be caused by a virtual directory not being configured as an
          >>application in IIS. C:\Visual Studio Projects\Music Player Web
          >>Site\MusicSit e\Web.config 21
          >>>
          >>>
          >>The error points to :
          >>>
          >> <sessionState timeout="60">
          >> </sessionState>
          >>>
          >>This is not a virtual directory. I have one but it is attached to
          >>IIS7.0 and is used when I publish.
          >>>
          >>Any ideas??
          >>>
          >>Thanks
          >>Lloyd Sheen
          >>
          >>
          >
          I created a new folder (file system). I copied the contents of my VS 2005
          web site (file system) to the new folder. At this point I cannot see what
          relationship this has to IIS. If I "Publish" the site then I would use
          the virtual folder which is configure as an application.
          >
          Until I get a working version in VS 2008 I see no relationship between my
          (file system) web site and ISS.
          >
          If so what do I get rid of or change or ....????
          >
          Thanks
          Lloyd Sheen

          Comment

          • Lloyd Sheen

            #6
            Re: Upgrade to Vs 2008 does not work


            "George Ter-Saakov" <gt-nsp@cardone.com wrote in message
            news:uTKwysPlIH A.484@TK2MSFTNG P04.phx.gbl...
            Are you saying that you using Filesystem type of project for your ASP.NET
            application?
            Cause the error points that you are using IIS. And with IIS virtual (or
            not virtual) folder must be configured as an application if you planning
            to have web.config there...
            >
            George.
            >
            >
            "Lloyd Sheen" <a@b.cwrote in message
            news:%234CyjIPl IHA.1184@TK2MSF TNGP04.phx.gbl. ..
            >>
            >"George Ter-Saakov" <gt-nsp@cardone.com wrote in message
            >news:uW4JV9OlI HA.1280@TK2MSFT NGP05.phx.gbl.. .
            >>You must configured fresh folder you created as an application in IIS
            >>management console..
            >>>
            >>George.
            >>>
            >>"Lloyd Sheen" <a@b.cwrote in message
            >>news:uwC6G5Ol IHA.748@TK2MSFT NGP04.phx.gbl.. .
            >>>Ok I copied a VS 2005 web site to another folder.
            >>>>
            >>>Open my new VS 2008. Attempt to run.
            >>>>
            >>>I get the following:
            >>>>
            >>>Error 1 It is an error to use a section registered as
            >>>allowDefinit ion='MachineToA pplication' beyond application level. This
            >>>error can be caused by a virtual directory not being configured as an
            >>>applicatio n in IIS. C:\Visual Studio Projects\Music Player Web
            >>>Site\MusicSi te\Web.config 21
            >>>>
            >>>>
            >>>The error points to :
            >>>>
            >>> <sessionState timeout="60">
            >>> </sessionState>
            >>>>
            >>>This is not a virtual directory. I have one but it is attached to
            >>>IIS7.0 and is used when I publish.
            >>>>
            >>>Any ideas??
            >>>>
            >>>Thanks
            >>>Lloyd Sheen
            >>>
            >>>
            >>
            >I created a new folder (file system). I copied the contents of my VS
            >2005 web site (file system) to the new folder. At this point I cannot
            >see what relationship this has to IIS. If I "Publish" the site then I
            >would use the virtual folder which is configure as an application.
            >>
            >Until I get a working version in VS 2008 I see no relationship between my
            >(file system) web site and ISS.
            >>
            >If so what do I get rid of or change or ....????
            >>
            >Thanks
            >Lloyd Sheen
            >
            >
            Yes I am using filesystem not IIS. The project (2005) is filesystem but has
            a publish which sends it to IIS.

            LS

            Comment

            • Lloyd Sheen

              #7
              Re: Upgrade to Vs 2008 does not work


              "Lloyd Sheen" <a@b.cwrote in message
              news:%23N3w56Pl IHA.1680@TK2MSF TNGP06.phx.gbl. ..
              >
              "George Ter-Saakov" <gt-nsp@cardone.com wrote in message
              news:uTKwysPlIH A.484@TK2MSFTNG P04.phx.gbl...
              >Are you saying that you using Filesystem type of project for your ASP.NET
              >application?
              >Cause the error points that you are using IIS. And with IIS virtual (or
              >not virtual) folder must be configured as an application if you planning
              >to have web.config there...
              >>
              >George.
              >>
              >>
              >"Lloyd Sheen" <a@b.cwrote in message
              >news:%234CyjIP lIHA.1184@TK2MS FTNGP04.phx.gbl ...
              >>>
              >>"George Ter-Saakov" <gt-nsp@cardone.com wrote in message
              >>news:uW4JV9Ol IHA.1280@TK2MSF TNGP05.phx.gbl. ..
              >>>You must configured fresh folder you created as an application in IIS
              >>>management console..
              >>>>
              >>>George.
              >>>>
              >>>"Lloyd Sheen" <a@b.cwrote in message
              >>>news:uwC6G5O lIHA.748@TK2MSF TNGP04.phx.gbl. ..
              >>>>Ok I copied a VS 2005 web site to another folder.
              >>>>>
              >>>>Open my new VS 2008. Attempt to run.
              >>>>>
              >>>>I get the following:
              >>>>>
              >>>>Error 1 It is an error to use a section registered as
              >>>>allowDefini tion='MachineTo Application' beyond application level. This
              >>>>error can be caused by a virtual directory not being configured as an
              >>>>applicati on in IIS. C:\Visual Studio Projects\Music Player Web
              >>>>Site\MusicS ite\Web.config 21
              >>>>>
              >>>>>
              >>>>The error points to :
              >>>>>
              >>>> <sessionState timeout="60">
              >>>> </sessionState>
              >>>>>
              >>>>This is not a virtual directory. I have one but it is attached to
              >>>>IIS7.0 and is used when I publish.
              >>>>>
              >>>>Any ideas??
              >>>>>
              >>>>Thanks
              >>>>Lloyd Sheen
              >>>>
              >>>>
              >>>
              >>I created a new folder (file system). I copied the contents of my VS
              >>2005 web site (file system) to the new folder. At this point I cannot
              >>see what relationship this has to IIS. If I "Publish" the site then I
              >>would use the virtual folder which is configure as an application.
              >>>
              >>Until I get a working version in VS 2008 I see no relationship between
              >>my (file system) web site and ISS.
              >>>
              >>If so what do I get rid of or change or ....????
              >>>
              >>Thanks
              >>Lloyd Sheen
              >>
              >>
              >
              Yes I am using filesystem not IIS. The project (2005) is filesystem but
              has a publish which sends it to IIS.
              >
              LS
              Ok now it seems that somehow I managed to convince VS 2008 that my folder
              structure required that the top level folder was the solution. Now the
              original solution contained the web site and a project with the DAL. Simply
              creating a new folder with the web site folder and the DAL folder did not
              work and all the references were totally out of wack.

              What I had to do was delete all this so that VS 2008 told me it could not
              find it and then recopy the two folders under a general folder I have
              created for VS projects.

              I could then open the web site and add an existing project (DAL). This
              brings things back to "normal"

              LS

              Comment

              Working...