1

在 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;
4

1 回答 1

0

我在池 iis 中设置 ApplicationPoolIdentity 并且它没有错误地工作

于 2012-07-06T10:31:10.183 回答