English 中文(简体)
记录 主办全球合作框架服务的二者净值
原标题:Log4Net doesn t write when iis hosting WCF service

Log4Net doesn t write when iis hosting a WCF Service. it works great when i use the self hosting ( Visual Studio Development Server), but when i run it using the IIS it doesn t write anything.

i read about this prolem and the conclusion is that it must be a permission problem, but i don t know how to solve it.

how can i check that i have a permission to write a log file? where can i change the permission? change AppPool users? Can you give me some simple steps of how to check if i have a permission problem?

i m an administrator on my computer. i m trying to create the file in the project folder. The file is a rolling file appender.

谢谢。

最佳回答

当我从“c:Log.txt”移走航标的道路时,问题就得到解决。 硬盘中“c:log Carlo.txt”的夹。

问题回答

事实证明,我的国际渔业局以吉大港山区终端点主办了世界渔业委员会服务,将伐木到应用-Data公司是最容易的解决办法。

<file value="App_Datalog.txt"/>

你们需要确保自动交换机用户在申请库下运行,从而在目录上创造/阅读/改变特权,从而重新制作你的记录。 如我所知,如果出现违约情况,贵方用户可制作/修改档案。 因此,它像你一样回到正确的轨道上来。

Edit: 这里是一条条,帮助您确定,如果需要,贵方的配量是谁。

我陷入了类似的情况,即企业图书馆没有用伐木申请组填写文件。 NET应用软件。 这是EntLib 4.1,在试图修改《非洲森林公约》之后,最终的解决办法是指派评估组作为网络服务,并开始进行文字记录,而不是说这是你的解决办法,还是最好的解决办法,而是值得尝试。

根据我的经验,在IIS 7+中,你必须确保申请库获准在具体记录目录上写。 例如,“在座的影像描述”/





相关问题
Session Management with Windows Authentication

In an ASP.NET web app, using Integrated Windows Authentication, is the session tied to the windows identity? In other words, if I login (using IWA) to the app, and the app stores some "stuff" in my ...

Using Elmah with Cassini

Does anyone know if I can use Elmah with Visual Studio build-in web server(aka Cassini)? I get it working easily on IIS, but using same configuration, it doesn t work with Cassini. When I requested ...

Setting hostname in IIS, include www?

I want to set the hostname for a website I m adding in IIS 7, however do I include the www in the hostname or not? because I want both www.mysite.com and mysite.com both to point to mysite on the ...

inetpub versus any other folder

I ve run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetputwwwroot?

IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

热门标签