.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Sgraph Infotech
Imran Ghani
Post New Web Links

invalid login attempt

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :Sql Server
 

I am using sql sk8 express edition where I have renamed sa user name for security purpose. But there are thousand of event viewer generate per mintue in the server. Its obvious that someone trying to find way in the server.

Login failed for user 'sa'. Reason: Could not find a login matching the name provided. [CLIENT: 65.xxx.xxx.202]

How can I block the specific IP to avoid generating million of event viewer in server ?


---- Tahir Khan --- -Exchange Solution Provider- -http://hostautomate.com


View Complete Post


More Related Resource Links

Linq2Sql error: "Invalid attempt to call Read when reader is closed."

  

I've read up on this error from other posts and on other sites, but haven't found a solid resolution to the issue yet. My setup is as follows:

I have a RepositoryBase class that fields certain db calls that all repositories need to perform. In one such call, "GetSecurityGroup", it works most of the time, but will seemingly at random throw an exception with the error "Invalid attempt to call Read when reader is closed." All other Repository classes inherit from this one, and they all use the same DataContext object, which I understand isn't thread safe. Since there could be multiple calls to the DataContext object on the same page, perhaps one is using the DataContext when the next tries to do so. I'm not sure. What can I do to ensure this doesn't happen?


System.InvalidOperationException: Invalid attempt to read when no data is present.

  

Invalid attempt to read when no data is present.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Invalid attempt to read when no data is present.

Source Error: 

Line 53:             if (reader.HasRows)
Line 54:             {
Line 55:                 Response.Write(reader.GetString(0));

Here is my code:

Login error - No process is on the other end of the pipe on initial logon attempt

  
I am having a logon problem with asp.net apps that were created using Visual Web Developer 2008.  Data is on SQL Server Express 2008 running on Windows 2003 server with IIS6.  Connection is on a LAN.  The first time I try to log in to the site, I get the following error:Server Error in '/' Application.A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)Source Error:An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace:[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: Named Pipes Provider, error: 0 - No proce

MySql.Data.MySqlClient.MySqlException: Invalid attempt to access a field before calling Read()

  

I'm getting the Following Error.

 Invalid attempt to access a field before calling Read()
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: MySql.Data.MySqlClient.MySqlException: Invalid attempt to access a field before calling Read()

Source Error:


Line 132:        catch (Exception ex)
Line 133:        {
Line 134:            throw (ex);
Line 135:        }
Line 136:        finally
 

 

This error comes sometime and sometimes it doesnot come.

 

I tried to serach on mysql.com the same bug has been posted but no solution.

 


 


Your login attempt was not successful. Please try again.

  
I keep getting the same message "Your login attempt was not successful. Please try again." after I tried to login many times. The database named ASPNETDB was successfully created in the App_Data folder of the application. Still, I get the same error message. Do you have any idea why I keep getting on it?

MySql.Data.MySqlClient.MySqlException: Invalid attempt to access a field before calling Read()

  

I'm getting the Following Error.

 Invalid attempt to access a field before calling Read()
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: MySql.Data.MySqlClient.MySqlException: Invalid attempt to access a field before calling Read()

Source Error:


Line 132:        catch (Exception ex)
Line 133:        {
Line 134:            throw (ex);
Line 135:        }
Line 136:        finally
 

 

This error comes sometime and sometimes it doesnot come.

 

I tried to serach on mysql.com the same bug has been posted but no solution.

 


 


Ophaned Logins after restore - Exec sp_change_users_login - The Login name is absent or invalid

  

 

Did the restore. made sure I could access the new db with sa.. no
problem.


See some orphan logins that don't work (expected)..


did this to report them:

 

Exec sp_change_users_login 'REPORT'

 

two reported.

 

did this on one of them:


 

Exec sp_change_users_login 'Update_One', 'xxxx', 'xxxx'

 

But got error:

Msg 15291, Level 16, State 1, Procedure sp_change_users_login, Line
131 Terminating this procedure. The Login name 'xxxx' is absent or
invalid.

 

Also, There are users that access the old DB with their Windows User
name or AD name. I don't see them in the user access list for the db
and can't seem to map them to some of the AD groups that have access.

 

Is there any way to report exactly with what AD group a user was able
to access a DB? There isn't any setting that would allow everybody in
a domain to access a db without an AD group right?

 

Thanks for any help or information.


I thought this would be simple... Trying to create a login does an ajax check before submit

  

I have the standard .net login control that is working.  (Still learning .net after 15yrs of classic)

What I want to do is OnButtonClick run a javascript function (to do an ajax call to the db to check if login is valid or not) and if it returns true, then submit the form normally, else don't submit. The piece that I can't figure out, is how to correctly override the default click even to hit my JS routine and then submit the form properly afterwards.

Thanks ahead of time


How to modify the login control

  

Hi,

I'd like to record more information than the default control allows as well as perform actions with the input when the form is submitted but I'm having trouble figuring out how.

So firstly, if I want to record the middlename for example, how would I do that, and by default, where would it go if anywhere?
When the form is submitted, I'd like to take specific input, such as just the middlename for example, and write some linq to sql code to specify when and how it's stored.
In what event would I put this code?

Thanks 


create user wizard login error message dont show in a message box?

  

hi

 

i am using create user wizard and capturing other information within content template when a new user

registers. Some of the textboxes are binded to required field validators.

 

there is a validation control on the page and ShowMessage box is True.

If they dont complete some of the text boxes then the message box pops Up with the error message.

It does not however include information errors like "User already exists" or Email address already exists

from the create user wizard membership  UserName and Password Textboxes

 

is it possilbe to hook all of these up so I get one message box with all errors including membership ones?

 

thanks

 


Using network login

  

Hello:

Is anyone have sample code to set up log in page using network login?

For example: User Name(same as Network Login)

                     Password(Same as Network Login)


Your help is highly appreciated.


ASP:Login

  

Hi All

VS2005, .Net 2.5

i have been building a website and testing it in google chrome, which has been working fine.

i am now testing it in IE and firefox and the asp:login doesnt work, it doesnt even post back when i click the 'login' button.

anyone and idea what might be going on? im not sure where to start, as i mentioned above the login works fine using google chrome.

Thanks



Visual Web Developer 2010 Express "Copy Web Site" using different login

  

I created a site and am trying to grant another pesron access to upload changes to it without giving them my super-user login.


I made a login for her but I can't test whether it works or not because no matter how much I "disconnect" in the Copy Web Site page of VWD 2010, reconnecting to the same site always logs in as my superuser account without prompting me for a login again.

How do I test is the account it set up correctly before having her try to upload to it?    I want to force the login to remote site dialog to pop up again to test her account.

Any ideas?


Intermittant error: "A connection attempt failed because the connected party did not properly respon

  

Greetings,

I'm having a doozy of a problem, and can't find a solution.  I have a WFC Web Service installed to a pair of servers, and accessed through a load balancer.  I am accessing the service from an ASP.NET client app, also via WCF.  The Client is not load balanced.

I'm getting an intermittant error:

(Inner Most Exception) System.Net.Sockets.SocketException:  A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80

(Middle Exception) System.Net.WebException: Unable to connect to the remote server

(Outer Exception) System.ServiceModel.EndpointNotFoundException:  Could not connect to http://<MYSite>/<MYApp>/<MYService>.svc. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond x.x.x.x:80.

I can reproduce this error with about 20% reliability if I execute the exact same page request on the client from 2 browsers at the same time.  When the problem occurs, the successful p

Invalid length for a Base-64 char array for my coding in ASP.net C#. How to solve it ?

  

Hi Friends ,

I have done encrypted password and decode but i got error  like  this  " Invalid length for a Base-64 char array" .

Pls help . Thanks

 

psswd = txtPassword.Text;

pwed = base64Decode(psswd);

public string base64Decode(string sData)
        {
            System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
            System.Text.Decoder utf8Decode = encoder.GetDecoder();
            byte[] todecode_byte = Convert.FromBase64String(sData);
            int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);
            char[] decoded_char = new char[charCount];
            utf8Decode.GetChars(todecode_byte, 0, todecode_byte.Length, decoded_char, 0);
            string result = new String(decoded_char); return result;
       

Login Adpater

  

I am having problems getting the adpaters to work.  The Whitepaper references a vsi to install but the link to download does not contain the vsi - just source for the CSSFriendly kit.  The kit is missing the css/import.css file also.

Anyway, I fumbled around and was able to get the menu working but I cannot figure out how to specify the css class for the login control.  With the CSSFriendlyAdparters.browser file in my project, I lost all styles and most of the features of the login control.  The menu uses cssselectorclass but I tried that server tag on the <asp:login> and it did not work.  The original cssclass attribute does not seem to do anything either.

Can someone point to some documentation on how to use these tags and integrate with the CSSFriendly.dll adpaters.

Thank you,


Steve


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend