Today in adding articles to generate a static page is that an overflow occurred: ' CInt '.
After the investigation, we know:
Originally is CInt does not support too big number, estimate has a numerical range, therefore replaces clng to solve the problem.
Modify the 107th line in the manage/include/createfile_fun.asp under Tsys.
Copy Code code as follows:
If i=0 Then
' Build File Store path '
' Original hint CInt overflow filepath=createfilesavetopath (CInt (NewsId), Rs1 ("Addtime"), Rs1 ("Directory"))
' Original hint CInt overflow filelocalpath=createfilelocalpath (CInt (NewsId), Rs1 ("Addtime"), Rs1 ("Directory"))
Filepath=createfilesavetopath (CLng (NewsId), Rs1 ("Addtime"), Rs1 ("Directory")
Filelocalpath=createfilelocalpath (CLng (NewsId), Rs1 ("Addtime"), Rs1 ("Directory")
Else
' Original hint CInt overflow filepath=createfilesavetopath (CInt (NewsId), Rs1 ("Addtime"), Rs1 ("Directory"))
Filepath=createfilesavetopath (CLng (NewsId), Rs1 ("Addtime"), Rs1 ("Directory")
Filepath=left (FilePath, (Len (FilePath)-len (def_fileextension)) & "_" & I & Def_fileextension