I think there is a probem with my .\SQLEXPRESS server. it seems to be shut or inaccessible.
my solution:
I have just decided to use my other server with the name MRAKANET-PC (SQL Server 10.0.1600). I created the aspnetdb and my tables inside then edited the LocalSqlServer connection string (in the machine.config) to point to it seting the new data source and
removing the user instance (since only sql express supports it) and everything works fine now.
akanetsamson
Member
119 Points
136 Posts
Re: Cannot open database "*.mdf" requested by the login. The login failed. Login failed for user ...
Nov 24, 2011 05:07 AM|LINK
I think there is a probem with my .\SQLEXPRESS server. it seems to be shut or inaccessible.
my solution:
I have just decided to use my other server with the name MRAKANET-PC (SQL Server 10.0.1600). I created the aspnetdb and my tables inside then edited the LocalSqlServer connection string (in the machine.config) to point to it seting the new data source and removing the user instance (since only sql express supports it) and everything works fine now.
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=MRAKANET-PC ;Integrated Security=SSPI;database=aspnetdb" providerName="System.Data.SqlClient"/>
</connectionStrings>