问题描述
我已经在Win Service解决方案中添加了一个新项目.这是一个简单的EventLogger类库,只有一个类.问题是,没有在项目bin/debug文件夹中创建DLL文件(未使用发行版).仅创建了一个.exe文件.在本地计算机上运行时,它可以正常工作,但是当我尝试在服务器上运行它时,出现以下错误消息:
WRN:程序集绑定日志记录已关闭.
若要启用程序集绑定失败日志记录,请将注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)设置为1.
注意:与程序集绑定失败日志记录相关的性能损失.
要关闭此功能,请删除注册表值[HKLM \ Software \ Microsoft \ Fusion!EnableLog].
为什么没有创建任何DLL文件?
谢谢,
Suunker
Hi,
I''ve added a new project to my Win Service solution. It''s a simple EventLogger class library that only has one class. The problem is, no DLL file has been created in the project bin/debug folder(not using release). Only an .exe file has been created. It works fine when running on my local machine, but when I try to run it on the server I get the following error message:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Why hasn''t any DLL file been created?
Thanks,
Suunker
推荐答案
这篇关于生成项目后未创建DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!