English 中文(简体)
N Carlo doen t work on IIS
原标题:NLog doen t work on IIS

I added NLog to my project. Following the instructions I created NLog.config.

<?xml version="1.0" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

    <targets>
        <target name="file" xsi:type="File"
            layout="${longdate} ${logger} ${message}" 
            fileName="${basedir}/${shortdate}.log" />
    </targets>

    <rules>
        <logger name="*" minlevel="Debug" writeTo="file" />
    </rules>
</nlog>

而后只是作成。

var logger = LogManager.GetCurrentClassLogger();
logger.Info("xxxx");

有了开发商的网络服务器,它的工作是优秀的,但当我向国际船舶和公司公布数据时,没有建立标识。

最佳回答

N Carlo.config是否将“Copy to Output Directory”定为“Copyhas”?

问题回答

Edit网站允许进入国际独立调查局,在安全表格中给予国际独立调查协会团体充分特权。

在申请中,财团发现,你的申请库正在使用,并建立了一些特定的用户。

下面的图像按步骤描述了程序步骤:

Steps using IIS Images to assign a user.

其中一个问题是,国际船舶和公司没有获准在记录中填写。 如果你确信你有记录仪。 您的释放和原木档案中仍没有制作,因此无法充分利用国际空间法学会的申请库。

You can add "throwExceptions="true" to your nlog config to see what is the problem. Should be something like this:

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
      autoReload="true"
      throwExceptions="true"
      internalLogLevel="Off" internalLogFile="c:	emp
log-internal.log">

在你确信这一点后,你可以像以下那样获得申请人才。

www.un.org/Depts/DGACM/index_spanish.htm 首先找到你的申请库(如果你不知道的话):。

  • On IIS manager right click your web page name.
  • On Manage Website tab click Advanced Settings.
  • You will see Application pool name on top.

Give full access to your application pool :

  • On IIS manager right click your web page name.
  • Click Edit Permissions.
  • Select Security Tab on opened window.
  • Click Edit button
  • Select your application pool name. (If your application pool is not in the list then you have to add it)
  • And at down select full access and than select ok and leave.




相关问题
WebForms and ASP.NET MVC co-existence

I am trying to make a WebForms project and ASP.NET MVC per this question. One of the things I ve done to make that happen is that I added a namespaces node to the WebForms web.config: <pages ...

Post back complex object from client side

I m using ASP.NET MVC and Entity Framework. I m going to pass a complex entity to the client side and allow the user to modify it, and post it back to the controller. But I don t know how to do that ...

Create an incremental placeholder in NHaml

What I want to reach is a way to add a script and style placeholder in my master. They will include my initial site.css and jquery.js files. Each haml page or partial can then add their own required ...

asp.net mvc automapper parsing

let s say we have something like this public class Person { public string Name {get; set;} public Country Country {get; set;} } public class PersonViewModel { public Person Person {get; ...

structureMap mocks stub help

I have an BLL that does validation on user input then inserts a parent(PorEO) and then inserts children(PorBoxEO). So there are two calls to the same InsertJCDC. One like this=>InsertJCDC(fakePor)...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

热门标签