解决一个比较奇怪的NET问题的方法

比较|解决|问题

最近遇到一个比较棘手的问题,在编译完一个。NET项目后,遇到如下出错信息
After you compile your Web application, you may 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 be 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 be copied to the run directory. The process cannot

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

微软对此的解释为如下,
CAUSE
Typically, this problem occurs because of a trailing backslash at the end of the path that

is set for the root Web site. For example:

C:\Inetpub\wwwroot\
This causes the mechanism that 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 any virtual directories with trailing backslashes have

child directories that are marked as Web applications.

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

problem described in this article and should be applied only to systems experiencing this

specific problem. This fix may receive additional testing at a later time, to further

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

Microsoft recommends that you wait for the next Microsoft .NET Framework service pack that

contains this fix.

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

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

information about support costs, please 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 may be

canceled, if a Microsoft Support Professional determines that a specific update will

resolve your problem. Normal support costs will apply to additional support questions and

issues that do not qualify for the specific update in question.

The English 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.

我在看到此文前对此的解决方法是,CTRL+ALT+DEL,将进程中的ASPNET_WP.EXE去掉,
再运行,一切OK,哈哈,微软的东西真怪呀

时间: 2024-08-04 03:56:24

解决一个比较奇怪的NET问题的方法的相关文章

java-新手问一个很奇怪的问题

问题描述 新手问一个很奇怪的问题 class Demo { int num = 1; int add = 2; Demo() { num = 5; add = 6; } void show() { System.out.println("Fu num="+num+" Fu add="+add); } } class DemoA extends Demo { DemoA() { this.num = 3; this.add = 4; } void show() { S

android-在一个连接选择器中似乎不能解决一个语法错误

问题描述 在一个连接选择器中似乎不能解决一个语法错误 大家好,我在一行代码中得到了一个语法错误,而且我找不到错误在哪.我学android的时间不长但是我很确定我是完全按照例子来的但是仍然不能避免这个错误.代码是写一个连接选择器,所以我可以用一段代码来写一个edittext然后用一个流媒体协议发送一个图片给哪个数字.我已经在我得到错误的地方做了标记,但是因为这个错误没有解决,我仍然不能得到我想要的效果. break;case R.id.contact: Intent k = new Intent(

解决一个.NET联接SQL的问题 yiyang(转贴)

解决一个.NET联接SQL的问题    yiyang(转贴)    关键字     .NET   出处     http://Ouynagouyang    Imports System.DataImports System.Data.SqlClientImports System.Data.SqlClient.SqlExceptionPublic Class connect    Private s As String    Private s1 As String    Public Con

c语言 单片机-keil4开发中遇到的一个很奇怪的问题。

问题描述 keil4开发中遇到的一个很奇怪的问题. void main(){ // uchar test_i; const uchar timp_button=0xfF; //this value is that the button havn't sticked uchar n_delay; //delay unsigned char j=0; unsigned char i; intend_initiation(); //调用时间设定程序 while(1){ if((hour==alarm_

vc++-谁能帮我解决一个简单程序

问题描述 谁能帮我解决一个简单程序 1.多个类的继承关系画出结构图(五个以上类) 2.定义五个以上类 ,每个类写出类的定义(2个文件) 3.使用静态数据成员和静态成员函数 4.要求有基类和派生类的构造函数 和至少一个析构函数)5运算符重载 成员函数或友元函数 6.实现多重继承和虚基类 7.使用抽象类,实现多态性 8.主函数 解决方案 这个比较简单吧,你去找本C++的书籍都会有例子的,你着急吗, 我最近有点忙,不然可以给你写. 解决方案二: 作业要自己完成,这都是Java基本概念得理解,

java-大神进来帮看看,一个很奇怪的问题

问题描述 大神进来帮看看,一个很奇怪的问题 代码如下,偶尔会出现数据库未更新的问题,但是看日志里面提交sql的日志已经打印出来,sql语句单独拿出来执行也没问题,我是真搞不明白了,大神求助啊! 解决方案 有可能是因为表字段的关联关系或者表字段的大小限制,是否非空,数值范围的限制 解决方案二: catch后,把exception输出到日志中,不就知道报的什么错了么? 插入失败的可能原因太多了

sql server-SQL SERVER求解决一个归类的问题

问题描述 SQL SERVER求解决一个归类的问题 id 学生 课程 成绩 1 张三 语文 80 2 张三 数学 70 3 张三 政治 85 4 李四 语文 80 4 李四 数学 75 5 马五 数学 60 6 马五 英语 75 7 马五 政治 80 转换为 姓名 语文 数学 英语 政治 张三 80 70 0 85 李四 80 75 0 0 马五 0 60 75 80 解决方案 http://www.cnblogs.com/luowende2012/archive/2012/07/19/2599

结构体数组-C++中一个很奇怪的数组

问题描述 C++中一个很奇怪的数组 static const AP_Scheduler::Task scheduler_tasks[] PROGMEM = { { ins_update, 1, 1000 }, { one_hz_print, 50, 1000 }, { five_second_call, 250, 1800 }, }; 注:AP_Scheduler是一个类,Task是这个类的结构体成员,一下是Task的定义: struct Task { task_fn_t function; u

在单片机开发中,我遇到了一个很奇怪的关于外部中断的问题

问题描述 在单片机开发中,我遇到了一个很奇怪的关于外部中断的问题 void button_int0 () interrupt 0 { //当函数正确时,需改正delay(大数目)为delay_stop(大数目); uchar timp; uint i=0; /**** IE=0x80时,程序执行完了,但是没有办法退出中断, 当使用EA=0时,就可以退出中断了.很肯定的是,并没有重复进入中断. *****/ //IE=0x80; EX0=0; EA=0; light =1: timp=P1; ex