These days I try to migrate umbraco from SQL CE to SQL Server, first i export the SQL CE script and then i ran it on the SQL Server to create a new database to Umbraco on that server.
I changed the connectiong string to this new server and then everything goes wrong.
I got this error:
strangely if a run in my notebook with win 10, with the same connectiong string the Umbraco works, but if i run i my IIS server directly it do not run.
Anyone knows why?
I found the solution.
When i connect to umbraco from outside of the server, everything is okay, but in inside of server the same connection string does not work because of security (security policies) implemented by a company that support us.
So the solution was to change to a connection string that has the local sql server name (in domain) and works xD.
Umbraco cannot connect to SQL Database
Hey guys,
These days I try to migrate umbraco from SQL CE to SQL Server, first i export the SQL CE script and then i ran it on the SQL Server to create a new database to Umbraco on that server. I changed the connectiong string to this new server and then everything goes wrong. I got this error:
strangely if a run in my notebook with win 10, with the same connectiong string the Umbraco works, but if i run i my IIS server directly it do not run. Anyone knows why?
Hi Luis
Check please that IIS process has access to the connection.
THanks,
Alex
What do you mean?
I already give full access to user IIS_IUSRS to entirely folder :s
Hi Luis,
Have you updated the providername attribute on the connection string in the web.config from
System.Data.SqlServerCe.4.0
toSystem.Data.SqlClient
?Cheers Matt
Yes, i updated to System.Data.SqlClient
Thanks for the answer
Hi guys,
I found the solution. When i connect to umbraco from outside of the server, everything is okay, but in inside of server the same connection string does not work because of security (security policies) implemented by a company that support us. So the solution was to change to a connection string that has the local sql server name (in domain) and works xD.
Thank you all!
is working on a reply...