This project is read-only.

Login Problem

Topics: Help
May 24, 2010 at 10:50 PM

I have installed V3 preview.  I was able to setup the databse and register users (I expreienced the same problem as described in Issue Tracker when registering a user:  But I cannot log in.  I briefly see "loading..." and two swirls displayed and then it goes to the genral error page for the site:  Oops!  Sorry an error has occured.... 

I suspect an issue with Ajax or JQuery.  The error function registered in jQuery.ajaxSetup() in forms.js is being called when I try to log in.  I verified this by placing an alert() just before the window.location statement = "/error";.

I verified that both Ajax 3.5 and 4.0 are installed using reflection: GetType("System.Web.UI.ScriptManager, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35, false); 

I don't have control over the server; I'm using a hosted site.  I suspect a setup or configuration issue, but I'm not even sure what to request of the host.

Has anyone encountered this or have a suggestion as to what is not configured correctly?


May 25, 2010 at 4:21 AM

You don't need System.Web.UI... we don't use the ASP.NET AJAX stuff. Just Jquery. The problem actually doesn't involve jQuery... it's something on the server side. Are you running in debug mode?

May 25, 2010 at 3:36 PM

Thanks for the fast reply.  I have tried both debug and release with the same results on the hosting server.  I did have other issues on the server.  It is a 64 bit system and did not support 32 bit applications.  They changed that and then I was able to get the application to load.  I wonder if the 64 bit issue could be the cause of the login problem as well.

I also had to find and add the log4net.dll to the bin folder to get the application to work. It was not part of the downlaod package for the application.  I was getting server error that it could not find/load this dll.  I found it after a quick Internet search.  Not sure if that would be contributing to the issue.

I'm currently trying to run in debug and non-debug locally using the built in web server (not IIS) to see if I get the same thing.  But I always run into a problem connecting to the database (cannot find the server or instance).  That is whether it is the hosting company's database or a database on a local server.  I can connect to both databases with SQL Management Studio but not with the web application.  I am looking into firewall and other issues to address this.  When the application is uploaded onto the hosting company's server I do not have any issues connecting to their database. So I am not too concerned with this problem (I know it’s not an problem with the application).  I have worked with ASP.NET 1.1/2.0 appliations and databases, but the MVC architecture and JQuery is new to me.

May 25, 2010 at 5:25 PM

Ok. I have some updated information.

 Even though it is redirecting to the error page after logging in, the user is being logged into the application. I was so worried about the error page that I wasn’t paying attention to the menu.

 I looked up the error function for the jQuery.ajaxSetup() call. I added the parameters to it and the status text parameter was ‘parseerror’. I found a posting about someone having this error with Internet Explorer but it worked fine with Firefox.

 I tried Firefox and everything seems to work, so it seems related to Internet Explorer.