3 years old topic, but I found another working solution.
If you’re sure you have enough free memory, running 64 bit OS and still getting exceptions, go to Project properties
-> Build
tab and be sure to set x64
as a Platform target
.
More Related Contents:
- .NET Out Of Memory Exception – Used 1.3GB but have 16GB installed
- Read Big TXT File, Out of Memory Exception
- LOH fragmentation – 2015 update
- Allocating more than 1,000 MB of memory in 32-bit .NET process
- Out of memory exception while updating zip
- How do you simulate Mouse Click in C#?
- How can I get a list of users from active directory?
- Build query string for System.Net.HttpClient get
- How to find if a native DLL file is compiled as x64 or x86?
- “Requested URI is invalid” during upload with FtpWebRequest
- Executing query with parameters
- Parse C# string to DateTime
- Flip the GraphicsPath that draws the text/string
- What’s the role of GetHashCode in the IEqualityComparer in .NET?
- convert List to IList
- iTextSharp Creating a Footer Page # of #
- Regex replace multiple groups
- C#/.NET analysis tool to find race conditions/deadlocks
- Caching in C#/.Net
- Is DataContract attributes required for WCF
- What does Process.Dispose() actually do?
- Join and Include in Entity Framework
- Error in Process.Start() — The system cannot find the file specified
- Ambiguous call between two C# extension generic methods one where T:class and other where T:struct
- Check if a SQL table exists
- String.Format exception when format string contains “{“
- Newtonsoft JSON for .net is ignoring jsonproperty tags
- Fire Form KeyPress event
- Constructor injection with Quartz.NET and Simple Injector
- How to modify my App.exe.config keys at runtime?