ConnectionString'inde User Instance=false değeri yoksa ekle.
Ek olarak AppData altında bir db varsa ve kullanmıyorsan sil.
İnstance false yapınca böyle oluyor hocam.
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.Data.SqlClient.SqlException: Cannot open user default database. Login failed.
Login failed for user 'XXXXX\Administrator'.
Appdatanın altında mdf uzantılı db kullanıyorum.
connection string hatası gibi duruyor.. projemi ilk yüklediğimde derken bir sunucuya yüklediniz sanırım. connection cümlenizin içeriği ile manangment studio dan bağlantı sağlayabiliyormusunuz.
Sorun ftpde hocam localhostta bir sorun yok.
Alıntı
<configuration>
<connectionStrings>
<add name="Library" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|Data base1.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true" />
<authentication mode="None"/>
<membership>
<providers>
<clear/>
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/>
</providers>
</profile>
<roleManager enabled="false">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/>
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider " applicationName="/"/>
</providers>
</roleManager>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>