Hi folks,
I'm developing an ASP.NET MVC application in VS2008 SP1 and SQL Server 2005 Express and trying to deploy my application to production web server.
There I'm pretty sure that they have .NET 3.5 Framework installed (although when you go to the about box from SQL Server Studio Management you see .NET Framework 2.0) and they have SQL Server 2005 (not express i think) installed.
I created a database, created a user with pass and when I run my application I'm getting the following error:
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: 25 - Connection string is not
valid)
No matter what I try I'm stuck with this error forever. The best thing I could get was changing the errror do 26: Could not locate instance name when I changed the instance name on my connection string. Btw, my connection string is below and I'm pretty sure its valid:
<add name="automotorConnectionString" connectionString="Data Source=.\MSSQLSERVER;Initial Catalog=automotor;User Id=autos;Password=mypassword" providerName="System.Data.SqlClient" />
Instead of using the dot "." in the server name I tried with the machine name, i tried with IP, etc...
I tried the instance name with SQLEXPRESS too although I look at the services.msc and made sure that the instance name is MSSQLSERVER.
I tried everything! I read ZILLIONS of posts through the web, did all the configuration changes to the SQL Server to make it allow remote connections, tried to install the Providers SQL for ASP.NET in the database (aspnetdb), trid everything possible. The weird thing is that i created a udl file and through there i was able to connect :(
I don't know what else i can do, im on this for over 15 hours and feels a lot stressed, why a deploy that should be so simple is getting so long ? Has anything to do with ASP.NET MVC framework perhaps?
thanks for any help