private void ConfigurationEditorForm_Load(object sender, EventArgs e)
{
if (_configuration.ForPublication)
{
okToolStripButton.Text = "Close";
cancelToolStripButton.Visible = false;
bool serverOk = false;
try
{
Microsoft.Web.Administration.ServerManager serverMgr = null;
serverMgr = new Microsoft.Web.Administration.ServerManager();
serverOk = true;
}
catch { }
if (serverOk)
{
infoTextBox.Text = string.Format(@"This simple helper allows to publish the Web Server application on your Internet Information Server version 7 or 8.
It creates an application under the 'Default Web Site' of IIS using the 'LocalSystem' Windows Account.
IIS must be installed with the following features:
IIS version 7: Application Development/ASP.Net
IIS version 8: Application Development/ASP.Net 3.5, Application Development/ASP.Net 4.5
MVC 4 extension
The site can be configured with any user having the following rights:
Read access to the repository directory ({0}).
Rights to connect to the databases defined in the Data Sources.
Read/Write access to the temp sub-folder created in the published directory ({1}).
Note that publishing will stop the current Web Server instance.
", _configuration.Repository.RepositoryPath, Path.Combine(_configuration.WebPublicationDirectory, "temp"));
}
else
{
infoTextBox.Text = @"No Internet Information Server detected on this machine.
Please install IIS with the following features:
IIS version 7: Application Development/ASP.Net
IIS version 8: Application Development/ASP.Net 3.5, Application Development/ASP.Net 4.5
MVC 4 extension
";
}
}
else
{
infoTextBox.Text = @"This editor allows to configure your server parameters.
New parameter values may require a restart of the Report Designer or the Web Server.";
}
Visible = true;
}