Why not logging is done after converting to click once app or exe?

拟墨画扇 提交于 2019-12-12 14:12:03

问题


I have created a console app in which logging is done correctly using log4net. But after publishing my app (Click once app or .exe) logging is not working, even though my application is working fine.

Is there any way to make log4net work in my final click-once app?


回答1:


Found it myself..

The only thing we need to do is change the build action of Log4net from "NONE" to "Content".Then publish your application and you can find the log being cretaed while the app is running.

Thanks everyone for your response..




回答2:


You need specific permissions (FileIOPermission) to access files outside of isolated storage. See http://msdn.microsoft.com/en-us/library/d8saf4wy.aspx



来源:https://stackoverflow.com/questions/16414289/why-not-logging-is-done-after-converting-to-click-once-app-or-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!