با سلام من یک سایت طراحی و پابلیش کردم با c#
دیتا بیس اون هم SQL Server 2005 هست.
ولی این error ro mide:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
در ضمن connectionStrings هم اینه که داخل web.config گذاشتم.
<connectionStrings>
<add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
ممنون میشم اگه کسی کمک کنه
دیتا بیس اون هم SQL Server 2005 هست.
ولی این error ro mide:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
در ضمن connectionStrings هم اینه که داخل web.config گذاشتم.
<connectionStrings>
<add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
ممنون میشم اگه کسی کمک کنه