Error after deploying
Hello, I am unable to deploy my SF 4.1 website on Virtual Private Server that runs IIS 7.5, it is working ok on my development machine but after hosting here http://pbc.lynxsel.com/ I get the following error
Hello Karen,
Thank you for contacting Telerik Support.
Make sure that you have set your project on IIS as described in this article: Configuring the IIS to host Sitefinity projects (section Configuring folder permissions). The most common reason for getting this exception is if your application pool identity does not have sufficient permissions over the App_Data folder and its content. If your website is added to source safe make sure it is checked out and is not read only.
All the best,
Victor Velev
the Telerik team
Hi Victor
Thanks for prompt answer, however after giving the permission to the folder I started to get another error relating MS SQL connection
Hello Karen,
Please check this thread
www.sitefinity.com/.../openaccessexception.aspx
Best wishes,
Ivan Dimitrov
the Telerik team
Hello Ivan
Actually this is not my case, as I have about 10 other databases on that server that are used by other websites and no connection issue appears so far.
There is actually very strange issue here, I created a TestConnection.aspx file and put the following code there
protected void Page_Load(object sender, EventArgs e)
string connectionString = GetConnectionString();
using (SqlConnection connection = new SqlConnection())
connection.ConnectionString = connectionString;
connection.Open();
static private string GetConnectionString()
return "MY CONNECTION STRING GOES HERE";
Hello Karen,
Sitefinity uses DataConfig form App_Data/Configuration folder
You can get the connection as shown below
var dataConfig = Config.Get<DataConfig>();
IConnectionStringSettings connStrEl;
var connectionName =
"Sitefinity"
;
if
(dataConfig.TryGetConnectionString(connectionName,
out
connStrEl) && connStrEl.ProviderName.Equals(
"System.Data.SqlClient"
))
Response.Write(
"There is a connection -Sitefinity"
);
else
throw
new
ConnectionNotFoundException(connectionName );
Thanks for help Ivan