Note that there are some explanatory texts on larger screens.

plurals
  1. POASP.NET 1.0 MVC APPLICATION
    text
    copied!<p>using VS 2008 i created a clean asp.net MVC application project and changed nothing , on my computer all works fine.after i uploaded to the server i'm facing a problem.</p> <p>the LogOn.aspx page code is from the VS2008 mvc applocation template with no modification ,</p> <p> Log On </p> <p> <h2>Log On</h2> <p> Please enter your username and password. &lt;%= Html.ActionLink("Register", "Register") %> if you don't have an account. </p> &lt;%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %></p> <pre><code>&lt;% using (Html.BeginForm()) { %&gt; &lt;div&gt; &lt;fieldset&gt; &lt;legend&gt;Account Information&lt;/legend&gt; &lt;p&gt; &lt;label for="username"&gt;Username:&lt;/label&gt; &lt;%= Html.TextBox("username") %&gt; &lt;%= Html.ValidationMessage("username") %&gt; &lt;/p&gt; &lt;p&gt; &lt;label for="password"&gt;Password:&lt;/label&gt; &lt;%= Html.Password("password") %&gt; &lt;%= Html.ValidationMessage("password") %&gt; &lt;/p&gt; &lt;p&gt; &lt;%= Html.CheckBox("rememberMe") %&gt; &lt;label class="inline" for="rememberMe"&gt;Remember me?&lt;/label&gt; &lt;/p&gt; &lt;p&gt; &lt;input type="submit" value="Log On" /&gt; &lt;/p&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;% } %&gt; </code></pre> <p></p> <p>and its working on my local asp.net Dev server and also on a GoDaddy Server, but when i moved it to a new web server it not functioning correctly.</p> <p>when i submit the LogOn page , a simple page on my local machine all working fine and i and i get :</p> <pre><code>Request URL:http://91.202.171.55/$sitepreview/powergroup.co.il/Account/LogOn Request Method:GET Status Code:200 OK Request Headers Referer:http://91.202.171.55/$sitepreview/powergroup.co.il/Account/LogOn User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4 Response Headers Cache-Control:no-cache Content-Length:2149 Content-Type:text/html; charset=utf-8 Date:Thu, 24 Jun 2010 18:51:43 GMT Expires:Thu, 24 Jun 2010 18:51:44 GMT Server:Microsoft-IIS/7.0 X-AspNet-Version:2.0.50727 X-AspNetMvc-Version:1.0 X-Powered-By:ASP.NET </code></pre> <p>but when test the production server the page is not being submitted and the AccountController LogOn method is never invoked.</p> <pre><code>[AcceptVerbs(HttpVerbs.Post)] public ActionResult LogOn(string userName, string password, bool rememberMe, string returnUrl) { if (!ValidateLogOn(userName, password)) { return View(); } FormsAuth.SignIn(userName, rememberMe); if (!String.IsNullOrEmpty(returnUrl)) { return Redirect(returnUrl); } else { return RedirectToAction("Index", "Home"); } } </code></pre> <p>instead the AccountController LogOn GET method is invoked</p> <pre><code>public ActionResult LogOn() { return View(); } </code></pre> <p>Headers:</p> <pre><code>Request URL:http://91.202.171.55/$sitepreview/powergroup.co.il/Account/LogOn Request Method:GET Status Code:200 OK Request Headers Referer:http://91.202.171.55/$sitepreview/powergroup.co.il/Account/LogOn User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4 Response Headers Cache-Control:no-cache Content-Length:2149 Content-Type:text/html; charset=utf-8 Date:Thu, 24 Jun 2010 18:51:43 GMT Expires:Thu, 24 Jun 2010 18:51:44 GMT Server:Microsoft-IIS/7.0 X-AspNet-Version:2.0.50727 X-AspNetMvc-Version:1.0 X-Powered-By:ASP.NET </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload