Skip to main content


 

Symptoms


After following the procedure from http://help.k2.com/kb001309, we have managed to restrict the access to K2 Designer but now we are facing the problem with "Select Picture" window within Picture control (check out the attachment: SelectPictureError.png). It seems that CSS and Javascript are missing.

Access to the K2 Designer Application Pool account (NISk2service) has been also granted (check out the attachment: AuthRules_DesignerIIS.png)
 

Diagnoses


This is a bug in older versions, see below
 

Resolution

I believe this is a bug in older versions of K2 but has since been fixed in 4.6.9

There are two things you can try

- First:

In your Designer and Runtime web.config files try changing the two below tags to “false”:





- Second:

You can work around it by adding the following to each tag at the bottom of the Designer web.config file:










There are quite a few tags, so I've attached a text file called WebConfigLocationTagUpdates.txt that contains just the tag updates. First backup of your existing Designer web.config then replace all of the existing tags with the contents of attached file.

You basically need to replace everything that sits between this line:


And this line:


----------
More detailed description of what the options above do
----------

Please have a look at the following article:
http://help.k2.com/onlinehelp/k2smartforms/devref/1.0.7/default.htm_web_config_performance.html

Post render combining settings - Combined resource of CSS and script files after Form has been rendered, delivered as one file to the browser. This setting can be disabled by changing the value of the Forms.PostRenderCombining.Enabled tag to false for debugging purposes, but the rest of the settings should always stay as it is. This setting should be disabled when the "UseBundledFiles" setting is set to false.

You can also have a look at this Microsoft article:
http://www.asp.net/mvc/overview/performance/bundling-and-minification

Bundling is a new feature in ASP.NET 4.5 that makes it easy to combine or bundle multiple files into a single file. You can create CSS, JavaScript and other bundles. Fewer files means fewer HTTP requests and that can improve first page load performance.

I believe since 1.0.6 they have switched to using ASP.NET 4.5 with SmartForms.




 
Be the first to reply!

Reply