Dear, Try this Go to IIS -> Right Click on you project directory -> In Directory Tab->Click on Application Setting's Create Button-> Click Ok It may resolve your problem... Otherwise Google this error. :thumbsup:
Be an Eagle, Sky is Yours.
Is the web server running?
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!
Use the stringbulder to build the string and put debug point to test wheather ur string is formed is the correct one. for e.g Dim sbScript as new System.Text.Stringbuilder sbScript.append("Select eName,eSalary from Emp ") sbScript.append("where eid=") //Use the single quote after = sign if eid is string sbScript.append(TextBox1.Text) cmd.CommandText = sbScript.ToString() Hope this trick will be helpful to you...