您好我有使用Windows身份验证的网页。 它在
中运作良好并且没有在
工作在Firefox和Opera中,当我尝试进入我的页面模态窗口时,会出现询问Windows登录名和密码。当我输入它们时,我可以浏览我的页面。在Chrome和IE中,我不需要做任何事情。 对我来说很奇怪。
控制器:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using magazyn.Models;
using magazyn.Autorization;
using System.Text;
namespace magazyn.Controllers
{
public class HomeController : Controller
{
private EquipmentEntities db = new EquipmentEntities();
[AllowAnonymous]
public ActionResult Index()
{
return View();
}
public ActionResult About()
{
ViewBag.Message = "Your application description page.";
return View();
}
public ActionResult Error401()
{
return View();
}
}
}
正如你可以看到[AllowAnonymous]
属性那么为什么Firefox和Opera要求登录和密码才能进入页面?
@Update: 我检查IIS配置。启用了匿名身份验证。
答案 0 :(得分:0)
好的找到解决方案。 我需要按照以下步骤操作:
很简单,但现在我需要告诉所有使用FF的用户或告诉他们更改浏览器...奇怪的是他们并没有像其他浏览器一样实现Windows身份验证