error in a converted code from 1.1 to 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swathi amireddy
    New Member
    • Oct 2008
    • 7

    error in a converted code from 1.1 to 2.0

    Hi,

    I am doing a migrating from 1.1 to 2.0 , got an error while bulding the project


    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:\Documents and Settings\sa6945 4\Desktop\Diagn osticCenter_del \testwebservice \Web.config

    Pls suggest me a solution for this

    thanks & regards

    Swathi
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    This error can be caused by a virtual directory not being configured as an application in IIS. If you believe that IIS is set up correctly, try clicking on the configuration button and then try again.

    Comment

    • MrMancunian
      Recognized Expert Contributor
      • Jul 2008
      • 569

      #3


      If you did configure your directory to be an application, you might have forgotten to set the right asp.net version. Right-click your folder (which is set as application) in IIS and go to properties -> ASP.net. ASP.net version should be set to 2.x (see screenshot)

      Steven

      Comment

      Working...