编译ASP.Net应用程序无法替换DLL [英] Compiling ASP.Net app fails to replace DLL

查看:74
本文介绍了编译ASP.Net应用程序无法替换DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次构建时,我都必须从bin目录中删除DLL,否则调试器将运行旧的DLL文件。 (实际上,也发布在发布版本上)。我之前也问过这件事。想法

Every time I build, I have to delete the DLL from the bin directory or the debugger will run the old DLL file. (actually, happens on release versions too). I asked about this earlier, too. Thoughts

推荐答案

一想法,这可能是权限问题:


确保你有删除(读/写)目录的权限和

临时的互联网iis文件夹,其中包含这些参考文件。


-

问候,

Alvin Bruney [ASP.NET MVP]

得到花絮?在此处获取...
http://tinyurl.com/3he3b

< bi ** @ sempf.net.nospam>在消息中写道

新闻:9F ********************************** @ microsof t.com ...
one thought, this may be a permissions issue:

make sure you have delete (read/write) permissions on the directory AND to
the temporary internet iis folders which hold these references.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
<bi**@sempf.net.nospam> wrote in message
news:9F**********************************@microsof t.com...
每次构建时,我都必须从bin目录中删除DLL,否则
调试器将运行旧的DLL文件。 (实际上,发布版本发生了

)。我之前也问过这件事。想法?
Every time I build, I have to delete the DLL from the bin directory or the debugger will run the old DLL file. (actually, happens on release versions
too). I asked about this earlier, too. Thoughts?



您好,

感谢您在社区中发帖!

从您的描述中,你发现在VS.NET中构建Web应用程序时,不能用新的应用程序替换某个web

应用程序的程序集。你需要手动删除bin

目录文件夹中的dll文件,是吗?

如果有什么我误解了,请随时告诉我。


根据我的经验,我同意Alvin的观点,这个问题很可能是一个许可问题,请你试试并确认

以下项目:

1.您是否尝试创建一个简单的winform应用程序,以查看是否存在

问题,以便我们确认问题是否涉及到

IIS是不是?


2.尝试创建一个新的Web应用程序,首先使用一个简单的页面进行创建

建立它以查看问题是否仍然存在?如果没有,那么尝试添加一些

类似的代码或引用前一个应用程序中遇到这个问题的b $ b,然后构建它以查看问题是否仍然存在。 />

3.在构建应用程序时是否还有其他任何东西可以引用dll

以便它不能被淹没?或者网上有什么特别的

应用程序的代码或它提到的某些外部组件?


请查看前面的项目。如果您有任何疑问或者您有什么新的发现,请随时在此发布。


问候,


Steven Cheng

微软在线支持


安全! www.microsoft.com/security

(此帖子按原样提供,不作任何保证,并且不授予

权利。)

Hi,
Thanks for posting in the community!
From your description, you found that the assembly of a certain web
application can''t be replaced with new one when build the web application
in VS.NET. And you need to manually remove the dll file in the bin
directory folder,yes?
If there is anything I misunderstood, please feel free to let me know.

Based on my experience, I agree with Alvin that this problem is likely to
be a permission issue, would you please have a try and confirm the
following items:
1. Have you tried creating a simple winform application to see whether the
problem exists so that we can confirm whether the problem is concerned to
IIS or not?

2. Try creating a new web application, first make it with a simple page and
build it to see whether the problem remains? If not, then try add some
similiar code or reference to what in the former application which suffer
this problem, then build it to see whether the problem remains.

3. Is there anyother things may refer the dll when building the applicaion
so that it can''t be overwrited? Or there anything particular in the web
application''s code or some certain external components it has refered?

Please check out the preceding items. If you have any questions or if you
got any new findings, please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


感谢您的回复,Alvin 。我在服务器上有管理权限,而且该角色似乎对相关文件夹拥有完全权限。


----- Alvin Bruney [MVP]写道:--- -


一想到,这可能是权限问题:


确保你对目录有删除(读/写)权限和

临时互联网iis文件夹,其中包含这些参考文件。


-

问候,

Alvin Bruney [ASP.NET MVP]

得到花絮?在此处获取...
http://tinyurl.com/3he3b

< bi ** @ sempf.net.nospam>在消息中写道

新闻:9F ********************************** @ microsof t.com ...
Thanks for replying, Alvin. I do have admin rights on the server, and that role seems to have full permissions on the folders in question.

----- Alvin Bruney [MVP] wrote: -----

one thought, this may be a permissions issue:

make sure you have delete (read/write) permissions on the directory AND to
the temporary internet iis folders which hold these references.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
<bi**@sempf.net.nospam> wrote in message
news:9F**********************************@microsof t.com...
每次构建时,我都必须从bin目录中删除DLL,否则
调试器将运行旧的DLL文件。 (实际上,发布版本发生了

)。我之前也问过这件事。想法?
Every time I build, I have to delete the DLL from the bin directory or the debugger will run the old DLL file. (actually, happens on release versions
too). I asked about this earlier, too. Thoughts?



这篇关于编译ASP.Net应用程序无法替换DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆