Note that there are some explanatory texts on larger screens.

plurals
  1. POParallels Plesk Panel connecting to database server connection string
    primarykey
    data
    text
    <p>I am using Entity Framework to access the data from my database. It's an MVC application and works fine locally. When I deploy the application on hosting (Parallels Plesk Panel, MS hosting) I get problems with accessing the SQL server instance. There are options in the cPanel which hold connection strings. LocalSqlServer: </p> <blockquote> <p>data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true<code> xContainer:</code>metadata=res://<em>/Models.x.csdl|res://</em>/Models.x.ssdl|res://*/Models.x.msl;provider=System.Data.SqlClient;provider connection string=</p> </blockquote> <p>When I upload the site xContainer is generated alone. I found the sql server's instance name and applied it to the data source. In my web.config file I am using the the xContainer. The code after this paragraph is what it seems logic to me to add after the <code>connection string=</code> in the xContainer. </p> <p>I have tried this with various properties. Data source, initial catalog, and the other info are filled into the conn string (here I am showing only /).</p> <blockquote> <p>Data Source=x;Initial Catalog=/;Persist Security Info=True;User ID=/;Password=/;MultipleActiveResultSets=True providerName=</p> </blockquote> <p>The error I receive is that the sql server instance cannot be found. If I add the last piece of code to the container it tells that I don't have a <code>providerName</code>, After adding a <code>providerName</code> the string is deleted to the starting xContainer string:</p> <blockquote> <p>metadata=res://<em>/Models.x.csdl|res://</em>/Models.x.ssdl|res://*/Models.x.msl;provider=System.Data.SqlClient;provider connection string=</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload