You can add following key into "/configuration/appSettings" section in web.config file:
<add key="CMSForbiddenURLValues" value="\\/:*?\"<>|&%.'#[]+ =„“" />
it contains all characters forbidden by default so you can just remove characters you want not to be forbidden. E.g. if you want to set "+" character not to be forbidden you can change key to:
<add key="CMSForbiddenURLValues" value="\\/:*?\"<>|&%.'#[] =„“" />
Basically, you can follow the
Print page article from Dev.Guide. Regrettably, there is no method that returns whole content of page, but you can get content from all editable regions by calling GetEditableValue method manually for every editable region on the page:
<%# GetEditableValue("IdOfEditableRegion") %>
-md-
This issue may be caused by using some plug-in in the Visual Studio. You can try running the Visual Studio with
/SafeMode parameter to see if any of installed plug-ins causes the problem. You can also open the project as an existing web site. More details about running the Visual Studio in the Safe Mode can be found on
Microsoft web site.
You can add HTML file with following name into root of project folder: app_offline.htm
All requests will be automatically redirected to this file then (it's general .NET functionality). You can optionally add some 'site under maintenance' text/image into this file.
Kentico CMS is using ‘|’ to separate multiple choices. That means, if you have for example a quiz like form, with the correct answers 1 and 3, defined for example as 1;True 2;False 3;True you need to use the regular expression [1][|][3]. You don’t need to use at the start the combination ‘^(‘ and at end the combination ’)$’ - they are inserted automatically.
If you are using the document type field of BBcode editor type you may see that the BBcode tags are not resolved if you use simply the Eval function (<%# Eval("field_name") %>).
You can use the ResolveDiscussionMacros function like here in this case:
<%# CMSContext.ResolveDiscussionMacros(Eval("field_name").ToString()) %>
The Logon page is available in
~/CMSPages/logon.aspx within the project folder. There are following classes used for design:
.LogonPageBody
{
background-image: url(Images/Dialog/BackgroundNew.gif);
background-repeat: repeat-x;
background-color: #e7f2f8;
height: auto;
height: 98%;
}
.loginBox
{
margin: auto;
padding: 80px 0 12px 0; /* width: 503px; */
background: url(Images/Dialog/LoginBox05.gif) no-repeat;
}
Both are defined in
~/App_Themes/Default/CMSDesk.css file. You can change them according to your needs.
This exception is thrown because incoming request is greater than allowed maximum request length. By default ASP.NET http runtime allows to receive requests that are not greater than 4 MB. This value can be increased by specifying maxRequestLength parameter of <httpRuntime> section of the configuration file (web.config).
1. Open the
Web.config file in VS or Notepad.
2. Find the
httpRuntime element in the system.web section as follows:
Example:
<httpRuntime
executionTimeout="90"
maxRequestLength="10000"/> (increase the marked number of bytes)
More detail information about mentioned parameters can be found in
Microsoft documentation or in this
blog post as well.
Yes, basically it is just a matter of appropriate stylesheet and page layout, defined for mobile devices, as per W3C mobile devices specifications. You can find plenty of examples of how to implement such web site using stylesheets on the internet:
Creating a Mobile-Friendly Site using only Stylesheets
W3C: Building the Mobile Web
Preparing Your Website For Mobile Devices
As for a detection of an access from a mobile device, there is a .NET Framework class for this purpose:
HttpContext. In particular,
HttpContext.Current.Request.Browser will give you a
HttpBrowserCapabilities object, which has a property
IsMobileDevice. By the boolean value of this property you can determine it.
It’s probably because you use some feature which is out of the range of your license edition you use. Please check
feature matrix. You can see which module is being used on your site and it is not listed for your license edition. Also, if you go to event log:
'Site Manager -> Administration -> Event log' you will find more details about it. You could try to search for event with type 'I' and 'LicenseLimit -' prefix in 'Source' field. Than you can perform appropriate fix steps based on the character of the issue.
If you want to apply some setting for a specific site, please do not forget to select this web site from the upper left drop down list. Not all settings are inherited by default, so you have to set them for the appropriate site.
You can solve this issue by allowing HTTP requests to the ~\CMSPages\webfarmupdate.aspx(.cs) page. (It is possible to configure exceptions to the SSL only policy in IIS)
Whether you use our Virtual Lab site you might encounter error message similar to following one:
Server Error in '/Web12345' Application.
Exception of type 'System.OutOfMemoryException' was thrown.
Please try to wait until the server is being restarted. This is only a temporary issue. Since there is huge amount of sites running at the same time.Regrettably, our resources are limited this issue can happen time to time.
If you need to redirect the visitors to another site, for example, if the site is under construction, simply place the following line into the method “public void Application_BeginRequest(object sender, EventArgs e)” in the file ~\App_Code\Global.asax.cs:
Response.Redirect("http://www.domain.com/"); //insert this line to redirect, you need to change the URL string
You can find all e-mail templates in CMS Site manager -> Development -> E-mail templates. You specify site-specific templates by selecting a site in the dropdownlist in the mentioned location. You have to delete the global template first. Now just create a template with the same code name as the global one.
For example for the email “Order notification to customer” is always used the template with the code name Ecommerce.OrderNotificationToCustomer. So it means that you can create templates with this code name for each site.
All avatars are converted to JPG format in the 4.0 version so that they lose the moving animation. In 4.1 version you will be able to use animated GIFs without problems.
You can place
robots.txt file under the root of your site. This file may contain information what pages should not be indexed. You can find more information about robots.txt file for example on this site:
www.robotstxt.org/robotstxt.html
Kentico CMS supports Microsoft SQL server only. It might be possible to implement data provider for MySQL or Oracle, but it will be necessary to analyze all queries and eventually change their syntax as every system uses slightly different syntax. It might be also necessary to purchase version with source code to implement data providers.
You can reset the password directly in the database. Find the table named CMS_User and clear the password field for appropriate user name row. Then you can log in to the CMS using blank password and change it in the Administration section. If you store passwords in PLAIN text and not in SHA1 format, you can see appropriate password in table above directly.
Second option how to retrieve a lost password is to use the forgotten password link. Please go to some page which requires logon and click on mentioned link, enter you e-mail address and the new password will be send to this address (if it exists for some user account).
This could be possible to ensure in your IIS. Could you please go to IIS -> Default web site -> Properties -> Home Directory -> Local Path and change it from (by default) "c:\inetpub\wwwroot" to "c:\inetpub\wwwroot\<your virtual directory name>". Then you site should be available only via domain name, without virtual directory name in it.
Unfortunately, this is caused by .NET framework. It restarts the application automatically, after a specified number of compilations is reached, e.g. if you edited some code files, etc. This value can be set in web.config file (by default it is 100):
<compilation debug="false" numRecompilesBeforeAppRestart="100">
Unfortunately, this is bug in upgrade procedure. We are very sorry for this inconvenience. To fix this issue please open ~\App_Themes\Default\CMSDesk.css file and change url of background image in .GraphBar class to:
background-image: url(Images/CMSModules/WebAnalytics/weekgraph.gif);
and url of background image in .GraphBarSelectedBox .GraphBar class to:
background-image: url(Images/CMSModules/WebAnalytics/weekgraphselected.gif);
For example:
Id = plcRoot_Layout_zoneMainLayout_pageplaceholder1_partPlaceholder_Layout_zoneMainContent
_pageplaceholder_partPlaceholder_Layout_zonePageContent_pageplaceholder_partPlaceholder
_Layout_zoneContent_SearchOptions_ctl00_SearchCriteria_CommonOptions_MyField
The long names are product of ASP.NET. It involves all parents IDs to ensure the unique names of controls. We would not recommend changing of it.
If you would really need it these articles could help you:
www.west-wind.com/WebLog/posts/4605.aspx
michaelcodes.net/post/ASPNET-WebControl-ClientID-Bloat.aspx
Unfortunately, .NET supports only one form on the page and there is already one generated by Kentico CMS, but you can eventually put your custom HTML code for form into iframe placed on the page. You may also consider using
BizForms module.
This problem may be caused the the server cannot see it self - you should be able to browse your site with/without "www" directly on the server (e.g. Remote Desktop).
Second option is that in the Site Domain name setting in Site Manager -> Sites is set different domain. Note that the domain name from mentioned field is used for scheduler, so this domain should be accessible.
Could you please set the default page of your web site through the Site manager-> Settings-> <selectYourWebSiteFromTopLeftDropDownList>-> Web Site-> Default Alias Path and set the path e.g. to "/home". You could look for the alias path of the particular page in the CMS Desk-> Content-> <page>-> Edit-> Properties-> General-> Alias path. Please note there is no need to set up this information in the IIS.
Second option is that the documents have set different culture than the default content culture. You can check this setting on the Properties tab of each document and for the site you can check it in Site Manager -> Sites -> edit your site -> Default content culture.
Another possible setting is in Site manager-> Settings-> <selectYourWebSiteFromTopLeftDropDownList>-> Web Site-> Combine With Default Culture. It should be checked if you are using multilingual site.
The 'FitWindow' functionality is not supported when shared toolbar is used. You may change the 'HTML editor toolbar location' property of particular editable region (in 'configure' dialog) to 'In-line toolbar'. Please note that the 'FitWindow' will fit the region into current frame, i.e. the section under 'save' and 'spellcheck' buttons where the page mode is displayed, not whole page.
Basically you can find e.g. _CS, _AS or _CI strings in collation name.
These strings refer to CaseSensitivity(CI specifies case-insensitive, CS specifies case-sensitive.) and AccentSensitivity(AI specifies accent-insensitive, AS specifies accent-sensitive).
For example if your server uses following collation name: SQL_Latin1_General_CP1_CI_AS, it means that it is case-insensitive and accent-sensitive (ideal case).
It could be found in MS SQL management studio when you right-click your SQL Server and choose Properties in section ‘General -> Server collation’.
It could be caused by the caching on the server - the information isn’t stored in DB at the moment. It should help to restart the application so all cache content will be loaded again.
This error occurs when your resource files in folder '<web project>\CMSResources' are broken somehow. To solve it please try to replace these files with original files from KenticoCMS installation directory often located in Program Files.
If you encounter error message with following marked text (important is the marked text, not marked part can be different):
CS0012: The type 'CMS.Ecommerce.ShoppingCartInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'CMS.Ecommerce, Version=3.0.2953.32669, Culture=neutral, PublicKeyToken=834b12a258f213f9'.
and the source of this error is located in c:\WINDOWS\microsoft.net\Framework\v2.0.50727\Temporary ASP.NET Files\ it is probably (in 90%) needed to clear the .Net cache in location mentioned above.
Please note: It might take a while to delete all files since there are a lot of them.
Text: There are two ways which could provide more details about error:
1. A "Debug=true" directive at the top of the file that generated the error. For example:
<%@ Page Language="C#" Debug="true" %>
2. The following section in the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
You can change it in CMS Desk -> Content -> Edit -> <your document> -> Form tab.
Web gardens are not supported by Kentico CMS. Also, our tests show that web gardens do not provide any significant performance gain. Also, using multiple application pools doesn't make any sense.
If you need to scale your application for large traffic, you need to add more web servers in a web farm. Web farms are fully supported in the Enterprise Edition that supports synchronization of memory between web servers.
When using ASPX templates and content subscription web part, you may get this error message: Please select some notification template for the specified events in the webpart settings.
Please edit the web part configuration and enter the template name in following format: SiteCodeName.TemplateCodeName
This post shows you how to solve an issue associated with the following error messages:
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Invalid token 'void' in class, struct, or interface member declaration these are the offending lines of autogenerated code.
If you are using LINQ and received the mentioned error please try the solution described at the following site:
forums.asp.net/t/1222718.aspx
Open the following file:
<web site folder>/CMSBlog/BlogCommentDetail.ascx.cs
Around line 70 add the following statement:
lnkName.Attributes.Add("rel", "nofollow");
This adds a rel=“nofollow“ attribute to the link on the name of author.
You need configure the "Order by" property in your web part (e.g. in repeater) like following:
NodeLevel, NodeOrder, NodeName
Try to specify some validation group for your validation control.
After applying the option “Save all virtual objects to disk” part of texts on pages were incorrectly encoded (wrong characters displayed in places of national characters).
The templates are saved to disk in UTF8 encoding, but without the signature. Try to save the incorrectly interpreted templates with the UTF8 signature in another editing tool (using Save as...).
This answer describes a possible solution if all the images do not appear and besides the home page, all the other pages are giving a page not found error.
This issue may be caused by "Check that file exists" setting in IIS is set to 'true' while it should be set to false. You can find this setting in your IIS -> right click on your web site -> Properties -> Home Directory tab -> Coinfiguration button -> find ASPX extension -> Edit -> deselect box Check that file exists.
Firefox shows page fault problems often instead of loading Kentico CMS pages.
Applies to: Kentico CMS 2.x, 3.x
This is a common problem in Firefox when you use many tabs in Firefox, it swaps excessively to the disk and instead of loading tabs properly it shows page faults. You can avoid this problem using lower quantity of tabs or another browser only for developing purposes.
You can find list of supported browsers on our pages (
www.kentico.com/Download/System-Requirements.aspx).
Please note: This is rather workaround then natively supported functionality.
Let’s say you want to create a page called 'submit' (without extension). You can create a folder called 'submit' in the root of project. Into this folder please put default.aspx page and into this page put the code that will redirect the visitor to e.g. http://www.mysite.com/jobsubmit.aspx
If you need to have links from your old site redirected to your new site like from the following page http://www.yourdomain.com/horoscope to the new one http://www.yourdomain.com/Divination/Horoscopes.aspx
There are two ways how to achieve this:
1. You can set any redirection in App_Code/Global.asax
2. You can create blank page which will redirect to existing page. This is recommended way.
This error message might appear if you have previously deleted the CMS.Blog document type and try to publish any document in Kentico CMS version 4.0. This issue is caused by bug in Kentico CMS version 4.0. We are very sorry for this inconvenience. We will try to fix it in version 4.1. In a meantime please try to create new document type with name 'CMS.Blog' to avoid the issue.
This error message is probably caused by general issue caused by the google bot. Please try suggestions at
http://forums.asp.net/t/934913.aspx
To set SSL for logon.aspx page, please go to your solution in Visual Studio, open CMSPages/logon.aspx and it's code-behind file.
Now write please following code in Page_Load method:
if (HttpContext.Current.Request.Url.AbsoluteUri.ToLower().StartsWith("http://"))
{
Response.Redirect(HttpContext.Current.Request.Url.AbsoluteUri.Replace("http://", "https://"));
}
Could you please check the IIS settings? We had a similar problem in the past caused by the wrong setting of the application pool (IIS 6 and higher). For more information please see
http://www.developer.com/net/asp/article.php/2245511.
Go to Site Manager -> Settings -> <your site> -> Content Management -> Personalize user interface by permissions checkbox and check it (set it to true).
Go to the document Properties teb -> General -> Document URL path and change the value to be for example: /home/
Make sure that on both servers is the system time the same. Make sure that the Microsoft.Web.Services3.dll.rename was renamed to Microsoft.Web.Services3.dll
In the Kentico CMS you can specify which page would be displayed as default very easily. All you need to do is find out an alias path of the particular page (please, see the ‘CMS Desk-> Content-> <page>-> Edit-> Properties-> General-> Alias path’) and specify it as the ‘Site manager-> Settings-> Web Site-> Default Alias Path’. Please note, when using the ‘global’ site level for setting the default page you might need to check if the inheritance isn’t broken down to the particular web site.