943,580 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 258672
  • ASP.NET RSS
You are currently viewing page 4 of this multi-page discussion thread; Jump to the first page
Apr 7th, 2005
0

Re: Updated : Simple ASP.Net Login Page

LOL but what cracks me up about this error tho is that when I try to login with just garbage as the username and password 3 times in a row until I get directed to denied.aspx then hit the back button and put in a correct username and pass it works and the Session("Logged_IN") variable is set to "Yes" on my default page. I am like you I am lost here. LOL

Miller
Reputation Points: 11
Solved Threads: 2
Newbie Poster
millers_35 is offline Offline
18 posts
since Apr 2005
Apr 7th, 2005
0

Re: Updated : Simple ASP.Net Login Page

I ran your code...and it works.

So something is messed up with either your settings in the browser or IIS?

Hehe..... sorry I dont have a more definite asnwer.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Apr 7th, 2005
0

Re: Updated : Simple ASP.Net Login Page

I have tried IE and Mozilla to run the application and from different computers. I started a completely new project with basic controls with the code and I still get the same thing. It redirects me back to login unless I type incorrect username and pass 3 times then try again it finally redirects me and then all the other forms work correctly and the session variable holds throughout. I'm going to give you my IIS setup and maybe u might see something I have wrong.

IIS 5.1 XP Pro

Virtual Directory tab
Read - checked
Log visits - checked
Index this resource - checked

Execute Permissions - Scripts only
Application Protection - Medium

Configuration button
- Option
- Enable session state - 20 min
- Enable buffering - checked
- Enable parent paths - checked
- Default ASP Language - VBScript
- ASP Script timeout - 90 seconds
- Debugging
- Enable ASP server-side script debugging
Directory Security tab
Anonymous access - checked
Allow IIS to control pass - checked

Basic authentication - checked
Integrated Windows authentication - checked


Miller
Reputation Points: 11
Solved Threads: 2
Newbie Poster
millers_35 is offline Offline
18 posts
since Apr 2005
Apr 8th, 2005
0

Re: Updated : Simple ASP.Net Login Page

I am sorry...but I am at a total loss.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Apr 15th, 2005
0

Re: Updated : Simple ASP.Net Login Page

For the login.aspx it works properly. It's great. How about odbc? I had tried to use DSN by using ODBC. This is the error "Operator is not defined for type 'DBNull' and type 'Integer'". My e-m: aromsayc@hotmail.com

Aromsay
Reputation Points: 10
Solved Threads: 0
Newbie Poster
aromsayc is offline Offline
1 posts
since Apr 2005
Apr 15th, 2005
0

Re: Updated : Simple ASP.Net Login Page

Quote originally posted by aromsayc ...
For the login.aspx it works properly. It's great. How about odbc? I had tried to use DSN by using ODBC. This is the error "Operator is not defined for type 'DBNull' and type 'Integer'". My e-m: aromsayc@hotmail.com

Aromsay

Did you use something like this for creating a DSN connection?

Dim conn As New OdbcConnection("DSN=TestDSN")


Oh, I should mention this now. I do not reply directly to emails, and rarely directly to private messages here (some exceptions). If it is something that I can answer here that will help everyone I would rather do that. So please do not request me to send you an email to answer your specific problem. Fact is, if you have an issue, others may as well.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 5th, 2005
0

Re: Updated : Simple ASP.Net Login Page

i have the same problem as millers_35 i do the authorization and if it returns true i redirect to the default.aspx and create the session (ok other way round first session then the redirect) as put in the tutorial so it can only redirect if i am logged in and it has to create a session otherwhyse it msu give an error. ok so i am on default then and the session is disapeared :-( ... i am geting realy frustrated about this. do you have any idea on what is going wrong ...btw i get the same problem on my real webserver hosted by easycgi so it cant be a settingsproblem of my iis
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blacknight is offline Offline
5 posts
since Apr 2005
May 5th, 2005
0

Re: Updated : Simple ASP.Net Login Page

Ok, I am sorry to say I do not follow what you are saying.

You get an error when you try to login ? How do you mean it has to create a session otherwise (correct spelling) it gives an error?

Here is what I would do:
1. I would Recreate a new project, new directory, and build it in stages. i.e. Paste in the HTML code, and compile the code. Paste in the VB.Net code, complie, etc... that way you will see any errors that come up in the code.
2. Provide the error message you are getting and I may be able to give more details.

As I told millers_35, I am really stumped. I have done this same application about 20 times on numerous machines to boot with no issues like this.

Sorry I couldn't provide more help.

On that note, have you tried doing a simple ASP.Net page, like retrieving data from the db? i.e. Create a simple datagrid populating with a simple select statement?


Quote originally posted by blacknight ...
i have the same problem as millers_35 i do the authorization and if it returns true i redirect to the default.aspx and create the session (ok other way round first session then the redirect) as put in the tutorial so it can only redirect if i am logged in and it has to create a session otherwhyse it msu give an error. ok so i am on default then and the session is disapeared :-( ... i am geting realy frustrated about this. do you have any idea on what is going wrong ...btw i get the same problem on my real webserver hosted by easycgi so it cant be a settingsproblem of my iis
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
May 5th, 2005
0

Re: Updated : Simple ASP.Net Login Page

Sup guys, I finished the project I was working on. I appreciate the help I got from Paladine. His tutorial helped be quite a bit on getting started. I ended up using cookies instead of session variables. I think the problem I was having with the session variables dropping was because of where the variables were getting stored. Paladine do the variables get stored in server memory or on the local machine memory? That being asked I think the problem lies within this from the web.config file
ASP.NET Syntax (Toggle Plain Text)
  1. <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
  2. cookieless="false" timeout="20" />

the sessionState mode will take on different settings "SQLServer, InProc, and StateServer. Could it be that he doesnt have his set to the correct value. Again I am still learning as well and do not have a definite answer and hoping someone could correct me on this if I am wrong.


Miller
Reputation Points: 11
Solved Threads: 2
Newbie Poster
millers_35 is offline Offline
18 posts
since Apr 2005
May 16th, 2005
0

Re: Updated : Simple ASP.Net Login Page

FYI

Registration Page completed : ASP.Net Registration Page

And miller_35, as far as I know (no resources at my work to verify), but session variables are on the User Side (i.e. When the application is closed, or you close your browser, the session is ended.)

Thanks for the compliments. Folks let me know if there is anything else anyone wants to have a tutorial on for ASP.Net.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in ASP.NET Forum Timeline: Parent and Child Classes
Next Thread in ASP.NET Forum Timeline: Creating waiting page in ASP.net





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC