CFF KB - Carrz-Fox-Fire Promotions Knowledge Base
CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.Knowledge Base
- Breadrumbs:
Microsoft VBScript runtime error '800a000d' type mismatch
- Article ID:
7282 - Date Created
Tuesday, July 30, 2024 - This Article Has been Viewed
216 times - Short Desc
ASP Classic will give a type mismatch error when getting the size of a file if it is not formatted correctly. - Details
When using a function in ASP Classic to get the file size will give you a type mismatch error if the formatting is not correct. - Recreate Issue
The following lines will give you the type mismatch error "sometimes"<%
Filesize = bytes / 1024
%> - Resolve Issue
Taking the code from above, we need to add CDbl.<%
Filesize = CDbl(trim(bytes)) / 1024
%>
Share With Friends (Updated 6-8-2010)
Recent Articles
All Topics
- Coming Soon - Knowledge Exchange
Trending Articles
- Microsoft VBScript runtime error '800a0046' Permission denied FileSystemObject 24689
- Microsoft OLE DB Provider for SQL Server error '80040e57' String or binary data would be truncated. or The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data. 21294
- ADODB.Parameters error '800a0e7c' Parameter object is improperly defined 19538
- After Effects warning: Audio conforming failed for the following file .cfa. Perhaps due to disk space 17781
- The backup set holds a backup of a database other than the existing 16819