{"id":39,"date":"2017-03-13T05:12:34","date_gmt":"2017-03-13T05:12:34","guid":{"rendered":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/?p=39"},"modified":"2017-03-13T05:12:34","modified_gmt":"2017-03-13T05:12:34","slug":"solving-system-outofmemoryexception-and-arithmetic-operation-resulted-in-an-overflow-in-sitecore","status":"publish","type":"post","link":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/2017\/03\/13\/solving-system-outofmemoryexception-and-arithmetic-operation-resulted-in-an-overflow-in-sitecore\/","title":{"rendered":"Solving System.OutOfMemoryException and Arithmetic operation resulted in an overflow in Sitecore"},"content":{"rendered":"<body><p>Recently I bumped into these 2 .NET errors again after starting a Sitecore site: System.OutOfMemoryException and Arithmetic operation resulted in an overflow. The good news: it\u2019s easy to fix them.<\/p>\n<h2>How to fix System.OutOfMemoryException<\/h2>\n<p>When you use IIS Express to run your website (using CTRL+F5 in Visual Studio) you might see a yellow page of death saying System.OutOfMemoryException. This could be a 32 \/ 64 bit conflict, so how can you fix this?<br>\nIn Visual Studio, go to tools -&gt; Projects and solutions -&gt; Web projects -&gt; check \u201cUse the 64 bit version of IIS Express for web sites and projects\u201d<\/p>\n<h2>How to fix Arithmetic operation resulted in an overflow<\/h2>\n<p>When I tried running the website again (CTRL+F5) a new error appeared: Arithmetic operation resulted in an overflow<em>.<\/em> After searching for a bit I bumped into <a href=\"https:\/\/community.sitecore.net\/developers\/f\/5\/p\/4257\/12732\">this post on the Sitecore community with the solution<\/a><\/p>\n<blockquote><p>Strangely enough we found a WebCompanion Service Lavasoft that was causing a conflict.<\/p>\n<p><strong>Resolution<\/strong><\/p>\n<p>1. Open the services window: services.msc.<\/p>\n<p>2. Stop the LavasoftTcpService (from services.msc)<\/p>\n<p>3. Uninstall WebCompanion from Program and Features<\/p>\n<p>4. Rename the two dlls (LavasoftTcpService.dll and LavasoftTcpService64.dll in C:\\Windows\\System32 and C:\\Windows\\SysWOW64) if still present<\/p>\n<p>5. Reboot the machine<\/p><\/blockquote>\n<p>I hope this saves you some time \ud83d\ude42<\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>Recently I bumped into these 2 .NET errors again after starting a Sitecore site: System.OutOfMemoryException and Arithmetic operation resulted in an overflow. The good news: it\u2019s easy to fix them. How to fix System.OutOfMemoryException When you use IIS Express to run your website (using CTRL+F5 in Visual Studio) you might see a yellow page of &hellip; <a href=\"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/2017\/03\/13\/solving-system-outofmemoryexception-and-arithmetic-operation-resulted-in-an-overflow-in-sitecore\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Solving System.OutOfMemoryException and Arithmetic operation resulted in an overflow in Sitecore<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":41,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/posts\/39\/revisions\/41"}],"wp:attachment":[{"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gingeraroundtheworld.com\/SyntacticSugar\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}