简体   繁体   中英

Hosted webpage on aspspider.com cannot connect to database

I have windows autentication, if i should change how to change that???

 <add name="ConnectionString" 
      connectionString="Data Source=.\SQLEXPRESS;
            AttachDbFilename=|DataDirectory|\Database.mdf;
            Integrated Security=True;
            User Instance=True"
      providerName="System.Data.SqlClient" />


<authorization>
   <allow users="*" />
   <deny users="?" />
  </authorization>

Aspspider's own instructions would be the best place to start.

How to create a new SQL Server database ? - it says here you can't use auto attach, you have to attach it to the server via the Database Manager which I presume you have access to when you log into their management site.

And here are instructions on the connection string you should use:
Connection strings for MS Access and SQL Server Express

Unless you have access to the app-pool to change the user and also the the SQL server to set the permissions I'd just change to standard username/password security.

Take a look at www.connectionstrings.com for details on how to do it.

You will then need to add the relevant user to your database security.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM