为什么无法翻译某些或所有身份参考

时间:2012-07-05 05:58:21

标签: c# iis-7 expression

在visual studio 2010中,没有错误,一切正常,但是当我向IIS发布错误时

行:

Microsoft.Expression.Encoder.Preset pres = Microsoft.Expression.Encoder.Presets.VC1IISSmoothStreamingSD480pVBR;

错误:

Server Error in '/' Application.
some or all identity references could not be translated
  Description: An unhandled exception occurred during the execution of the current web request. Examine the stack trace for more information about this error and where it originated in the code.

  Exception Details: System.Security.Principal.IdentityNotMappedException: some or all identity references could not be translated.

更新 我从行中得到了同样的错误:

var job = new Job();

名称空间:

using System;
using System.Linq;
using System.Web.Mvc;
using Microsoft.Expression.Encoder;
using Microsoft.Expression.Encoder.Profiles;
using VideoSmooth.Domain.Abstract;
using VideoSmooth.Domain.Entities;
using VideoSmooth.Web.Models;

1 个答案:

答案 0 :(得分:0)

我在pool iis中设置了ApplicationPoolIdentity,它没有错误地工作