Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Keyword not supported: 'username'.

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.ArgumentException: Keyword not supported: 'username'.

Source Error:


Line 14: private void FillData()
Line 15: {
Line 16: SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Constr"].ToString());
Line 17: SqlDataAdapter da= new SqlDataAdapter("select *from emp",con);
Line 18: DataSet ds = new DataSet();
Posted
Comments
Sergey Alexandrovich Kryukov 1-Feb-16 2:36am    
That's right, there is no such keyword :-)
Interestingly, you did not show any code with "username". Sorry, at this moment, my access to your hard drive is somewhat limited.
—SA
dan!sh 1-Feb-16 2:37am    
Update your question with connection string. I am almost certain that it is not correct.

check connection string in web.config file u may be using username instead of userid
 
Share this answer
 
Check your query.
Your query format could be wrong and hence it seems you are using username as a keyword.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900