Access to the path ' paths ' is denied. I found a lot of information on the Internet, finally solved, the original is because the file in the parent folder does not have permission to modify, that is, the user users do not have permission to modify
The problem is as follows: With VS2003 installed under Windows 2003, an error occurred while running the Web application: Access to the path "D:temp1mytest.txt" was denied.
Description: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace information For more information about the error and the source of the error in your code.
Exception Details: system.unauthorizedaccessexception: Access to the path "D:temp1mytest.txt" is denied.
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Solution One
Add the Network Service account in the directory where read and write operations are required, because in IIS 6.0, the default application pool is marked with the network service, so the network is used in the process The Service account runs to run the W3wp.exe process, and when we run VS 2003 we need to read and write to a certain directory, look at the folder, find no network Service, add the account, and select the full CONTROL, Problem solving,
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Solution Two The problem can also be resolved by changing the net service to the local system in the default application pool---attribute---in IIS6.0.
###############################################################################
What is an application pool? This is a new concept for Microsoft: An application pool is a configuration that links one or more applications to one or more worker process collections. Because applications in application pools are separated from other applications by worker process boundaries, applications in one application pool are not affected by the problems that are caused by applications in other application pools.
Windows 2003 supports both modes of operation, which by default is the ISS 6.0 worker process isolation mode. Worker process isolation mode prevents one application or site from stopping and affects another application or site, greatly enhancing the reliability of IIS. So how do you set up two modes of operation?
Start IIS Manager, right-click the Web site, select Properties, and open the Properties dialog box (Figure 1). In IIS 6.0 worker process isolation mode, all application code runs in an isolated environment, how are they isolated? Windows 2003 has a new application pool, and worker process isolation mode allows customers to create multiple application pools, each of which can have different configurations. Performance and reliability are enhanced because these application pools receive their requests directly from the kernel rather than the WWW service. To isolate a Web application running on the same computer but belonging to a different Web site, you need to create a separate application pool for each site.
Create an application pool
In IIS Manager, open the local computer, right-click Application Pools, and select New application pool (you must be in worker process isolation mode to establish an application pool). Application Pool Name box, enter the new application pool name. If the ID that appears in the Application pool ID box (for example: AppPool #1) is not what you want, you can rename it. If you clicked use an existing application pool as a template, in the Application pool name box, right-click the application pool that you want to use as a template. Finally click [OK].
Assigning Application Pools
In IIS Manager, right-click the application for which you want to assign an application pool, and then click Properties. Click the Home Directory tab to confirm that the application name for the directory or virtual directory that you are assigning is already filled in. If the Application Name box is not already filled in, click Create, and then enter a name.
In the Application Pool list box, select the name of the application pool that you want to assign. Finally click [OK].
Access to the path "is denied. Solutions