A way to solve a rather strange net problem

Source: Internet
Author: User
Compare | solve | Problem recently encountered a more difficult problem, after compiling one. NET project, you experience the following error message
After your compile your WEB application, you'll receive the following error messages in

The Microsoft Visual Studio. NET Task List:

Could not copy temporary files to the output directory.
-and-
The file ' Bin\mywebapp.dll ' cannot is copied to the run directory. The process cannot

Access the file because it is being used by another process.
-and-
The file ' bin\mywebapp.pdb ' cannot is copied to the run directory. The process cannot

Access the file because it is being used by another process.


Microsoft's explanation for this is as follows,
Cause
Typically, this problem occurs because of a trailing backslash at the end of the path

is set for the root Web site. For example:

C:\Inetpub\wwwroot\
This causes the "mechanism" copies the DLLs from your Bin directory to the temporary

asp.net Files folder to fail. When this mechanism fails, the runtime loads the DLL

Directly from the Bin directory rather then from the temporary asp.net Files folder.

This problem may also occur if no virtual directories with trailing backslashes

Child directories that are marked as WEB applications.



Resolution
A supported fix is now available from Microsoft, but it are only intended to correct the

Problem described in this article and should is applied only to systems experiencing this

Specific problem. This fix could receive additional testing at a later time and to further

ensure product quality. Therefore, if you are not severely affected by this problem,

Microsoft recommends that to the next Microsoft. NET Framework Service Pack that

Contains this fix.

To resolve this problem immediately, contacts Microsoft Product Support Services to obtain

The fix. For a complete list of Microsoft Product Support Services phone numbers and

Information about support costs, "go to the" following address on the world Wide Web:


http://support.microsoft.com/directory/overview.asp

Note:in special cases, charges that are normally incurred for support calls

Canceled, if a Microsoft Support Professional determines that a specific update would

Resolve your problem. Normal support costs'll apply to additional support questions and

Issues that does not qualify to the specific update in question.

The 中文版 version of this fix should have the following file attributes or later:
Date time Version Size File name
--------------------------------------------------------------
26-mar-2002 04:35 1.0.3705.213 192,512 aspnet_isapi.dll
26-mar-2002 04:30 19,332 Aspnet_perf.ini
26-mar-2002 04:35 1.0.3705.213 24,576 aspnet_regiis.exe
26-mar-2002 04:35 1.0.3705.213 28,672 aspnet_wp.exe
20-mar-2002 12:31 8,709 Smartnav.js
20-mar-2002 12:31 7,003 Smartnavie5.js
26-mar-2002 13:34 1.0.3705.213 1,183,744 System_web.dll
Note:this fix requires Microsoft. NET Framework Service Pack 1.



Before I read this article, the solution to this is to ctrl+alt+del the aspnet_wp in the process. EXE removed,
Run again, everything OK, haha, Microsoft things really weird AH

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.