Dismiss Notice
You are browsing this site as a guest. It takes 2 minutes to CREATE AN ACCOUNT and less than 1 minute to LOGIN

Msaada .NET Programmer

Discussion in 'Tech, Gadgets & Science Forum' started by Hadoop, Aug 21, 2012.

  1. H

    Hadoop Member

    #1
    Aug 21, 2012
    Joined: Oct 28, 2011
    Messages: 89
    Likes Received: 0
    Trophy Points: 0
    Wandugu, .NET membership database inafanya kazi vizuri kwenye local server, lakini nikiupload kwenye host server inakataa kuprocess login and register functions, then "Invalid value for key 'attachdbfilename'." error inatokea.


    Connection string katika local server iko hivi:< add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-mycompany-20120805225533;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-mycompany-20120805225533.mdf" />

    Nimejaribu kubadilisha setting za connection string nimeshindwa kutatua tatizo.
     
  2. Annael

    Annael JF-Expert Member

    #2
    Aug 22, 2012
    Joined: Sep 26, 2011
    Messages: 6,133
    Likes Received: 1,988
    Trophy Points: 280
    Pole sana kwa muda mrefu maana sijatembelea hapa muda mrefu
    This is the security problem
    1. Are you using website or window application?
    2. The database and application are in the same computer?
    3. Do not use windows authentication just create user in the database then use the user.
    Nipe maelezo zaidi ili niweze kukusaidia.

    Poa.
     
  3. Kang

    Kang JF-Expert Member

    #3
    Aug 22, 2012
    Joined: Jun 24, 2008
    Messages: 4,698
    Likes Received: 203
    Trophy Points: 160
    Local server na host wako zitakuwa zina version tofauti za SQL Server, itabidi ubadili connection string kulingana na version ya SQl Server ya host wako.
     
Loading...