• Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Try NCache
  • Contact Us
Try NCache
Show / Hide Table of Contents

Troubleshooting

This page describes exceptions you may encounter while using NCache and the corresponding steps to resolve them.

Disabling BinaryFormatter Serialization And Deserialization

Message: BinaryFormatter serialization and deserialization are disabled within this application.

This error can occur in older applications that use BinaryFormatter. For current NCache applications, use JSON serialization rather than enabling BinaryFormatter. Binary Serialization is not supported in NCache 5.3.7 and later.

Workaround

  • Configure JSON serialization for the cache and update any application-specific serialization code accordingly.
  • For a legacy application, review Microsoft’s BinaryFormatter migration guide. Starting with .NET 9, the runtime implementation throws PlatformNotSupportedException, and the EnableUnsafeBinaryFormatterSerialization switch does not restore it.

No sigar-amd64-winnt.dll in java.library.path

If you haven't included the sigar-amd64-winnt.dll file for Windows or the sigar-amd64-winnt.so file for Linux in your class path, you will encounter this warning, and when this happens, you won't be able to monitor your counters (in Java).

Workaround

Include the sigar-amd64-winnt.dll file for Windows or the sigar-amd64-winnt.so file for Linux in your classpath.

Unable to Handle Custom Types with JSON Serialization

Message: Unable to serialize or deserialize the specified type using JSON serialization.

You may encounter this issue when your application uses JSON serialization and a specific object type requires custom serialization or deserialization logic. This can happen when the default JSON serialization behavior is not enough for your object model.

Workaround

Configure an external Newtonsoft JsonConverter for the required custom type. For details, see External Newtonsoft JsonConverter Support.

See Also

How to Connect to Cache
Error Handling in Cache

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Try NCache
Pricing
NCache Playground

Deployments
  • Cloud
  • Docker
  • Kubernetes
  • On-Premises
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • SignalR Backplane
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Blogs
  • Foundations
  • Videos
  • Comparisons
  • Shows
  • Whitepapers
  • Articles
  • Tech Talks
  • Magazine Articles
  • Third-Party Articles
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Docs
  • Schedule a Demo
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Terms of Use
  •  
  • Privacy Policy
  •  
  • Cookie Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
  • Facebook
  • Twitter
  • Youtube
  • LinkedIn
  • RSS