I made an ASP.NET MVC web application, uploaded the files as well as the database, but when I view it I get the following error.
Network path not found
I am using Entity Framework and this is the connection string in my web.config file
<connectionStrings> <add name="[mydatabase]Entities" connectionString="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;provider connection string="data source=sql.[somedomain].net;initial catalog=[mydatabase name];User ID=[myUsername];Password=[myPassword];MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> </connectionStrings>
I have downloaded many websites using an IP address , for example. xxx.xxx.x.xxx as a data source, but this is the first time a server name is used, for example. sql. [somedomain] .net -I can't get the ip- server, so I'm not sure if this caused an error, or if I have to do something special to make it work.
So, I ask if there is something that I have to do in order to use the server name as a data source, if not, what else might cause this error.
This answer really does not help.
Thanks in advance.
Update
If I ping sql server. [somedomain] .net, I get this result
Ping request could not find sql host. [somedomain] .net. Check the name and try again.
And if I nslookup this, I get this result
*** Unknown cannot find sql. [somedomain] .net: non-existent domain
This means that the server is unavailable. And is there anything I can do by contacting hosting technical support?
solvable
This is an error / incorrect configuration of the hosting provider. After 3 days of searching and contacting customer support, they realized that this was their problem. I leave this question to tell future Host Only viewers with reliable / well-known hosting providers no matter what .