logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Jak poprawnie napisać connection string dla Praca.mdf w ASP.NET?

Defice 30 Gru 2011 09:41 924 0
REKLAMA
  • #1 10322440
    Defice
    Poziom 25  
    Posty: 698
    Pomógł: 101
    Ocena: 15
    Witam, mam problem z prawidłową składnią conectionstringa :/ Moją witrynę przeniosłem właśnie na serwer, jednak jest problem z połączeniem się z bazą.

    Baza znajduje się w folderze database i nosi nazwe Praca.mdf

    Folder w którym są wszystkie pozostałe pliki to webroot

    Obecna postać connection stringa to:

    Kod: C#
    Zaloguj się, aby zobaczyć kod


    Pomoże ktoś poprawnie go napisać ?

    Po próbie logowania wyśiwtla się komunikat:

    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Dodano po 24 [minuty]:

    Temat już nieaktualny, przepraszam i zamykam :)
  • REKLAMA
REKLAMA