Unable to access aspx page through IIS

Im working with IIS 5 in Windows XP Professional


I created a new web project and set up VS 2008 to save this application to the location c: \ Inteput \ wwwroot. Thus, VS saved the project in the directory:

c:\Inteput\wwwroot\WebApplication1


Then I converted this WebApplication1 folder to a virtual directory (this virtual directory is also configured as a web application). But whenever I try to access:

c:\Inteput\wwwroot\WebApplication1\WebApplication1\default.aspx

via browser using URL:

http://localhost/WebApplication1/WebApplication1/default.aspx

I get an exception:

Configuration Error Description: An error occurred while processing the configuration file needed to service this request. Review the specific error information below and modify your configuration file accordingly.

Parser: , allowDefinition = 'MachineToApplication', . , IIS.


, ?

BTW -

Q2 - Visual Studio - IIS, -? , Id CTRL + F5, IIS, -?

+3
4

, - ASP.NET? (2.)

IIS; - - ; " - IIS" url localhost.

+1

, () , () " ". (IIS 5 ) .

/ , Web Publishing Web Copy.

, , WebApplication1 URL-. , web.config .

: Q2, IIS , Dir. VS.

+1

, web.config, ? ?

, , , , , , .

, , MachineToApplication web.config . , .

, , web.configs

c:\Inteput\wwwroot\WebApplication1\web.config

c:\Inteput\wwwroot\WebApplication1\WebApplication1\web.config

+1

1 - .

c:\Inteput\wwwroot\Testing

c:\Inteput\wwwroot\WebApplication1\WebApplication1

, web.config .

)

web.config .

web.config , ? ?



2 -

IIS; - - ; " - IIS" url localhost.

, :

Access is denied. Description: An error occurred while accessing the resources needed to service this request. You may not have permission to view the requested resources.

Error message 401.3: You do not have permission to view this directory or page using the credentials you provided (access is denied due to access control lists). Ask your web server administrator to give you access to "C: \ Documents and Settings \



thanks

0
source

Source: https://habr.com/ru/post/1705513/


All Articles