Skip to main content

I have exported a new process to the K2.net Server. On trying to execute the start page (a form for users to enter their leave details for example), I encountered the following error.::
Server Error in '/K2VM2003B' Application.

Error with compilation of process
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Error with compilation of process

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[Exception: Error with compilation of process]
Client.Throw(String s, Exception e)
Client.Call(ArchiveX ar, Int32 hdr)
SourceCode.K2ROM.Connection.CreateProcessInstance(String ProcName, Int32 Version)
SourceCode.K2ROM.Connection.CreateProcessInstance(String ProcName)
SourceCode.K2SmartForms.K2SmartForm.LoadData() +1190
SourceCode.K2SmartForms.K2SmartForm.OnLoad(EventArgs e) +19
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731

-------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573


Based on the error messages, your main error is Error with Compilation of Process . In other words, after exporting, when you first attempt to render the plan page for a process, the K2Server will attempt to compile the entire solution (if this has not been done yet). It appears that this compilation process is failing on your machine. Can you perhaps check whether all the .dll s that reside in your K2.net project folder, also exist on the K2Server s C:Program FilesK2.netBin folder? Any missing .dll s might cause a compilation error.

Another common error that occurs during the initial rendering of the start page is that of permission denied. This could occur if the 'Anonymous Access' to the site has not been switched off, and the K2 SmartForm Controls cannot determine the username of the user browsing the site.
From K2.net 2003 RC2 to be released during the week of 24 June 2003, all K2.net reference assemblies are exported to the K2.net Server from K2.net Studio. These assemblies are stored in the K2.net database and are loaded from there during execution by the K2.net Server. It is therefore not necessary to copy your references to the K2.net 2003 Server bin folder any longer.

Reply