Để lấy chuỗi Connection String, một trong những câu lệnh quen thuộc là: return ConfigurationManager .ConnectionStrings[ "FormAuthentication" ].ConnectionString; Khi dùng với SQL Compact, bạn gặp lỗi: 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)
Suy nghĩ, yêu thương và làm việc hết mình