0

ASP.NET でコーディングされ、IIS および SQL Server 2008 で実行されるソフトウェアを使用しようとしています。

データベースなどを含めてすべてインストールしました。

スクリプト (IIS を実行しているローカル マシンにインストール) を使用してソフトウェアにログインすると、エラーが発生します。有効なログインを使用すると、次のエラーが表示されます

Redirect URI cannot contain newline characters.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Redirect URI cannot contain newline characters.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 


[ArgumentException: Redirect URI cannot contain newline characters.]
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) +11327996
   PirTickets.Account.Login.LoginButton_Click(Object sender, EventArgs e) +1158
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691

ただし、無効なログインを入力すると、無効であるというメッセージが表示されます。データベースから取得したテキストを他の場所に出力しているため、データベースへの接続は問題ありません。

Login.ASPXコードは次のとおりです。

 <%@ Page Title="Log In" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="PirTickets.Account.Login" EnableViewStateMac="false" ViewStateEncryptionMode="Never"  %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="Head">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <h2>
        Log In
    </h2>
    <p>

        Customers and Trade users log in
        <a href="../Custlogin.aspx">here</a>

    </p>


            <span class="failureNotification">
                <asp:Literal ID="FailureText" runat="server"></asp:Literal>
            </span>
            <div class="accountInfo">
                <fieldset class="login">
                    <legend>Account Information</legend>
                    <p>
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Username:</asp:Label>
                        <asp:TextBox ID="UserName" runat="server" CssClass="textEntry" EnableViewState="False"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
                             CssClass="failureNotification" ErrorMessage="User Name is required." ToolTip="User Name is required." 
                            >*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password" EnableViewState="False"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" 
                             CssClass="failureNotification" ErrorMessage="Password is required." ToolTip="Password is required." 
                            >*</asp:RequiredFieldValidator>
                    </p>
                    <p>

                        <asp:CheckBox ID="chkRememberMe" runat="server" Text="Remember Me" 
                            TextAlign="Left" />

                    </p>
                </fieldset>
                <p class="submitButton">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                         onclick="LoginButton_Click"/>
                </p>
            </div>


</asp:Content>

誰でもこれに頭を包むことができますか?他の情報が必要な場合は、お尋ねください。この質問を編集します。

乾杯

4

0 に答える 0