< class="prominent-subhead ">

Already authorized K2 SmartForms user getting "Not Authorized" error message when accessing form URL

This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


K2 4.7 users could from time to time get a K2 SmartForms not authorized error message:

"Not Authorized You do not have permission to view the page that you have requested"


This error may appear when users try to use a URL which looks as follows:


When an already authorized user hits the Login.aspx K2 page his authorization cookie gets deleted and the "K2 SmartForms not authorized" error is displayed. The URL mentioned above will only work without any errors when a user has not been authorized yet, while the normal runtime URL (e.g. "https://%K2_SERVER%/Runtime/Runtime/Form/%FORM_NAME%") will work fine all the time.


In this scenario the wrong URL causes the error. If the user uses a URL with the following structure: "https://%K2_SERVER%/Runtime/_trust/Login.aspx?ReturnUrl=/Runtime/Runtime/Form/%FORM_NAME%/" it only works when the user has not received his authorization cookie yet (i.e. user accesses K2 for the very first time during the day or he just cleared browser cookies for the K2 domain).

To avoid receiving this error message you need to make sure that the normal runtime URL is being used to access forms (i.e. URL which has the following structure - https://%K2_SERVER%/Runtime/_trust/Login.aspx?ReturnUrl=/Runtime/Runtime/Form/%FORM_NAME%/