部署后登录失败 [英] Login Fails After Deployment

查看:88
本文介绍了部署后登录失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2005创建了一个网站。

我使用标准程序设置了标准登录页面。

没什么特别的,不寻常的,只是标准的任何登录半人半人的东西中描述的程序书。

一切都很好! !什么都没有出错!

然而,当我将网站部署到另一台计算机时,登录失败了!


我从上到下搜索了互联网试图找到一个答案。

有几个人似乎遇到了同样的问题,但没有解决方案适合我。

我不能强调我没有做更多的事情比最简单的书中最简单的方法。

成千上万的人每天必须做我想做的事情,那么为什么翻转的东西不会起作用呢?

必须有一些非常模糊的旗帜或设置在每个人都很明显的地方,但对我来说不是它不是吗?b $ b请有人帮忙!

如有要求,我很乐意发送任何代码的副本。我真的把我的头发拉到一个非常简单的东西上。

对不起,如果我继续下去,但我很绝望。


非常感谢期待,


Pete

I have used Visual Studio 2005 to create a website.
I set up standard login page using standard procedures.
Nothing fancy or out of the ordinary, just standard procedures described in any "Login stuff for halfwits" book.
Everything works perfectly fine! ! Nothing whatsoever goes wrong at all!
However, when I deploy the website to another computer, the login fails !

I have searched the internet from top to bottom trying to find an answer.
Several people seem to have had the same problem but no solutions work for me.
I cannot stress enough that I have not done anything more than the simplest methods found in the simplest books.
Thousands of people must do every day what I am trying to do, so why won''t the flipping thing work?
There must be some really obscure flag or setting somewhere that is obvious to everyone, but not to me it isn?t
Will someone please help!
If requested, I will gladly send copies of any code. I am really pulling my hair out over what must something extremely simple.
Sorry if I went on a bit, but I am getting desperate.

Many thanks in anticipation,

Pete

推荐答案

Pete,

我可以承受你的挫折感,但你需要在你的帖子中提供更多的特定信息才能得到很多帮助 - 除了描述标准

程序之外。

有许多不同的方法可以对用户进行身份验证,可以认为是标准。你的帖子甚至没有说你正在使用什么样的
身份验证。


也许如果你发布一些示例代码和更多信息,有人

可以回复一些有用的东西。

彼得


-

联合创始人,Eggheadcafe .com开发者门户网站:
http://www.eggheadcafe.com

UnBlog:
http://petesbloggerama.blogspot.com


" Pete"写道:
Pete,
I can undertand your frustration, but you are going to need to be much more
specific in your posts to get much help - beyond describing "standard
procedures".
There are a number of different ways to authenticate a user that can be
considered "standard". Your post doesn''t even say what kind of
authentication you are using.

Perhaps if you post some sample code and a bit more information, somebody
can respond with something useful.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Pete" wrote:

我使用Visual Studio 2005创建网站。

我使用标准程序设置标准登录页面。

没有什么花哨或与众不同的,只是在任何登录半人半人的东西中描述的标准程序。书。

一切都很好! !什么都没有出错!

然而,当我将网站部署到另一台计算机时,登录失败了!


我从上到下搜索了互联网试图找到一个答案。

有几个人似乎遇到了同样的问题,但没有解决方案适合我。

我不能强调我没有做更多的事情比最简单的书中最简单的方法。

成千上万的人每天必须做我想做的事情,那么为什么翻转的东西不会起作用呢?

必须有一些非常模糊的旗帜或设置在每个人都很明显的地方,但对我来说不是它isna ?? t

请有人帮忙!

如果需要,我很乐意发送任何代码的副本。我真的把我的头发拉到一个非常简单的东西上。

对不起,如果我继续下去,但我很绝望。


非常感谢期待,


Pete

I have used Visual Studio 2005 to create a website.
I set up standard login page using standard procedures.
Nothing fancy or out of the ordinary, just standard procedures described in any "Login stuff for halfwits" book.
Everything works perfectly fine! ! Nothing whatsoever goes wrong at all!
However, when I deploy the website to another computer, the login fails !

I have searched the internet from top to bottom trying to find an answer.
Several people seem to have had the same problem but no solutions work for me.
I cannot stress enough that I have not done anything more than the simplest methods found in the simplest books.
Thousands of people must do every day what I am trying to do, so why won''t the flipping thing work?
There must be some really obscure flag or setting somewhere that is obvious to everyone, but not to me it isna??t
Will someone please help!
If requested, I will gladly send copies of any code. I am really pulling my hair out over what must something extremely simple.
Sorry if I went on a bit, but I am getting desperate.

Many thanks in anticipation,

Pete


Hello Peter,

非常感谢您的回复,很高兴知道有人在尝试帮助。
来帮忙。我希望我能正确回复,因为我发现这个新闻阅读器很难直观。之前我没有包含任何代码的原因是

,我根本无法想到问题可能在哪里,因为

在开发机器和服务器是部署该站点的
。考虑一下,也许来自web.config的以下片段

可能很有用。


< membership>

< ;提供商>

<删除名称=" AspNetSqlMembershipProvider" />

< add name =" AspNetSqlMembershipProvider"

type = " System.Web.Security.SqlMembershipProvider,

System.Web,Version = 2.0.0.0,Culture = neutral,

PublicKeyToken = b03f5f7f11d50a3a"

connectionStringName =" LocalSqlServer"

enablePasswordRetrieval =" false"

enablePasswordReset =" true"

requiresQuestionAndAnswer =" true"

applicationName =" /"

requiresUniqueEmail =" false"

minRequiredPasswordLength =" 1"

minRequiredNonalphanumericCharacters =" 0"

passwordFormat =" Hashed"

maxInvalidPasswordAttempts =" 5"

passw ordAttemptWindow =" 10"

passwordStrengthRegularExpression ="" />

< / providers>

< / membership>

如果还有其他任何可能有用的话,我也很乐意发布




保持所有手指交叉,


Pete

Hello Peter,
Many thanks for your reply, it is nice to know there is someone trying
to help. I hope I am replying correctly as this newsreader I found is
far from intuitive. The reason I did not include any code before was
that I just could not think where the problem might be as exactly the
same code is used on both the development machine and the server were
the site is deployed. Thinking about it, perhaps the following snippet
from the web.config might be useful.

<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
If there is anything else that might help then I will gladly post that
as well.

Keeping all my fingers crossed,

Pete


1。是否部署了应用程序的服务器,

是否安装了.Net Framework 2.0?


2.应用程序是否配置为以.Net身份运行Framework 2.0 app?


将以下内容另存为version.aspx并在与应用程序相同的目录中运行它:


version.aspx:

--------------- -----

<%@ Page Language =" VB" %>

< html>

< head>

< / head>

<正文>

<%

Response.Write(" ASP.NET Version ="& System.Environment.Version.ToString())

%>

< / body>

< / html>

--------- ----------


请在此处回复返回的版本号。


3.是否创建了会员资格数据库在服务器上?


4.您收到的具体错误信息是什么?



Juan T. Llibre,asp.net MVP

asp.net faq: http://asp.net.do/faq/

foros de asp.net,en espa?ol: http://asp.net.do/foros/

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

<我************* @ hotmail。在消息新闻中写道:a5 ******************************** @ 4ax.com ...
1. Does the server where the application is deployed to,
have the .Net Framework 2.0 installed ?

2. Is the application configured to run as a .Net Framework 2.0 app ?

Save the following as "version.aspx" and run it in the same directory as the application :

version.aspx :
--------------------
<%@ Page Language="VB" %>
<html>
<head>
</head>
<body>
<%
Response.Write("ASP.NET Version = " & System.Environment.Version.ToString())
%>
</body>
</html>
-------------------

Please post back here the version number returned.

3. Was the Membership database created on the server ?

4. What is the specific error message you''re getting, if any ?


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espa?ol : http://asp.net.do/foros/
===================================
<Me*************@hotmail.comwrote in message news:a5********************************@4ax.com...

你好Peter,

非常感谢你的回复,很高兴知道有人在尝试/>
来帮忙。我希望我能正确回复,因为我发现这个新闻阅读器很难直观。之前我没有包含任何代码的原因是

,我根本无法想到问题可能在哪里,因为

在开发机器和服务器是部署该站点的
。考虑一下,也许来自web.config的以下片段

可能很有用。


< membership>

< ;提供商>

<删除名称=" AspNetSqlMembershipProvider" />

< add name =" AspNetSqlMembershipProvider"

type = " System.Web.Security.SqlMembershipProvider,

System.Web,Version = 2.0.0.0,Culture = neutral,

PublicKeyToken = b03f5f7f11d50a3a"

connectionStringName =" LocalSqlServer"

enablePasswordRetrieval =" false"

enablePasswordReset =" true"

requiresQuestionAndAnswer =" true"

applicationName =" /"

requiresUniqueEmail =" false"

minRequiredPasswordLength =" 1"

minRequiredNonalphanumericCharacters =" 0"

passwordFormat =" Hashed"

maxInvalidPasswordAttempts =" 5"

passwordAttemptWindow =" 10"

passwordStrengthRegularExpression ="" />

< / providers>

< /会员资格>


如果还有其他可能有帮助的话,我也很乐意发布




保持所有手指交叉,


Pete
Hello Peter,
Many thanks for your reply, it is nice to know there is someone trying
to help. I hope I am replying correctly as this newsreader I found is
far from intuitive. The reason I did not include any code before was
that I just could not think where the problem might be as exactly the
same code is used on both the development machine and the server were
the site is deployed. Thinking about it, perhaps the following snippet
from the web.config might be useful.

<membership>
<providers>
<remove name="AspNetSqlMembershipProvider"/>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
minRequiredPasswordLength="1"
minRequiredNonalphanumericCharacters="0"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""/>
</providers>
</membership>
If there is anything else that might help then I will gladly post that
as well.

Keeping all my fingers crossed,

Pete



这篇关于部署后登录失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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