.net identity - 在帐户创建后提供403.14的应用程序 [英] .net identity - app giving 403.14 after account creation

查看:44
本文介绍了.net identity - 在帐户创建后提供403.14的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET 4.61

使用Visual Studio 2015,在使用Identity模型创建帐户后,重定向失败,我收到403.14错误:

== ==================================

最有可能的原因:

未为请求的URL配置默认文档,并且未在服务器上启用目录浏览。


========== ==========================



对于开发目的,Visual Studio正在使用IIS Express版本10.

applicationhost.config中的设置:



< defaultDocument enabled =true> ; 
< files>
< remove value =Default.htm/>
< remove value =Default.asp/>
< remove value =index.htm/>
< remove value =index.html/>
< remove value =iisstart.htm/>
< remove value =default.aspx/>
< add value =Index.aspx/>
< / files>
< / defaultDocument>

< directoryBrowse enabled =true/>



================ ======================更多...



现在,当我发布到我的网站时服务器IIS 7,一切正常。我可以创建一个帐户,一旦结束,我就会被重定向到我的主页。 (注意:在我的开发环境和实时网站中,帐户创建过程成功。只有重定向失败,仅在开发环境中)



有没有人有任何想法?



提前致谢,

MzPippz



我是什么尝试过:



更改IIS Express中的设置(applicationhost.config)

解决方案

从Visual Studio 2015开始,IIS Express配置文件重新定位到此处:



C:\< path\to\solution> \ .vs \\ \\config\applicationhost.config

ASP.NET 4.61
Using Visual Studio 2015, after I create an account using the Identity model, the redirect fails and I get a 403.14 error:
====================================
Most likely causes:
A default document is not configured for the requested URL, and directory browsing is not enabled on the server.

====================================

For dev purposes, Visual Studio is using IIS Express version 10.
Settings in applicationhost.config:

<defaultDocument enabled="true">
   <files>
      <remove value="Default.htm" />
      <remove value="Default.asp" />
      <remove value="index.htm" />
      <remove value="index.html" />
      <remove value="iisstart.htm" />
      <remove value="default.aspx" />
      <add value="Index.aspx" />
   </files>
</defaultDocument>

<directoryBrowse enabled="true" />


====================================== more...

Now, when I publish to my web server IIS 7, everything works fine. I can create an account, and, upon conclusion, I get redirected to my home page. (Note: In my dev environment AND live site, the account create process succeeds. Only the redirect fails and only in the dev environment)

Does anyone have any ideas?

Thanks in advance,
MzPippz

What I have tried:

Changing the settings in IIS Express (applicationhost.config)

解决方案

As of Visual Studio 2015, IIS Express config files relocated to here:

C:\<path\to\solution>\.vs\config\applicationhost.config


这篇关于.net identity - 在帐户创建后提供403.14的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆