I am trying to have access to my project from the browser, I have put it on my server .
My database is on SQL Server 2008 R2 .
When I try to login I have always
I think there's a missing \\ in your AttachDBFilename right after |DataDirectory|:
\\
AttachDBFilename
|DataDirectory|
AttachDBFilename=|DataDirectory|\\DataUi.mdf