Error when trying to run my ASP.Net project
-
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:
-
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:
u can copy yur projects back to the default directory (C:\Inetpub\wwwroot) ,then have a try.
-
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:
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.
-
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.