0

I have a problem with my ASP.NET login page that running trought IIS web server. the message problem "Invalid postback or callback argument" after clicking login that cannot be redirect for "admin main page". But if that login page running with Visual Studio, it working that redirect normaly How I can do for IIS configuration or my login code?

this is my login page code (default page) :

 KoneksiServer()
    Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
    Response.Cache.SetCacheability(HttpCacheability.NoCache)
    Response.Cache.SetNoStore()
    txt_user.Focus()
    If Not IsPostBack Then
        If Session("username") <> "" And Session("Login") <> "" Then
            Response.Redirect("~/page/Admin/index.aspx")
        End If
        If ((Not (Request.Cookies("UserName")) Is Nothing) _
                    AndAlso (Not (Request.Cookies("Password")) Is Nothing)) Then
            txt_user.Text = Request.Cookies("UserName").Value
            txt_password.Attributes("value") = Request.Cookies("Password").Value
        End If

    End If

and this is error page if trought IIS :

enter image description here Thank You,

too honest for this site
  • 12,050
  • 4
  • 30
  • 52
Bcktr
  • 208
  • 1
  • 8
  • 22
  • Can you tell us more about exactly what this "login page" is, and how it's supposed to work? Can you post any code? Can you copy/paste an exact error message? Do you see an error in the IIS logs? Please update your post with more details. – paulsm4 Mar 12 '16 at 07:03
  • @paulsm4 I have been update my post, thank you for your post – Bcktr Mar 12 '16 at 07:14
  • Don't post images of text! – too honest for this site Mar 12 '16 at 16:46
  • As a "last resort", you can disable event validation: `<%@ Page EnableEventValidation="false" %>`. But you should continue trying to find the "root cause" of the validation error and fix it, first. Look [here](http://stackoverflow.com/questions/228969/) and [here](http://stackoverflow.com/questions/7476329) for suggestions. – paulsm4 Mar 12 '16 at 19:17

0 Answers0