You must Sign In to post a response.
  • Category: Complaints

    Compilation error Compiler Error Message: The compiler failed with error code 128.

    I have uploaded my project at aspspider.info/adeptbizs

    It gives error while run Compilation error

    Kindly help me to resolve it

    Regards
  • #7095
    Your SQL Connection string is wrong.

    Here is a sample connection string to connect to SQL Server from your free web hosting account:


    "Data Source=.\SQLExpress;Persist Security Info=True;Integrated Security=SSPI;Initial Catalog=YourUserId_DatabaseName"

    You need correct your connection string according with example above.

    So look at error:

    Line 11: {
    Line 12: con = new SqlConnection("Data Source=ASIM\\SQLEXPRESS;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=MobileInfo;");
    Line 13: con.Open();
    Line 14:
    Line 15: SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM Mobile", con);


    1) Data Source =ASIM\\SQLEXPRESS; replace by
    Data Sourec = .\SQLExpress;

    2) Persist Security Info=False; replace by
    Persist Security Info=True;
    3) Initial Catalog=MobileInfo; replace by
    Initial Catalog=YourUserId_DatabaseName

    where YourUserId - it's your aspspider Login
    DatabaseName - it's mdf database filename.

    Good luck!


  • Sign In to post your comments