Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks

rated by 0 users
This post has 4 Replies | 2 Followers

Top 150 Contributor
Posts 48
Points 167
Rui Martinho Posted: Sun, Nov 16 2008 3:58 PM

 Hi,

Error given when we set a DateTime on a ProcessInstance variable : "Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks"

 Applications (given for reference, plays no part in error):

WebSite (ASP.Net Framework.Net 3.5) which calls WCF service (Framework.Net 3.5 through tcp Channel) hosted on a Windows Service which calls Asmx WebService (Framework.Net 2.0 through basicHttpBinding (on the client side)) hosted on IIS 6.0 Which instanciates K2ROM and sets the variables  

Variable Set operation : oProcessInstance.DataFields["Variable"].Value = Convert.ToDateTime(DateTime.Now);

Operating Services on servers (all) : Windows Server 2003 SP1

We have another web site in the same Server with k2rom and datetime process instance variables working fine. 

 

Thanks,

Rui

Top 150 Contributor
Posts 40
Points 115
Gail replied on Mon, Nov 17 2008 5:10 PM

The first thing that jumps out at me, based on your description, is that the website that calls the WCF service (as well as the WCF service itself) are using .NET Framework 3.5.

As far as I know, K2 is not compatible with .NET Framework 3.5.

Gail -------------------------------------------------------------------------------- The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses
  • | Post Points: 4
Top 150 Contributor
Posts 48
Points 167

Hi Gail,

All K2Rom interaction is done with a .NET Framework 2.0 web service.

  • | Post Points: 4
Top 150 Contributor
Posts 40
Points 115
Gail replied on Tue, Nov 25 2008 4:32 PM

Rui -
I did some digging for you.  First of all, there is apparently an issue with data type compatibility problems between .NET 1.1 and .NET 2.0 and it is detailed here on Microsoft’s support site:
 http://support.microsoft.com/default.aspx/KB/907262

This "ticks" error has also been seen in K2.net 2003 upgrades from SP2a or SP3 to SP4.  In those cases, it was solved by:
1. copying all assemblies from the server’s bin folder to the developer workstations, or
2. removing the k2rom from the GAC, then adding back the k2rom.dll out of the k2 install \ bin folder back to the GAC.

A third possibility is:
There is a problem with the Visual Studio 2005 Add-Ins that gets installed in the HP.BizProcFRMK.msi package. It seems that a number of .Net Framework files are changed to older versions that are incompatible with K2.net 2003.

HTH

Gail -------------------------------------------------------------------------------- The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses
  • | Post Points: 4
Top 150 Contributor
Posts 48
Points 167

Hi Gail,

It's working!

The assemblies in the server’s bin folder were different from the developer workstation.

Thanks a lot for your help!

  • | Post Points: 1
Page 1 of 1 (5 items) | RSS