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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Error when trying to run my ASP.Net project

Error when trying to run my ASP.Net project

Scheduled Pinned Locked Moved ASP.NET
asp-netcsharpwindows-adminhelp
4 Posts 4 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.
  • P Offline
    P Offline
    PeteConc
    wrote on last edited by
    #1

    Hi. Recently I had to format my system hard-drive (C:) and reinstall windows and all applications, but left my project files safe in the other drive (D:). But now I am unable to run my project. I have set my project folder in IIS, but when I try to run it from .Net VisualStudio I get the following error message: "Error when trying to run project: unable to start debugging on the webserver. The project is not configured to be debugged." also when I try to open the aspx file from a web-browser I get the following message: " Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 44: by Microsoft that offers a single logon and core profile services for member sites. Line 45: --> Line 46: Line 47: Line 48:

    S P 2 Replies Last reply
    0
    • P PeteConc

      Hi. Recently I had to format my system hard-drive (C:) and reinstall windows and all applications, but left my project files safe in the other drive (D:). But now I am unable to run my project. I have set my project folder in IIS, but when I try to run it from .Net VisualStudio I get the following error message: "Error when trying to run project: unable to start debugging on the webserver. The project is not configured to be debugged." also when I try to open the aspx file from a web-browser I get the following message: " Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 44: by Microsoft that offers a single logon and core profile services for member sites. Line 45: --> Line 46: Line 47: Line 48:

      S Offline
      S Offline
      steven_wong
      wrote on last edited by
      #2

      u can copy yur projects back to the default directory (C:\Inetpub\wwwroot) ,then have a try.

      1 Reply Last reply
      0
      • P PeteConc

        Hi. Recently I had to format my system hard-drive (C:) and reinstall windows and all applications, but left my project files safe in the other drive (D:). But now I am unable to run my project. I have set my project folder in IIS, but when I try to run it from .Net VisualStudio I get the following error message: "Error when trying to run project: unable to start debugging on the webserver. The project is not configured to be debugged." also when I try to open the aspx file from a web-browser I get the following message: " Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 44: by Microsoft that offers a single logon and core profile services for member sites. Line 45: --> Line 46: Line 47: Line 48:

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

        Or go into the IIS administration console, right click on your site's virtual directory and choose properties. On the first page there will be a 'Create' button in the Application settings section. clicking this will configure your directory as an application.

        W 1 Reply Last reply
        0
        • P Paddy Boyd

          Or go into the IIS administration console, right click on your site's virtual directory and choose properties. On the first page there will be a 'Create' button in the Application settings section. clicking this will configure your directory as an application.

          W Offline
          W Offline
          wjfnet
          wrote on last edited by
          #4

          You Can rereg your iis using 'aspnet_regiis.exe -i' rebuild directory in the iis and then pont to it

          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