I have a problem with my connection string. When using web service from server i see this error:
Format of the initialization string does not conform to specification starting at index 114
But in local host i don't have any problem. and my connection string is:
name="DB_nodeEntities1"
connectionString="metadata=res://*/Models.Node.csdl|res://*/Models.Node.ssdl|res://*/Models.Node.msl;
provider=System.Data.SqlClient;
provider connection string="
data source=xx.xxx.xxx.xx,1433;
initial catalog=my db name;
integrated security=True;
MultipleActiveResultSets=True;
App=EntityFramework"
User Id=my id;
Password=my pass"
providerName="System.Data.EntityClient"
i think it's related to server security policy. for example some SQL server doesn't allows you to remote access and you should connect locally. maybe what happened to you is something like this. in such case your hosting service and database engine should be on the same server also contact your server administrator.
let me know when exception occurred, is it happens when you run your website in debug mode on your computer? if yes, I recommend you test it on server.
also what's your server type (Linux&Windows) and which language you use to implementation. but if you use windows server for both hosting and Database engine and implement in .Net framework i have some suggestion based on your error. first of all check this link . secondly check your connection directly in SQL Server management studio, if you can't connect, so it's clearly shows you don't have permissions and first theory confirmed.
Have you tired creating a connection string via a UDL file and simply copying and pasting that into your code?
I've got a blog post here which explains how to do it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.