[HELP] How to fix this error ???

Results 1 to 7 of 7
  1. #1
    Elite Member rezpounz is offline
    Member +Rank
    Jan 2012 Join Date
    MoskowLocation
    117Posts

    [HELP] How to fix this error ???

    how to fix this??

    error.png


  2. #2
    Elite Member rezpounz is offline
    Member +Rank
    Jan 2012 Join Date
    MoskowLocation
    117Posts

    Re: [HELP] How to fix this error ???

    help!!!

  3. #3
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [HELP] How to fix this error ???

    set APP in iis

    and check

    api_AccRegister.aspx
    Code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="api_AccRegister.aspx.cs" Inherits="api_AccRegister" %>

    api_AccRegister.aspx.cs
    Code:
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System.Data;
    using System.Text;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data.SqlClient;
    using System.Configuration;
    
    public partial class api_AccRegister : WOApiWebPage
    {
        protected override void Execute()
        {
            SqlCommand sqcmd = new SqlCommand();
            sqcmd.CommandType = CommandType.StoredProcedure;
            sqcmd.CommandText = "WZ_ACCOUNT_CREATE";
            sqcmd.Parameters.AddWithValue("@in_IP", LastIP);
            sqcmd.Parameters.AddWithValue("@in_EMail", web.Param("username")); // login name from updater
            sqcmd.Parameters.AddWithValue("@in_Password", web.Param("password"));
            sqcmd.Parameters.AddWithValue("@in_ReferralID", 0);
            sqcmd.Parameters.AddWithValue("@in_SerialKey", web.Param("serial"));
            sqcmd.Parameters.AddWithValue("@in_SerialEmail", web.Param("email"));   // email used in serial key purchase
    
            if (!CallWOApi(sqcmd))
                return;
    
            reader.Read();
            int CustomerID = getInt("CustomerID");
    
            Response.Write("WO_0");
            Response.Write(string.Format("{0}", CustomerID));
        }
    }
    - - - Updated - - -

    and add new user to SQL 2008

  4. #4
    Elite Member rezpounz is offline
    Member +Rank
    Jan 2012 Join Date
    MoskowLocation
    117Posts

    Re: [HELP] How to fix this error ???

    Quote Originally Posted by javaz97 View Post
    set APP in iis

    and check

    api_AccRegister.aspx
    Code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="api_AccRegister.aspx.cs" Inherits="api_AccRegister" %>

    api_AccRegister.aspx.cs
    Code:
    using System;
    using System.Collections.Generic;
    using System.Collections.Specialized;
    using System.Data;
    using System.Text;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Data.SqlClient;
    using System.Configuration;
    
    public partial class api_AccRegister : WOApiWebPage
    {
        protected override void Execute()
        {
            SqlCommand sqcmd = new SqlCommand();
            sqcmd.CommandType = CommandType.StoredProcedure;
            sqcmd.CommandText = "WZ_ACCOUNT_CREATE";
            sqcmd.Parameters.AddWithValue("@in_IP", LastIP);
            sqcmd.Parameters.AddWithValue("@in_EMail", web.Param("username")); // login name from updater
            sqcmd.Parameters.AddWithValue("@in_Password", web.Param("password"));
            sqcmd.Parameters.AddWithValue("@in_ReferralID", 0);
            sqcmd.Parameters.AddWithValue("@in_SerialKey", web.Param("serial"));
            sqcmd.Parameters.AddWithValue("@in_SerialEmail", web.Param("email"));   // email used in serial key purchase
    
            if (!CallWOApi(sqcmd))
                return;
    
            reader.Read();
            int CustomerID = getInt("CustomerID");
    
            Response.Write("WO_0");
            Response.Write(string.Format("{0}", CustomerID));
        }
    }
    - - - Updated - - -

    and add new user to SQL 2008

    how to set app in iss???

  5. #5
    Newbie yothin is offline
    MemberRank
    Jan 2014 Join Date
    ThailandLocation
    6Posts

    Re: [HELP] How to fix this error ???

    this set APP in iis
    Attached Thumbnails Attached Thumbnails udddntitled.png  

  6. #6
    Elite Member rezpounz is offline
    Member +Rank
    Jan 2012 Join Date
    MoskowLocation
    117Posts

    Re: [HELP] How to fix this error ???

    i have getting new error

    error3.pngerror4.png
    Last edited by rezpounz; 10-03-14 at 09:06 AM.

  7. #7
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [HELP] How to fix this error ???

    Compile WZBackend-ASP.NET C:\WarZ\src\scripts\WZBackend-ASP.NET with DEBUG* build
    and Publish Web Site it to your API folder
    default is c:\inetpub\wwwroot\api



Advertisement