asp.net 2.0 a solution to the two minor errors encountered after the project was released

Source: Internet
Author: User

Usage Environment:
. NET Framework 2.0 + Microsoft Windows Server 2003 SP1 + IIS6.0

Use process:

Publish the Web site to a folder (name website), set a virtual directory (name website) in IIS6.0, and then point its local path property to the published folder.

Compiling and running in the ASP.net 2.0 project was successful, but after setting this up, the following two errors were found in the access site. Look up the information on the Internet and get the solution. They are collected and sorted out.

the wrong one met:

Configuration error
Description: An error occurred while processing the configuration file required to provide services to the request. Please check the specific error details below and modify the configuration file appropriately. Parser error message: Using the section registered as allowdefinition= ' machinetoapplication outside the application level is incorrect. This error can be caused if the virtual directory is not configured as an application in IIS.


WORKAROUND: [1]
You will need to set up that virtual directory as an application in IIS6.0.
The steps are as follows:
(1) Open IIS 6.0
(2) Select "Default Web Site".
(3) Select the virtual directory and open its property page with the right key
(4) Select the "Virtual Directory" tab
(5) In the tab, next to the Application settings property, click Create for the first item, Application Name property
The value is changed from gray to white, and its property values are automatically filled in.
The above steps will set the virtual directory as an application.


The mistake met two:

Compile error
Description: An error occurred during the compilation of resources required to provide services to the request. Please check the following specific error details and modify the source code appropriately.

Compiler Error Message: CS0016: Failed to write output file ' c:/windows/microsoft.net/framework/v2.0.50727/temporary asp.net files/website/ 2204cb73/26c77319/app_globalresources.mcbv6w-k.dll "--" Deny access. "

Source Error:

[No related source lines]

source files: line: 0


To display detailed compiler output:
....... (omitted)

Microsoft (R) Visual C # 2005 Compiler version 8.00.50727.42
For the Microsoft (r) Windows (r) version of the 2.0.50727 Framework
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

Error CS0016: Failed to write to output file ' c:/windows/microsoft.net/framework/v2.0.50727/temporary asp.net files/website/2204cb73/ 26c77319/app_globalresources.mcbv6w-k.dll "--" Deny access. ”
--------------------------------------------------------------------------------
Version information: Microsoft. NET Framework Version: 2.0.50727.42; asp.net version: 2.0.50727.42

Workaround: [2]
Set permissions on the system disk's Windows/temp directory.
Solution steps:
(1) Open the system disk under the Windows/temp directory.
(2) Right-click the directory and select Properties.
(3) Select "Security" tab to Network Service (if Win2000 is ASP.net user) to check some of the privileges. The specific:
1. Read and run 2. List Folder Directory 3. Read. (If you still report the error, you can assign several additional permissions.) : ) )

Resources:
[1] Http://nt.discuz.net/showtopic.aspx?topicid=2735&page=end
[2] Http://www.cnblogs.com/lingyun_k/archive/2006/06/02/415494.html


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.